- clang: error: linker command fai
- clang: error: linker command fai
- clang: error: linker command fai
- clang: error: linker command fai
- clang: error: linker command fai
- clang: error: linker command fai
- clang: error: linker command fai
- clang: error: linker command fai
- clang: error: linker command fai
- clang: error: linker command fai
Xcode Version 10.1 beta (10O23u) 工程报错
ld: library not found for -lstdc++.6.0.9
clang: error: linker command failed with exit code 1 (use -v to see invocation)
未找到-lstdc++.6.0.9库
解决方案,从Xcode9对应路径下面的-lstdc++.6.0.9库拷贝到Xcode10里面,真机和模拟器要分别拷贝。
真机/Applications/Xcode10/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib
模拟器/Applications/Xcode10/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
在真机上面可以正常运行了,在模拟器上面还是会报错。
暂时没有解决方案。
网友评论