iOS平台独立方式集成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:

"_OBJC_CLASS
$AlipaySDK", referenced from:

objc-class-ref in libalixpayment.a(PGAlixPay.o)

"_OBJC_CLASS
$IFlyRecognizerView", referenced from:

objc-class-ref in libiflySpeech.a(PGIFLYSpeech.o)

"_OBJC_CLASS
$IFlySpeechConstant", referenced from:

objc-class-ref in libiflySpeech.a(PGIFLYSpeech.o)

"_OBJC_CLASS
$IFlySpeechUtility", referenced from:

objc-class-ref in libiflySpeech.a(PGIFLYSpeech.o)

"_OBJC_CLASS
$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_OBJC_PROTOCOL
$TencentApiInterfaceDelegate", referenced from:

l_OBJC
$_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 添加评论 分享
已邀请:
X

赞助DCloud可免广告,点此前往赞助页面

1

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


0

DCloud_SDK_骁骑

赞同来自:

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


0

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)


0

DCloud_SDK_骁骑

赞同来自:

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
检查一下这些系统的库,这些都需要加入到工程里


0

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

```javascript

\n

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)
"_OBJC_CLASS
$_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)
...
"_OBJC_CLASS_$_UPPayPlugin", referenced from:
objc-class-ref in libpingpp.a(Pingpp.o)
"_OBJC_CLASS_$_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)
"_OBJC_CLASS_$_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)
"_OBJC_CLASS_$_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)
...

```


0

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


0

终于行了。


0

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)
请问这是怎么回事,谢谢!!


0

VanJay

赞同来自:

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


要回复问题请先登录注册