【问题标题】:Xcode - symbol(s) not found for architecture x86_64Xcode - 未找到架构 x86_64 的符号
【发布时间】:2015-11-04 04:36:46
【问题描述】:

在更新我的 Xcode pod 后遇到这个问题。

【问题讨论】:

  • 看看我在SO thread 中的回复。尝试根据此调整您的案例。也阅读讨论 cmets;可能会有所帮助!

标签: xcode xcode6


【解决方案1】:
So here's a little workaround. The problem is because the XCode project is unable to link to the libjpeg.a library. So thats why you get the above errors when you compile the project. 

Follow these steps : 

1. Go to : [[http://sourceforge.net/projects/libjpeg-turbo/files/1.4.0/]] and download the  libjpeg-turbo-1.4.0.dmg (3.8 MB) file.
2. Install the package. Once its done you will find the installed files under this path : */opt/libjpeg-turbo/lib*
3. Open up your terminal and type the following command : *lipo -info /opt/libjpeg-turbo/lib/libjpeg.a*
4. If the terminal shows the following the output after running the command then it means, you can use the library for your iOS project(armv7/armv7s) 
   * Architectures in the fat file: /opt/libjpeg-turbo/lib/libturbojpeg.a are: i386 x86_64 armv6 armv7 armv7s arm64* 
5. Use finder to navigate to : /opt/libjpeg-turbo/lib and copy libjpeg.a and place it in your project folder.
6. Head over to your XCode project -> Click on Project Name -> Targets -> General -> Linked frameworks and libraries -> Click on the add button placed at the bottom -> include the libjpeg.a file
7. Compile the project. It shouldn't show any more linker errors.

但是 libjpeg 错误已修复,仍然遇到此“架构 x86_64”

【讨论】:

    猜你喜欢
    • 2014-08-12
    • 1970-01-01
    • 2019-03-10
    • 2020-05-23
    • 1970-01-01
    • 2015-12-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多