在 Xcode 5.1 的设备上运行我的应用程序时出现以下错误。而在 Xcode 5.0.2
中构建成功/Users/XX/TestFlightSDK/libTestFlight.a (4 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_TestFlight", referenced from:
objc-class-ref in XXDataTypes.o
objc-class-ref in XXAppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我在 LinkBinaryWithLibrary 中添加了 arm64 作为有效架构和 libTestFlight.a,请注意这个错误仅在 Xcode 5.1 中显示有什么建议或帮助吗?
提前致谢
最佳答案
我认为您使用的 TestFlight 库不是为 arm64
架构构建的。在 TestFlight 网站上查看包含 arm64
的最新版本。
您可以通过在 .a
文件上运行 lipo
命令来进行交叉检查,
xcrun -sdk iphoneos lipo -info libTestFlight.a
这应该列出 FAT 文件中包含的体系结构。检查 arm64
或类似 (cputype (16777228) cpusubtype (0))
的存在。如果它不存在,则假设 lib 不是为 arm64
构建的。
希望对您有所帮助!
注意 : TestFlight 3.0.0 是支持arm64 ARCH 的最新版本,但是这个SDK 只有在已经上传构建的情况下才能下载。检查这个
http://help.testflightapp.com/customer/portal/articles/1452760
关于ios - TestFlight 在 Xcode 5.1 中显示符号未找到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22369046/