例如,RCTImageLoader 未定义:
这是RN中的Image库的一部分:
我在Podfile
中有以下内容:
这是我Podfile
的一行代码:pod 'React', :subspecs => ['Core', 'RCTImage', 'RCTNetwork', 'RCTLinkingIOS', 'RCTText', 'RCTWebSocket'], :path => '../node_modules/react-native'
我尝试过以下方法:
- 项目 -> 清理
- 再次运行
pod install
- 删除
Podfile.lock
&&pod install
- 新的git克隆,
npm install && cd ios && pod install