当前位置:   article > 正文

Xcode 运行不了模拟器和真机_registering simulator runtime with coresimulator f

registering simulator runtime with coresimulator failed.

Xcode 运行不了模拟器和真机


这个问题在升级Xcode 10的时候其实已经解决过一次, 根本原因就是Xcode10 开始苹果删除了几个C++ 运行库

报错如下:

  1. dyld: Library not loaded: /usr/lib/libstdc++.6.dylib
  2.   Referenced from: *************************
  3.   Reason: no suitable image found.  Did find:
  4.     /usr/lib/libstdc++.6.dylib: mach-o, but not built for iOS simulator


所以解决思路就是用旧版的Xcode中的对应文件替换新版Xcode相关文件

 

libstdc-6.0.9 文件下载

下载后把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换掉!

命令行工具git 不能使用
之前安装新版Xcode后会主动提示用户安装command line tool 工具, 但是不知为何 Xcode 11 安装后没有提示, 所以git命令操作也有问题, 莫慌, 命令行执行命令即可

 

xcode-select --install


以上是升级Xcode 11的 临时遇到的问题, 总结一下给大家参考

原文链接:https://blog.csdn.net/wangjunling888/article/details/102504650

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/938144
推荐阅读
相关标签
  

闽ICP备14008679号