暂时列出两个报错:
-
报错1:Xcode 升级后运行模拟器或者真机均报错Multiple commands produce /路径,按以下步骤即可解决:
打开File—Workspace Settings
path1.png
这种方式的配置是针对workspace下所有target生效。
如果想指定当前的target,是下面的情况:
-
报错2:这个错误原因是因为iOS12.0中去掉了lstdc++.6.0.9.tbd动态库
由于Xcode10 废弃了libstdc++,库文件libstdc++.6.0.9. dylib、libstdc++.6. dylib、libstdc++. dylib、libstdc++.6.0.9.tbd、libstdc++.6.tbd、libstdc++.tbd也删除,所以在编译时某些模块会error或crash。
找到lib文件夹:把libstdc++.6.0.9.tbd 和libstdc++.6.0.9.dylib 复制进去就可以了
路径 1:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/libstdc++.6.0.9.tbd
路径2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libstdc++.6.0.9.dylib
libstdc++.6.0.9.tbd 和libstdc++.6.tbd 下载可以用xcode9里面获取,点击这里也可以下载
添加后若是用模拟器还报找不到libstdc++.6.0.9.tbd 那就 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib也添加一份