我正在使用Nest Developer https://developer.nest.com/ API来创建iOS应用程序.有谁知道如何将Firebase框架链接到我的应用程序?我一直在收到链接错误:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FTransactionResult", referenced from:
objc-class-ref in NestThermostatManager.o
"_OBJC_CLASS_$_Firebase", referenced from:
objc-class-ref in NestThermostatManager.o
objc-class-ref in NestStructureManager.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud) 我有一些大型资源,我只需要我的模拟器运行 - 我想让它们自动从所有设备构建中排除.有没有办法用Xcode 4来复制资源的自定义构建脚本?
我的应用程序在10.6上构建并运行良好.我将Base SDK设置为10.6,将Mac OS X部署目标设置为10.5.
我的应用程序使用系统libcurl.dylib - 而不是将dylib添加-lcurl到项目中,我只是添加到构建设置中的链接器标志.(虽然我已经尝试过两种方式.)
当我在10.5.8上启动应用程序时,出现以下错误
Dyld错误消息:未加载库:/usr/lib/libcurl.4.dylib
参考自:/ Applications/My Application.app/Contents/MacOS/MyApplication
原因:库版本不兼容:
MyApplication需要6.0.0或更高版本,但libcurl.4.dylib提供5.0.0版
果然,如果我otool -L是应用程序的二进制文件,我会得到以下libcurl:
/usr/lib/libcurl.4.dylib(兼容版本6.0.0,当前版本6.1.0)
有没有办法绕过这个,或者我应该静态链接我自己的libcurl构建?