我使用的是 MacBook Pro
我想按照本教程设置一个名为 AwesomeProject https://reactnative.dev/docs/environment-setup的新 React Native 项目,其中包含 React Native CLI 快速入门部分。
当我尝试通过键入以下内容在终端中运行应用程序时: npx react-native run-ios 我的构建失败并出现以下错误:
PhaseScriptExecution [CP-User]\生成\规格/Users/thomashuber/Library/Developer/Xcode/DerivedData/AwesomeProject-aprperxvqrezbfeyvousbagyesvr/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-5F4C70EF7D90A5A5BDAEB404279F232A.sh (在项目“Pods”的目标“FBReactNativeSpec”中)(1 次失败)
当我尝试在模拟器或 iPhone 设备上的 Xcode 中运行它时,我在FBReactNativeSpec中收到以下错误:
命令 PhaseScriptExecution 失败,退出代码非零
我运行它
/bin/sh -c /Users/thomashuber/Library/Developer/Xcode/DerivedData/AwesomeProject-aprperxvqrezbfeyvousbagyesvr/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-5F4C70EF7D90A5A5BDAEB404279F232A.sh
Run Code Online (Sandbox Code Playgroud)
我重新启动了 MacBook,删除了该项目并再次尝试。我在 Xcode 中清理了该项目,但没有任何帮助。我怀疑这是由于我的 MacBook 的 M1 芯片造成的。
创建项目后运行 react-native run-ios 时遇到此错误
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening BoltAssignment.xcworkspace.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace BoltAssignment.xcworkspace -configuration Debug -scheme BoltAssignment -destination id=3E598855-6D4F-4F36-BEE1-8663A1F71787
nvm is not compatible with the "PREFIX" environment variable: currently set to "/usr/local"
Run `unset PREFIX` to unset it.
nvm is not compatible with the "PREFIX" environment variable: currently set to …Run Code Online (Sandbox Code Playgroud) 我已经创建了 flutter 应用程序,现在想要创建存档以便在 Xcode 14.3 中分发。
问题
PhaseScriptExecution failed with a nonzero exit code已经尝试过了
注意 转到“钥匙串访问”。从禁用的登录选项中再次选择“锁定和解锁”。如何启用它?
期待您的帮助。
Podfile
# Uncomment this line to define a global platform for your project
platform :ios, '12.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root …Run Code Online (Sandbox Code Playgroud) 所以我有世博会建立了一个应用程序,但随后退出来获得iOS和Android文件夹的一切工作都在Android和iOS我已经发布其Android系统,但在iOS精细当我尝试存档给我一个错误的项目Command PhaseScriptExecution failed with nonzero exit code,我不知道是什么导致了这个错误我已经阅读了很多 StackOverflow 问题,尝试了很多东西,但没有运气,这是我迄今为止尝试过的。
我试过:
pod deintegrate,正在执行pod update
好吧,之前,构建Command+B也不起作用,但现在我去了目标-> 应用程序名称-> 构建阶段-> 捆绑博览会资产-> 并检查了“仅在安装时运行脚本”选项,构建开始工作但仍在存档不起作用
除了上述错误,我还注意到 xcode 上的另一个错误
所以请如果有人有任何想法为什么会发生这种情况,请?
Showing Recent Messages:-1: mkdir -p /Users/spritzindia/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/Contigo.app/Frameworks
Run Code Online (Sandbox Code Playgroud)
显示最近的消息:-1:rsync --delete -av --filter P。*。?????? --filter“-CVS /” --filter“-.svn /” --filter“-.git /” --filter“-.hg /” --filter“-Headers” --filter“-PrivateHeaders”- -filter“-模块”“ /用户/pothi/Library/Developer/Xcode/DerivedData/Contigo-atftiouzrdopcmcpprphpilawwzm/Build/Products/Debug-iphonesimulator/IQKeyboardManagerSwift/IQKeyboardManagerSwift.framework”“ /用户/ pothi / Library / Developer / X DerivedData / Contigo-atftiouzrdopcmcpprphpilawwzm / Build / Products / Debug-iphonesimulator / Contigo.app / Frameworks”
命令PhaseScriptExecution失败,退出代码非零
我删除了衍生数据。我已经尝试过:钥匙串访问->右键单击登录->再次锁定并解锁->清除Xcode项目,重新启动机器,没有用
尝试归档项目时,如何解决“命令PhaseScriptExecution失败,退出代码非零”错误。
我正在使用那些图书馆
pod 'IQKeyboardManagerSwift'
pod 'SDWebImage', '~> 4.0'
pod 'KRPullLoader'
pod 'Paytm-Payments'
Run Code Online (Sandbox Code Playgroud)