加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-14 17:23:33 所属栏目:百科 来源:网络整理
导读:更新我的pod和 xcode后,我在构建过程的最后阶段(链接)遇到了问题.我已经尝试过打开架构以及将构建活动架构设置为打开和关闭,但它似乎没有做任何事情. Undefined symbols for architecture arm64:"_OBJC_CLASS_$_SRWebSocket",referenced from:objc-class-ref
更新我的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”更改为$(继承)确实解决了这个问题.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读