2

设置:iPhone 5c (iOS 10.0.2) iPhone 6 plus (iOS 10.1.1) iPad Air (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)
4

3 回答 3

3

这为我解决了它:

退出 xcode

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

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

于 2016-11-03T01:40:22.523 回答
0

如果您的体系结构和有效体系结构都正确,您可以检查您是否已将 $(inherited) 添加到其他链接器标志,如此处所述

于 2016-11-02T23:25:33.780 回答
0

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

从 Xcode 转到您的 Project Navigator --> Bluid Settings ...

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

在此处输入图像描述

这种改变对我有用。:)

于 2016-11-08T17:08:20.733 回答