d: warning: directory not found for option '-L/Users/whpc/Library/Developer/Xcode/DerivedData/InstallationPlatform-emxgvbriadwmiscbajbvqtdytnps/Build/Products/Debug-iphonesimulator/React'
ld: library not found for -lstdc++.6.0.9
clang: error: linker command failed with exit code 1 (use -v to see invocation)
原因:Xcode10取消了6.0.9的支持
最后貼一個最簡單的辦法,下一個lstdc++.6.0.9然后導入進去
下載地址:鏈接:https://pan.baidu.com/s/1BxIiD0dUV23niB5kveLzpw 密碼:fesb
真機運行庫
/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
然后重新編譯

運行之后又報這個:
Thread 1: signal SIGABRT
運行app卡在啟動業
dyld: Library not loaded: /usr/lib/libstdc++.6.dylib
Referenced from: /Users/whpc/Library/Developer/CoreSimulator/Devices/4351BA96-06B3-4A2A-A77E-C919B58D6F52/data/Containers/Bundle/Application/428E07A1-CF1E-429A-96EA-D6070B64D60A/InstallationPlatform.app/InstallationPlatform
Reason: no suitable image found. Did find:
/usr/lib/libstdc++.6.dylib: mach-o, but not built for iOS simulator
鏈接:https://pan.baidu.com/s/1FXzljYn09ImZ8uE08uUH2Q 密碼:ceij
將下載的libstdc++.6.dylib和libstdc++.dylib文件放到下面目錄中
