【问题标题】:Xcode 8.1 and iOS 10.1.1 not buildingXcode 8.1 和 iOS 10.1.1 未构建
【发布时间】:2016-11-02 22:54:14
【问题描述】:

设置: iPhone 5c (iOS 10.0.2) iPhone 6 加号 (iOS 10.1.1) iPad 空气 (iOS 10.1.1) Xcode 8.1

我目前正在构建一个应用程序,它在我的所有设备上都运行良好。我将我的 6 plus 从 10.0.2 更新到 10.1.1,现在该应用程序无法构建。我在 iPad 上构建,它是 10.0.2,它成功并更新了它。更新后也失败了。

我收到以下警告和错误...如果有人有任何想法,我将不胜感激!

提前致谢!

Showing Recent Issues
ld: warning: ld: warning: ld: warning: ignoring file /Users/jb/Library/Developer/Xcode/DerivedData/Give_It_Up_and_Trade-efbegnisuhotnyharswslfockoid/Build/Products/Debug-iphoneos/libFMDB.a, file was built for archive which is not the architecture being linked (arm64): /Users/jb/Library/Developer/Xcode/DerivedData/Give_It_Up_and_Trade-efbegnisuhotnyharswslfockoid/Build/Products/Debug-iphoneos/libFMDB.aignoring file /Users/jb/Library/Developer/Xcode/DerivedData/Give_It_Up_and_Trade-efbegnisuhotnyharswslfockoid/Build/Products/Debug-iphoneos/libFontAwesomeKit.a, file was built for archive which is not the architecture being linked (arm64): /Users/jb/Library/Developer/Xcode/DerivedData/Give_It_Up_and_Trade-efbegnisuhotnyharswslfockoid/Build/Products/Debug-iphoneos/libFontAwesomeKit.aignoring file /Users/jb/Library/Developer/Xcode/DerivedData/Give_It_Up_and_Trade-efbegnisuhotnyharswslfockoid/Build/Products/Debug-iphoneos/libAFNetworking.a, file was built for archive which is not the architecture being linked (arm64): /Users/jb/Library/Developer/Xcode/DerivedData/Give_It_Up_and_Trade-efbegnisuhotnyharswslfockoid/Build/Products/Debug-iphoneos/libAFNetworking.a


ld: warning: ignoring file /Users/jb/Library/Developer/Xcode/DerivedData/Give_It_Up_and_Trade-efbegnisuhotnyharswslfockoid/Build/Products/Debug-iphoneos/libRMStore.a, file was built for archive which is not the architecture being linked (arm64): /Users/jb/Library/Developer/Xcode/DerivedData/Give_It_Up_and_Trade-efbegnisuhotnyharswslfockoid/Build/Products/Debug-iphoneos/libRMStore.a


ld: warning: ignoring file /Users/jb/Library/Developer/Xcode/DerivedData/Give_It_Up_and_Trade-efbegnisuhotnyharswslfockoid/Build/Products/Debug-iphoneos/libUIColor-Crayola.a, file was built for archive which is not the architecture being linked (arm64): /Users/jb/Library/Developer/Xcode/DerivedData/Give_It_Up_and_Trade-efbegnisuhotnyharswslfockoid/Build/Products/Debug-iphoneos/libUIColor-Crayola.a


  "_OBJC_CLASS_$_RMStore", referenced from:


      objc-class-ref in iapClass.o


  "_OBJC_CLASS_$_RMAppReceipt", referenced from:


      objc-class-ref in iapClass.o


  "_OBJC_CLASS_$_FAKFontAwesome", referenced from:


      objc-class-ref in browseViewController.o


      objc-class-ref in FirstViewController.o


  "_OBJC_CLASS_$_AFJSONRequestSerializer", referenced from:


      objc-class-ref in networkingClass.o


  "_OBJC_CLASS_$_AFHTTPSessionManager", referenced from:


      objc-class-ref in networkingClass.o


ld: symbol(s) not found for architecture arm64


clang: error: linker command failed with exit code 1 (use -v to see invocation)

【问题讨论】:

  • 您使用的是最新的 Xcode 测试版吗?
  • 不,我在官方8.1

标签: ios xcode ios10 xcode8.1


【解决方案1】:

这为我解决了:

退出xcode

rm -rf ~/Library/Developer/Xcode/DerivedData

见:https://stackoverflow.com/a/31512479/1178692

【讨论】:

    【解决方案2】:

    如果你的 Architectures 和 Valid Architectures 都没有问题,你可以检查是否在 Other Linker Flags like explained here 中添加了 $(inherited)。

    【讨论】:

      【解决方案3】:

      我也遇到过类似的错误...

      从 Xcode 转到您的项目导航器 --> Bluid Settings ...

      并通过“无公共块”进行“过滤”或“搜索”。状态为“YES”,但设置为 NO。

      这个改变对我有用。 :)

      【讨论】:

        猜你喜欢
        • 2016-07-02
        • 2020-11-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-01-11
        • 2017-04-10
        • 1970-01-01
        相关资源
        最近更新 更多