Xcode 7.1 - 找不到架构 arm64 的符号
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33321897/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 7.1 - symbol(s) not found for architecture arm64
提问by Jon
I'm trying to run my app on an iPhone5S (connected) not sim. The project references a static libary. I did lipo on it and it supports i386 armv7 x86_64 arm64.
我正在尝试在 iPhone5S(已连接)而不是 sim 上运行我的应用程序。该项目引用了一个静态库。我在上面做了 lipo,它支持 i386 armv7 x86_64 arm64。
When I run I get ld: symbols(s) not found for arch arm64
当我运行时,我得到 ld:symbols(s) not found for arch arm64
Under Build Settings, Arch... I have $(ARCHS_STANDARD) in bold is armv7 and arm64
在构建设置下,Arch ...我有 $(ARCHS_STANDARD) 粗体是 armv7 和 arm64
Any ideas.... this is driving me crazy thanks in advance
任何想法......这让我发疯,提前致谢
回答by Graham Perks
- In your project settings, add -llibaotp to "Other Linker Flags".
- Add the path to the library to "Library Search Paths".
- 在您的项目设置中,将 -llibaotp 添加到“其他链接器标志”。
- 将库的路径添加到“库搜索路径”。
Alternatively, add the library to the Link Binary with Libraries build phase (for screenshots see https://www.chilkatsoft.com/xcode-link-static-lib.asp).
或者,将库添加到 Link Binary with Libraries 构建阶段(有关屏幕截图,请参见https://www.chilkatsoft.com/xcode-link-static-lib.asp)。