赞
踩
报错如下:
- dyld: Library not loaded: /usr/lib/libstdc++.6.dylib
- Referenced from: *************************
- Reason: no suitable image found. Did find:
- /usr/lib/libstdc++.6.dylib: mach-o, but not built for iOS simulator
所以解决思路就是用旧版的Xcode中的对应文件替换新版Xcode相关文件
下载后把1、2、3、4文件夹里的文件拖到Xcode以下对应的目录
1./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
2./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/
3./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
4./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/
感谢 :https://www.jianshu.com/p/867a07b7b2fc?utm_campaign=hugo
objc[91447]: Class _NSZombie__NSXPCConnectionExpectedReplyInfo is implemented in both ?? (0x6000027fdfe0) and ?? (0x6000027f4a80). One of the two will be used. Which one is undefined.
Assertion failed: (NO == [udid_string isEqualToString:@"00000000-0000-0000-0000-000000000000"]), function +[UIDevice(WBSDKHelpers) getUniqueStrByUUID], file /Users/insomnia/Desktop/git_Weibo_sdk/WeiboSDKSrc/WeiboSDK/UIDevice+WBSDKHelpers.m, line 116.
这个很明显是新浪sdk内部问题, 而且是二进制文件里面出错, 所以我们开发者也无能为力, 只能等着新浪微博发布新版SDK, 好在新浪微博反应迅速, 目前最新版本的 iOS SDK 为 3.2.2, 下载新版新浪SDK 即可解决
对于大多数使用第三方集成分享SDK的, 由于第三方更新比较慢, 所以只能采取临时替换新浪SDK的策略, 尤其是用cocoapods导入的, 可以直接去pod目录下将老版本的SDK换掉!
xcode-select --install
以上是升级Xcode 11的 临时遇到的问题, 总结一下给大家参考
原文链接:https://blog.csdn.net/wangjunling888/article/details/102504650
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。