提问人:kanishka 提问时间:11/5/2023 最后编辑:Shivo'hamkanishka 更新时间:11/5/2023 访问量:49
构建 react native 项目的 iOS 应用程序时出错
Error when building iOS app of react native project
问:
我使用 react native 网站上的指南创建了我的第一个 react native 应用程序。
运行以下命令后:
npx react-native run-ios
我收到以下错误:
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /var/root/Library/Developer/Xcode/DerivedData/AwesomeProject-eddynynsuvavhfgrpdccjaqaaqym/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-rncore.build/Script-46EB2E00018190.sh (in target 'React-rncore' from project 'Pods')
(1 failure)
我尝试更改文件的权限并在 前面添加 sudo,但无法解决问题。npx react-native run-ios
我尝试打开 Xcode 项目文件并通过 Xcode 构建它。但它给出了以下错误:/ios
/Users/kanishkawithanawasam/Library/Developer/Xcode/DerivedData/AwesomeProject-bofqwnifbnfeyzeyzmjkvmdaapoe/Build/Intermediates.noindex/AwesomeProject.build/Debug-iphonesimulator/AwesomeProject.build/DerivedSources/AwesomeProject_vers.c module map file '/Users/kanishkawithanawasam/Library/Developer/Xcode/DerivedData/AwesomeProject-bofqwnifbnfeyzeyzmjkvmdaapoe/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap' not found
同时,终端打开,终端冻结在以下行:
➜ Explicit dependency on target 'React-RCTActionSheet' in project 'Pods'
➜ Explicit dependency on target 'React-RCTAnimation' in project 'Pods'
➜ Explicit dependency on target 'React-RCTAppDelegate' in project 'Pods'
➜ Explicit dependency on target 'React-RCTBlob' in the project
我必须输入 command+c 才能终止该过程。请帮我解决这个问题! 谢谢!
电脑:MacBook Pro M2
答: 暂无答案
评论