解決了剛才的 'config.h' file not found 問題,本以為就可以順暢的跑起來,誰知道又被惡心到了,Build input file cannot be found!!!
問題:
error: Build input file cannot be found: '/Users/galahad/Desktop/ziliao/RN和Native交互/react-native-blog-examples/Chapter10-RNInteractionWithNative/RNAddNative/node_modules/react-native/Libraries/WebSocket/libfishhook.a'
解決:
通常編譯報 Build input file cannot be found錯誤,說明該文件存放位置有問題,只需要移除之后,重新添加一下文件就可以編譯通過。如下:
然后就可以跑起來了!!!!
如果你不幸遇到了 #import <CodePush/CodePush.h> 出現file not found 的情況,請檢查下路徑是否正確
嘗試在
Build Setting -> Search Header Path -> 添加
$(SRCROOT)/../node_modules/react-native-code-push/ios