蘋果在XCode10和iOS12中移除了libstdc++這個庫,由libc++這個庫取而代之,
拷貝舊Xcode中的庫,放到新的xcode中
真機路徑
/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/
替換完成後在模擬器iOS10.0以上執行會出現一個錯誤:
Reason: no suitable image found. Did find:
/usr/lib/libstdc++.6.dylib: mach-o, but not built for iOS simulator
需要把 libstdc++.6.dylib 這個檔案放到下面這個路徑下
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/
複製程式碼
xcode10 library not found for -lstdc++.6.0.9
相關文章
- [xcode10關於clang -lstdc++.6.0.9報錯問題]XCodeC++
- 關於Xcode10更新三方SDK報錯:library not found for -libstdc+XCode
- xcode10編譯工程提示info.plist檔案重複和library not found for -l"stdc++.6.0.9"XCode編譯C++
- LIBRARY CACHE LOCK WAITS AND NO BLOCKER FOUNDAIBloC
- WARNING: The 32 bit library file libstdc++.so.6 is not found on the systemC++
- CMake Error at cmake/readline.cmake:85 (MESSAGE): Curses library not found.Error
- rlwrap ./configure報錯configure: WARNING: No termcap nor curses library found
- xcode10 自定義程式碼塊XCode
- xcode10 之後程式碼不聯想XCode
- Xcode10和iOS12踩坑XCodeiOS
- Could not load dynamic library ‘cublas64_10.dll‘; dlerror: cublas64_10.dll not found或者缺少DLL問題Error
- 解決:Could not load dynamic library ‘cudart64_101.dll‘; dlerror: cudart64_101.dll not foundDartError
- Xcode10更新的那些坑(持續更新)XCode
- Library Cache Pin 及 Library Cache Lock分析
- library cache lock和library cache pin理解
- 從Xcode10不再支援libstdc++說起XCodeC++
- iOS9 Xcode10打包 崩潰修復iOSXCode
- XCode10 swift4.2 適配遇到的坑XCodeSwift
- Xcode10:Implicit declaration of function '' is invalid in C99XCodeFunction
- oracle library cache之library cache lock_library cache pin wait event釋義OracleAI
- library cache內容系列一之library hash bucket--library object handle--heapObject
- 升級Xcode10導致的編譯錯誤XCode編譯
- Oracle Library cacheOracle
- Great CSS LibraryCSS
- pip: command not found
- The requested URL was not found on the serverServer
- HttpServlet was not found on the JavaHTTPServletJava
- library cache pin和library cache lock的診斷分析
- library cache lock和library cache pin區別總結
- 關於cocopods更新第三方庫報ld: library not found for -lXXXXXX錯誤
- Xcode10 與模擬器同時進入分屏模式XCode模式
- ORA-15180: could not open dynamic library ASM LibraryASM
- mac下的LD_LIBRARY_PATH是DYLD_LIBRARY_PATHMac
- dart系列之:手寫Library,Library編寫最佳實踐Dart
- 定位Library Cache pin,Library Cache lock等待的解決方法
- 【IOS】關於cocopods更新第三方庫報ld: library not found for -lXXXXXX錯誤iOS
- Rules For JavaScript Library AuthorsJavaScript
- Oracle Database Documentation LibraryOracleDatabase