Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
340 views
in Technique[技术] by (71.8m points)

ios - XCode Build Phase script exit code 1 error React Native

I am working on a React-Native application. I've inherited it, development has been stopped for a while and some of the dependencies are outdated. I do not believe this is part of the problem but worth mentioning. Whatever I do, both on the command line and in XCode, the build fails with the following error:

/bin/sh -c /Users/ME/Library/Developer/Xcode/DerivedData/AppName-cftpundgcnfgkvchyeqvsgfusuhb/Build/Intermediates.noindex/AppName.build/Debug-iphonesimulator/AppName.build/Script-948B6EB41D047ADB00584768.sh

Error loading build config, ignoring
Command /bin/sh failed with exit code 1

What I've done

  • npm install
  • In the ios directory, "sudo gem install cocoapods" and "pod install"
  • react-native run-ios

One way or another, this never works and the error is always the one above

What I've tried

  • Locking and unlocking the keychain
  • Deleting the derived data folder, cleaning and re-building
  • Ticking the "only run for install" checkbox in XCode in the RN bundle section
  • Using yarn instead of npm
  • pod deintegrate and install once again
  • Upgrading react-native

Once more, no luck

I'm fairly new to this and don't fully understand what's going on - or why this is failing. Any ideas as to how to solve it?

Version info

react-native-cli: 2.0.1 react-native: 0.61.5 xcode: Version 12.3 (12C33) simulator: iphone 11 (ios 14.3)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...