【问题标题】:How to resolve Apple - o link error如何解决 Apple - o 链接错误
【发布时间】:2015-07-21 20:49:07
【问题描述】:

我的项目中有一个苹果 - o 链接错误,我在 Google 中搜索过,但对我没有帮助,以下是我的错误

   ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode 2.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这是什么错误以及如何解决它,请任何人帮助我。

【问题讨论】:

    标签: ios objective-c xcode4 xcode6 xcode5


    【解决方案1】:

    1.尝试从有效架构中避免 arm64。 2.尝试将 Build for Active Architecture 设置为“NO” 3.同时检查框架搜索路径

    @ 构建设置。

    【讨论】:

    • 我必须给出什么架构?
    • 删除后,我收到此错误:错误:无法删除 /Users/gowthamrajk/Library/Developer/Xcode/DerivedData/Galatta-epbjetmogxudrabbulncayoqodaf/Build/Products/Debug-iphonesimulator/Galatta.app /UnitTests-Info.plist:“UnitTests-Info.plist”无法删除。
    • 勾选“Build For Active Architecture”和“Framework search path”
    【解决方案2】:

    您可以按照以下步骤解决此问题:

    选择 Pods 项目

    点击构建设置

    将“仅构建活动架构”更改为“否”

    【讨论】:

      猜你喜欢
      • 2016-01-09
      • 1970-01-01
      • 1970-01-01
      • 2015-02-26
      • 1970-01-01
      • 1970-01-01
      • 2014-05-11
      • 2014-04-06
      相关资源
      最近更新 更多