我已经构建了一个react本机应用程序,并且在运行命令react本机运行-ios时,突然在我的终端上收到了这条错误消息。相同的代码在10分钟前运行良好,突然我收到了这条错误消息。请帮帮我..。
发布于 2019-07-31 08:53:10
如果你没有安装可可豆,你需要sudo gem install cocoapods
cd iospod installcd ..react-native run-ios如果错误仍然存在,
/ios文件夹。你该走了。我希望这能帮到你。
发布于 2019-05-24 08:56:01
build/文件夹中的ios/,如果不做任何更改,则重新运行如果这样做不起作用,不要难过,还有另一种解决方案要彻底清洁项目
ios/和android/文件夹。react-native ejectreact-native linkreact-native run-ios这将给你的项目带来全新的复兴。
发布于 2019-03-19 07:53:13
解决了:总是确保更新您的Xcode人员!
Protip:和不要在苹果商店做(当然,总是在苹果官方网站上做)
提示: http://ericasadun.com/2016/03/22/xcode-upgrades-lessons-learned/
苹果官方下载页面: https://developer.apple.com/download/more/
适用于无法用上述方法解决问题的
我对类似的内容进行了分析,并得出结论,清洁是导致档案失败的原因。因此,新的构建系统没有清除自定义/遗留构建目录。
delete the build/ folder in ios/ and rerun if that doesn't do any change then
File -> Project Settings (or WorkSpace Settings) -> Build System -> Legacy Build System
Rerun and voilà!如果仍然失败,则需要清理整个项目。
做以下工作:
npm cache clean --forcereact-native ejectnpm installreact-native linkreact-native run-ioshttps://stackoverflow.com/questions/55235825
复制相似问题