Xcode 8.1 和 iOS 10.1.1 未构建
Xcode 8.1 and iOS 10.1.1 not building
设置:
iPhone 5c (iOS 10.0.2)
iPhone 6 加 (iOS 10.1.1)
iPad 空气 (iOS 10.1.1)
Xcode8.1
我目前正在构建一个应用程序,它在我的所有设备上都运行良好。我将我的 6 plus 从 10.0.2 更新到 10.1.1,现在应用程序无法构建。我建立在 10.0.2 的 iPad 上,它成功并更新了它。更新后也失败了。
我收到以下警告和错误...如果有人有任何想法,我将不胜感激!
提前致谢!
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)
如果你的Architectures和Valid Architectures都没有问题,你可以检查你是否在Other Linker Flags中添加了$(inherited) like explained here.
这为我解决了:
退出xcode
rm -rf ~/Library/Developer/Xcode/DerivedData
参见:
我也遇到过类似的错误...
从 Xcode 转到您的项目导航器 --> Bluid 设置 ...
和 "Filter" 或 "Search" by "No Common Blocks"。状态为 "YES",但将其设置为 NO。
这个改变对我有用。 :)
设置: iPhone 5c (iOS 10.0.2) iPhone 6 加 (iOS 10.1.1) iPad 空气 (iOS 10.1.1) Xcode8.1
我目前正在构建一个应用程序,它在我的所有设备上都运行良好。我将我的 6 plus 从 10.0.2 更新到 10.1.1,现在应用程序无法构建。我建立在 10.0.2 的 iPad 上,它成功并更新了它。更新后也失败了。
我收到以下警告和错误...如果有人有任何想法,我将不胜感激!
提前致谢!
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)
如果你的Architectures和Valid Architectures都没有问题,你可以检查你是否在Other Linker Flags中添加了$(inherited) like explained here.
这为我解决了:
退出xcode
rm -rf ~/Library/Developer/Xcode/DerivedData
参见:
我也遇到过类似的错误...
从 Xcode 转到您的项目导航器 --> Bluid 设置 ...
和 "Filter" 或 "Search" by "No Common Blocks"。状态为 "YES",但将其设置为 NO。
这个改变对我有用。 :)