【发布时间】:2014-05-01 16:37:06
【问题描述】:
我正在构建一个 trigger.io 原生模块,并通过手动将头文件和实现文件添加到 ForgeModule 项目中来包含 AFNetworking 2.0 框架。
AFNetworking 2.0 indicates ios 6.0+ 的目标要求。
在 xcode 中,我已将 UniversalForgeModule 的部署目标更改为 6.0。
然而,在我的应用程序中包含这个新打包的本机模块后,我在构建它时收到以下错误:
Ld build/Release-iphonesimulator/ForgeInspector.app/Forge normal i386
cd /var/folders/xw/34h86n3d5p54qpq1wfc8ff600000b1/T/tmp5z_JZJ/ios/app
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0.1
...
Undefined symbols for architecture i386:
_UTTypeCopyPreferredTagWithClass", referenced from:
-[AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in frisbees.a(AFURLRequestSerialization.o)
"_UTTypeCreatePreferredIdentifierForTag", referenced from:
-[AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in frisbees.a(AFURLRequestSerialization.o)
"_kUTTagClassFilenameExtension", referenced from:
-[AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in frisbees.a(AFURLRequestSerialization.o)
"_kUTTagClassMIMEType", referenced from:
-[AFStreamingMultipartFormData appendPartWithFileURL:name:error:] in frisbees.a(AFURLRequestSerialization.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/Release-iphonesimulator/ForgeInspector.app/Forge normal i386
(1 failure)
看起来我的构建目标仍然是5.0.1。我该如何改变呢?
完整日志可用here。
谢谢!
【问题讨论】: