Xcode 8.1 和 iOS 10.1.1 未构建
Posted
技术标签:
【中文标题】Xcode 8.1 和 iOS 10.1.1 未构建【英文标题】:Xcode 8.1 and iOS 10.1.1 not building 【发布时间】: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 【参考方案1】:这为我解决了:
退出xcode
rm -rf ~/Library/Developer/Xcode/DerivedData
见:https://***.com/a/31512479/1178692
【讨论】:
【参考方案2】:如果你的 Architectures 和 Valid Architectures 都没有问题,你可以检查是否在 Other Linker Flags like explained here 中添加了 $(inherited)。
【讨论】:
【参考方案3】:我也遇到过类似的错误...
从 Xcode 转到您的项目导航器 --> Bluid Settings ...
并通过“无公共块”进行“过滤”或“搜索”。状态为“YES”,但设置为 NO。
这个改变对我有用。 :)
【讨论】:
以上是关于Xcode 8.1 和 iOS 10.1.1 未构建的主要内容,如果未能解决你的问题,请参考以下文章
导航不出现 Xcode 8.1 iOS 10 Swift 3
在到达我的代码之前,应用程序在运行时崩溃 xcode6.1 Universal App Objective-C NSKeyedUnarchiver iOS 7.0 iOS 8.1
为啥我的弹出框在 iPhone 6 Plus 上的 iOS 8.1 中崩溃? iOS 8 工作(实际上是 Xcode 6.0 到 6.1 的错误)