ios – Cocoapods ld:未找到架构armv7s的符号

前端之家收集整理的这篇文章主要介绍了ios – Cocoapods ld:未找到架构armv7s的符号前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
更新我的pod和 xcode后,我在构建过程的最后阶段(链接)遇到了问题.我已经尝试过打开架构以及将构建活动架构设置为打开和关闭,但它似乎没有做任何事情.

Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SRWebSocket",referenced from:
objc-class-ref in BLYClient.o
"_OBJC_CLASS_$_Reachability",referenced from:
objc-class-ref in BLYClient.o
"_kReachabilityChangedNotification",referenced from:
-[BLYClient initWithAppKey:delegate:hostName:] in BLYClient.o
"_OBJC_CLASS_$_FBRequestConnection",referenced from:
objc-class-ref in LCAccountRegistrationViewController.o
"_OBJC_CLASS_$_FBSession",referenced from:
objc-class-ref in LCAccountRegistrationViewController.o
"_OBJC_CLASS_$_JASidePanelController",referenced from:
_OBJC_CLASS_$_LCMainRevealController in LCMainRevealController.o
"_OBJC_CLASS_$_SEEPhoneNumberFormatter",referenced from:
objc-class-ref in LCPhoneFormatter.o
"_OBJC_CLASS_$_SKInnerShadowLayer",referenced from:
objc-class-ref in LCInnerShadowView.o
"_OBJC_CLASS_$_AFHTTPClient",referenced from:
_OBJC_CLASS_$_LCHTTPClient in LCHTTPClient.o
"_OBJC_MetaCLASS_$_JASidePanelController",referenced from:
_OBJC_MetaCLASS_$_LCMainRevealController in LCMainRevealController.o
"_OBJC_CLASS_$_BITHockeyManager",referenced from:
objc-class-ref in LCAppDelegate.o
"_OBJC_CLASS_$_AFNetworkActivityIndicatorManager",referenced from:
objc-class-ref in LCHTTPClient.o
"_OBJC_CLASS_$_LockBox",referenced from:
objc-class-ref in LCKey.o
objc-class-ref in LCSettings.o
"_OBJC_CLASS_$_AFHTTPRequestOperation",referenced from:
objc-class-ref in LCApi+Internal.o
"_OBJC_CLASS_$_AFHTTPRequestOperationLogger",referenced from:
objc-class-ref in LCAppDelegate.o
"_OBJC_CLASS_$_AFJSONRequestOperation",referenced from:
objc-class-ref in LCHTTPClient.o
"_OBJC_MetaCLASS_$_AFHTTPClient",referenced from:
_OBJC_MetaCLASS_$_LCHTTPClient in LCHTTPClient.o
"_OBJC_CLASS_$_RHDisplayLinkStepper",referenced from:
objc-class-ref in LCLockSwipeView.o
objc-class-ref in LCLockUpdatingProgressView.o
"_OBJC_CLASS_$_MagicalRecord",referenced from:
objc-class-ref in LCAppDelegate.o
objc-class-ref in LCApi+Locks.o
objc-class-ref in LCApi+Keys.o
objc-class-ref in LCBTLockScanner.o
objc-class-ref in LCBTLockForegroundScanner.o
objc-class-ref in LCBTLock.o
objc-class-ref in LCRootViewController.o
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command Failed with exit code 1 (use -v to see invocation)

有任何想法吗?

解决方法

我刚才有同样的问题. “其他链接器标志”覆盖了CocoaPods的旗帜.事实上我收到了关于它的警告 –

[!] The `sftest [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-sftest/Pods-sftest.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag,or
- Remove the build settings from the target.

将“Other Linker Flags”更改为$(继承)确实解决了这个问题.

猜你在找的Xcode相关文章