Xcode10,然后真机运行报错,模拟器运行也报错
-
ld: library not found for -lstdc++.6.0.9
从旧版本的XCode
中复制libstdc++.6.0.9.tbd
libstdc++.6.tbd
libstdc++.tbd
到XCode10.*
如下路径即可
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
如上操作后,模拟器可能会提示如下的错误
dyld: Library not loaded: /usr/lib/libstdc++.6.dylib
Referenced from: /Users/fengfeng/Library/Developer/CoreSimulator/Devices/67C60FD0-2387-4B76-8D9B-CE139BB673AA/data/Containers/Bundle/Application/B894A0FB-88F7-4162-891A-98E629466F7A/StarWealth.app/Frameworks/HelpDesk.framework/HelpDesk
Reason: no suitable image found. Did find:
/usr/lib/libstdc++.6.dylib: mach-o, but not built for iOS simulator
(lldb)
从旧版本Xcode
如下路径,复制libstdc++.6.0.9.dylib
,然后改名为libstdc++.6.dylib
,粘贴到新版本Xcode
的同样路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
Multiple commands produce
Showing All Messages
:-1: Multiple commands produce '/Users/fengfeng/Library/Developer/Xcode/DerivedData/***-ayejktmvfqdrzefzucxiorrb***/Build/Products/Debug-iphoneos/***.app/Info.plist':
1) Target '***' (project '****') has copy command from '/Users/fengfeng/sober/Git/04_puhuijia/***/***/***/Info.plist' to '/Users/fengfeng/Library/Developer/Xcode/DerivedData/***-ayejktmvfqdrzefzucxiorrb***/Build/Products/Debug-iphoneos/***.app/Info.plist'
2) Target '***' (project '***') has process command with output '/Users/fengfeng/Library/Developer/Xcode/DerivedData/***-ayejktmvfqdrzefzucxiorrb***/Build/Products/Debug-iphoneos/***.app/Info.plist'
解决方法:
不定期更新 不合适的地方 还请指点~ 感激不尽