Zoet
Zoet
  • 发布:2015-04-29 16:17
  • 更新:2017-05-04 16:51
  • 阅读:15573

iOS平台独立方式集成5+SDK一直报错,求解答

分类:5+ SDK

我新建了一个项目,按照SDK里面的HBuilder-Integrate项目一模一样配置下来,结果却一直报下面的这个错,请问是为什么?
还有,文档上面的配置方法为什么跟HBuilder-Integrate里面实际情况都不一样,按照文档上的方法配置也不成功。

ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
Undefined symbols for architecture x86_64:
"_OBJCCLASS$_AlipaySDK", referenced from:
objc-class-ref in libalixpayment.a(PGAlixPay.o)
"_OBJCCLASS$_IFlyRecognizerView", referenced from:
objc-class-ref in libiflySpeech.a(PGIFLYSpeech.o)
"_OBJCCLASS$_IFlySpeechConstant", referenced from:
objc-class-ref in libiflySpeech.a(PGIFLYSpeech.o)
"_OBJCCLASS$_IFlySpeechUtility", referenced from:
objc-class-ref in libiflySpeech.a(PGIFLYSpeech.o)
"_OBJCCLASS$_TencentOAuth", referenced from:
objc-class-ref in libQQOauth.a(PGQQOauth.o)
"_kOPEN_PERMISSION_GET_SIMPLE_USER_INFO", referenced from:
-[PGQQOauth login:withParams:] in libQQOauth.a(PGQQOauth.o)
"_kOPEN_PERMISSION_GET_USER_INFO", referenced from:
-[PGQQOauth login:withParams:] in libQQOauth.a(PGQQOauth.o)
"l_OBJCPROTOCOL$_TencentApiInterfaceDelegate", referenced from:
lOBJC$_PROTOCOL_REFS_TencentSessionDelegate in libQQOauth.a(PGQQOauth.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

2015-04-29 16:17 负责人:无 分享
已邀请:
hzx7787

hzx7787

我也出现这个错了 请问解决了吗?

骁骑

骁骑

这个错误应该是在编译的时候链接的静态库不对,这个应该是在模拟器编译的时候链接到真机的静态库路径了,可以通过修改library search path 配置解决
可以参考以下配置
$(SRCROOT)/SDK/libs/Release$(EFFECTIVE_PLATFORM_NAME)

hongwei

hongwei

使用4月21号的IOS的SDK,已经将Release-iphoneos 和 Release-iphonesimulator两个目录下的库文件进行合并,需要修改 targets->Build Setting->Library Search Paths 目录修改为 $(SRCROOT)/../SDK/libs ,修改后编译报错:

ld: warning: ignoring file /Users/homelink/Documents/SDK/libs/libBaiduWalletSDK.a, missing required architecture x86_64 in file /Users/homelink/Documents/SDK/libs/libBaiduWalletSDK.a (3 slices)
ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
Undefined symbols for architecture x86_64:
"std::1::vector_base_common<true>::throw_length_error() const", referenced from:
std::
1::vector<float, std::1::allocator<float> >::allocate(unsigned long) in MAMapKit(MAHeatMapTileProvider.o)
std::
1::enable_if<(is_forward_iterator<MAHeatMapTileProviderTools::color>::value) && (is_constructible<MAHeatMapTileProviderTools::color, std::__1::iterator_traits<MAHeatMapTileProviderTools::color>::reference>::value), void>::type std::1::vector<MAHeatMapTileProviderTools::color, std::1::allocator<MAHeatMapTileProviderTools::color> >::assign<MAHeatMapTileProviderTools::color>(MAHeatMapTileProviderTools::color, MAHeatMapTileProviderTools::color*) in MAMapKit(MAHeatMapTileProvider.o)
std::
1::vector<MAHeatMapTileProviderTools::color, std::1::allocator<MAHeatMapTileProviderTools::color> >::allocate(unsigned long) in MAMapKit(MAHeatMapTileProvider.o)
std::
1::enable_if<(is_forward_iterator<float>::value) && (is_constructible<float, std::__1::iterator_traits<float>::reference>::value), void>::type std::1::vector<float, std::1::allocator<float> >::assign<float>(float, float*) in MAMapKit(MAHeatMapTileProvider.o)
void std::
1::vector<MAHeatMapTileProviderTools::Gradient::ColorInterval, std::__1::allocator<MAHeatMapTileProviderTools::Gradient::ColorInterval> >::push_back_slow_path<MAHeatMapTileProviderTools::Gradient::ColorInterval const&>(MAHeatMapTileProviderTools::Gradient::ColorInterval const&&&) in MAMapKit(MAHeatMapTileProvider.o)
std::1::vector<double, std::1::allocator<double> >::allocate(unsigned long) in MAMapKit(MAHeatMapTileProvider.o)
void std::1::vector<float, std::1::allocator<float> >::__push_back_slow_path<float>(float&&) in MAMapKit(MAHeatMapTileProvider.o)
...
"std::
1::next_prime(unsigned long)", referenced from:
std::1::hash_table<std::
1::hash_value_type<int, MAHeatMapTileProviderTools::Gradient::ColorInterval*>, std::1::unordered_map_hasher<int, std::1::hash_value_type<int, MAHeatMapTileProviderTools::Gradient::ColorInterval*>, std::1::hash<int>, true>, std::1::unordered_map_equal<int, std::1::hash_value_type<int, MAHeatMapTileProviderTools::Gradient::ColorInterval>, std::__1::equal_to<int>, true>, std::1::allocator<std::1::__hash_value_type<int, MAHeatMapTileProviderTools::Gradient::ColorInterval> > >::rehash(unsigned long) in MAMapKit(MAHeatMapTileProvider.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

  • l***@163.com

    请问这个问题你解决了么?

    2016-09-11 11:07

  • hongwei

    解决了

    2016-09-26 17:09

  • wade

    怎么解决的?

    2017-03-27 13:26

  • m***@gmail.com

    请问下libbaiduwalletSDK.a这个一直报错怎么解决的?它是不支持64位的吗?

    2018-09-27 16:48

骁骑

骁骑

MobileCoreServices.framework
CoreTelephony.framework
AudioToolbox.framework
CoreFoundation.framework
MediaPlayer.framework
CoreMedia.framework
CoreAudio.framework
CoreAudioKit.framework
CFNetwork.framework
Foundation.framework
UIKit.framework
SystemConfiguration.framework
libz.tbd
libxml2.tbd
libstdc++.tbd
检查一下这些系统的库,这些都需要加入到工程里

c***@163.com

c***@163.com

什么情况,按照教程一步一步来,报那么多错,万怀疑这文档有没有写对哦,

```javascript

ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
Undefined symbols for architecture x86_64:
"typeinfo for char", referenced from:
GCC_except_table2 in libGeTuiSdk.a(GTKSCrashSentry_CPPException.o)
"typeinfo for short", referenced from:
GCC_except_table2 in libGeTuiSdk.a(GTKSCrashSentry_CPPException.o)
"typeinfo for long", referenced from:
GCC_except_table2 in libGeTuiSdk.a(GTKSCrashSentry_CPPException.o)
"typeinfo for long long", referenced from:
GCC_except_table2 in libGeTuiSdk.a(GTKSCrashSentry_CPPException.o)
"typeinfo for unsigned int", referenced from:
GCC_except_table2 in libGeTuiSdk.a(GTKSCrashSentry_CPPException.o)
"typeinfo for unsigned long", referenced from:
GCC_except_table2 in libGeTuiSdk.a(GTKSCrashSentry_CPPException.o)
"typeinfo for double", referenced from:
GCC_except_table2 in libGeTuiSdk.a(GTKSCrashSentry_CPPException.o)
"typeinfo for long double", referenced from:
GCC_except_table2 in libGeTuiSdk.a(GTKSCrashSentry_CPPException.o)
"std::set_terminate(void ()())", referenced from:
_gts_kscrashsentry_installCPPExceptionHandler in libGeTuiSdk.a(GTKSCrashSentry_CPPException.o)
_gts_kscrashsentry_uninstallCPPExceptionHandler in libGeTuiSdk.a(GTKSCrashSentry_CPPException.o)
"_compress2", referenced from:
+[UMANDeflated deflatedDataPrefixedWith:level:source:] in UMMobClick(UMDeflated.o)
"_sqlite3_errmsg", referenced from:
-[UMCachedDB rowCountInTable:] in UMMobClick(UMCachedDB.o)
"_sqlite3_open_v2", referenced from:
-[UMCachedDB initDB] in UMMobClick(UMCachedDB.o)
"_OBJCCLASS$_AMapNetworkManager", referenced from:
objc-class-ref in MAMapKit(MAMapKit-x86_64-master.o)
"_AMapDataAvailableForCoordinate", referenced from:
l1430 in MAMapKit(MAMapKit-x86_64-master.o)
"_AMapCoordinateConvert", referenced from:
l571 in MAMapKit(MAMapKit-x86_64-master.o)
"std::1::next_prime(unsigned long)", referenced from:
std::1::hash_table<std::1::hash_value_type<int, MAHeatMapTileProviderTools::Gradient::ColorInterval
>, std::1::unordered_map_hasher<int, std::1::hash_value_type<int, MAHeatMapTileProviderTools::Gradient::ColorInterval>, std::1::hash<int>, true>, std::1::unordered_map_equal<int, std::1::__hash_value_type<int, MAHeatMapTileProviderTools::Gradient::ColorInterval>, std::1::equal_to<int>, true>, std::1::allocator<std::1::__hash_value_type<int, MAHeatMapTileProviderTools::Gradient::ColorInterval*> > >::rehash(unsigned long) in MAMapKit(MAMapKit-x86_64-master.o)
"_kAMapFoundationLocationFailedError", referenced from:
l365 in MAMapKit(MAMapKit-x86_64-master.o)
"std::
1::vector_base_common<true>::throw_length_error() const", referenced from:
l049 in MAMapKit(MAMapKit-x86_64-master.o)
std::1::vector<float, std::1::allocator<float> >::allocate(unsigned long) in MAMapKit(MAMapKit-x86_64-master.o)
std::1::enable_if<(__is_forward_iterator<MAHeatMapTileProviderTools::color*>::value) && (is_constructible<MAHeatMapTileProviderTools::color, std::1::iterator_traits<MAHeatMapTileProviderTools::color>::reference>::value), void>::type std::1::vector<MAHeatMapTileProviderTools::color, std::1::allocator<MAHeatMapTileProviderTools::color> >::assign<MAHeatMapTileProviderTools::color>(MAHeatMapTileProviderTools::color, MAHeatMapTileProviderTools::color) in MAMapKit(MAMapKit-x86_64-master.o)
std::1::vector<MAHeatMapTileProviderTools::color, std::1::allocator<MAHeatMapTileProviderTools::color> >::allocate(unsigned long) in MAMapKit(MAMapKit-x86_64-master.o)
std::1::enable_if<(__is_forward_iterator<float*>::value) && (is_constructible<float, std::1::iterator_traits<float>::reference>::value), void>::type std::1::vector<float, std::1::allocator<float> >::assign<float>(float, float) in MAMapKit(MAMapKit-x86_64-master.o)
void std::1::vector<MAHeatMapTileProviderTools::Gradient::ColorInterval*, std::1::allocator<MAHeatMapTileProviderTools::Gradient::ColorInterval> >::__push_back_slow_path<MAHeatMapTileProviderTools::Gradient::ColorInterval const&>(MAHeatMapTileProviderTools::Gradient::ColorInterval const&&&) in MAMapKit(MAMapKit-x86_64-master.o)
std::1::vector<double, std::1::allocator<double> >::allocate(unsigned long) in MAMapKit(MAMapKit-x86_64-master.o)
...
"operator new(unsigned long)", referenced from:
l049 in MAMapKit(MAMapKit-x86_64-master.o)
l433 in MAMapKit(MAMapKit-x86_64-master.o)
std::1::vector<float, std::1::allocator<float> >::allocate(unsigned long) in MAMapKit(MAMapKit-x86_64-master.o)
std::1::vector<MAHeatMapTileProviderTools::color, std::1::allocator<MAHeatMapTileProviderTools::color> >::allocate(unsigned long) in MAMapKit(MAMapKit-x86_64-master.o)
l439 in MAMapKit(MAMapKit-x86_64-master.o)
std::__1::unordered_map<int, MAHeatMapTileProviderTools::Gradient::ColorInterval
, std::1::hash<int>, std::1::equal_to<int>, std::1::allocator<std::1::pair<int const, MAHeatMapTileProviderTools::Gradient::ColorInterval> > >::operator in MAMapKit(MAMapKit-x86_64-master.o)
std::__1::unordered_map<int, MAHeatMapTileProviderTools::Gradient::ColorInterval
, std::1::hash<int>, std::1::equal_to<int>, std::1::allocator<std::1::pair<int const, MAHeatMapTileProviderTools::Gradient::ColorInterval> > >::operator[](int const&) in MAMapKit(MAMapKit-x86_64-master.o)
...
"operator delete(void
)", referenced from:
l045 in MAMapKit(MAMapKit-x86_64-master.o)
l049 in MAMapKit(MAMapKit-x86_64-master.o)
l433 in MAMapKit(MAMapKit-x86_64-master.o)
l435 in MAMapKit(MAMapKit-x86_64-master.o)
l436 in MAMapKit(MAMapKit-x86_64-master.o)
std::1::vector_base<float, std::1::allocator<float> >::~vector_base() in MAMapKit(MAMapKit-x86_64-master.o)
std::1::vector<MAHeatMapTileProviderTools::color, std::1::allocator<MAHeatMapTileProviderTools::color> >::deallocate() in MAMapKit(MAMapKit-x86_64-master.o)
...
"_OBJCCLASS$_UPPayPlugin", referenced from:
objc-class-ref in libpingpp.a(Pingpp.o)
"_OBJCCLASS$_PayReq", referenced from:
objc-class-ref in libpingpp.a(Pingpp.o)
objc-class-ref in libwxpay.a(PGWXPay.o)
"_uncompress", referenced from:
_lmod_load in iflyMSC(lloader.o)
_mssp_decrypt_content_by_cver in iflyMSC(mssp_parser.o)
_coder_main in iflyMSC(luac_zlib.o)
"_OBJCCLASS$_WXApi", referenced from:
objc-class-ref in libpingpp.a(Pingpp.o)
objc-class-ref in libwxpay.a(PGWXPay.o)
"_dns_free_resource_record", referenced from:
-[XMPPSRVResolver processRecord:length:] in libMiPushSDK.a(XMPPSRVResolver.o)
"_xmlXPathFreeContext", referenced from:
-[DDXMLNode nodesForXPath:error:] in libMiPushSDK.a(DDXMLNode.o)
"_xmlIndentTreeOutput", referenced from:
-[DDXMLNode XMLStringWithOptions:] in libMiPushSDK.a(DDXMLNode.o)
"_xmlBufferCreate", referenced from:
-[DDXMLNode XMLStringWithOptions:] in libMiPushSDK.a(DDXMLNode.o)
"_xmlNodeDump", referenced from:
-[DDXMLNode XMLStringWithOptions:] in libMiPushSDK.a(DDXMLNode.o)
"_xmlNodeGetContent", referenced from:
-[DDXMLNode stringValue] in libMiPushSDK.a(DDXMLNode.o)
"_xmlNodeSetContent", referenced from:
-[DDXMLNode setStringValue:] in libMiPushSDK.a(DDXMLNode.o)
-[DDXMLAttributeNode setStringValue:] in libMiPushSDK.a(DDXMLNode.o)
"_xmlNodeSetName", referenced from:
-[DDXMLNode setName:] in libMiPushSDK.a(DDXMLNode.o)
"_OBJCCLASS$_AMapResourceReader", referenced from:
objc-class-ref in MAMapKit(MAMapKit-x86_64-master.o)
"_xmlCopyDoc", referenced from:
-[DDXMLNode copyWithZone:] in libMiPushSDK.a(DDXMLNode.o)
"_xmlFreeNs", referenced from:
-[DDXMLNode dealloc] in libMiPushSDK.a(DDXMLNode.o)
+[DDXMLNode removeNamespace:fromNode:] in libMiPushSDK.a(DDXMLNode.o)
+[DDXMLNode removeAllNamespacesFromNode:] in libMiPushSDK.a(DDXMLNode.o)
-[DDXMLAttributeNode setURI:] in libMiPushSDK.a(DDXMLNode.o)
"_xmlFreeNode", referenced from:
-[DDXMLNode dealloc] in libMiPushSDK.a(DDXMLNode.o)
+[DDXMLNode removeChild:fromNode:] in libMiPushSDK.a(DDXMLNode.o)
+[DDXMLNode removeAllChildrenFromNode:] in libMiPushSDK.a(DDXMLNode.o)
"_xmlNewText", referenced from:
+[DDXMLNode textWithStringValue:] in libMiPushSDK.a(DDXMLNode.o)
-[DDXMLAttributeNode setStringValue:] in libMiPushSDK.a(DDXMLNode.o)
"_initGenericErrorDefaultFunc", referenced from:
_23+[DDXMLNode initialize]_block_invoke in libMiPushSDK.a(DDXMLNode.o)
"_xmlSetStructuredErrorFunc", referenced from:
___23+[DDXMLNode initialize]_block_invoke in libMiPushSDK.a(DDXMLNode.o)
"_xmlXPathEvalExpression", referenced from:
-[DDXMLNode nodesForXPath:error:] in libMiPushSDK.a(DDXMLNode.o)
"xmlKeepBlanksDefault", referenced from:
23+[DDXMLNode initialize]_block_invoke in libMiPushSDK.a(DDXMLNode.o)
-[DDXMLDocument initWithData:options:error:] in libMiPushSDK.a(DDXMLDocument.o)
"_xmlAddPrevSibling", referenced from:
-[DDXMLElement insertChild:atIndex:] in libMiPushSDK.a(DDXMLElement.o)
"_xmlSearchNs", referenced from:
-[DDXMLElement elementsForName:] in libMiPushSDK.a(DDXMLElement.o)
"_xmlStrEqual", referenced from:
_xmpp_xmlSearchNs in libMiPushSDK.a(XMPPParser.o)
-[DDXMLElement _elementsForName:uri:] in libMiPushSDK.a(DDXMLElement.o)
-[DDXMLElement _hasAttributeWithName:] in libMiPushSDK.a(DDXMLElement.o)
-[DDXMLElement _removeAttributeForName:] in libMiPushSDK.a(DDXMLElement.o)
-[DDXMLElement attributeForName:] in libMiPushSDK.a(DDXMLElement.o)
-[DDXMLElement _removeNamespaceForPrefix:] in libMiPushSDK.a(DDXMLElement.o)
-[DDXMLElement namespaceForPrefix:] in libMiPushSDK.a(DDXMLElement.o)
...

r***@qq.com

r***@qq.com

我怎么也是这样觉得的啊?到底有没有人成功集成了

r***@qq.com

r***@qq.com

终于行了。

matian

matian

按照第二步做:导入-ObjC,-liblibUI.a,-liblibPDRCore.a,-liblibNavigator.a,-libcoreSupport.a
我在APPdelegate里面不使用PDRCore.h的时候运行不会报错,
当我使用:BOOL ret = [PDRCore initEngineWihtOptions:launchOptions withRunMode:PDRCoreRunModeAppClient];时,
就会报错:ld: library not found for -liblibUI.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
请问这是怎么回事,谢谢!!

VanJay

VanJay

我是懒得发帖,我去年就从0开始集成成功了。。。

该问题目前已经被锁定, 无法添加新回复