React Native Build Commands Failed: PhaseScriptExecution … (domain=NSPOSIXErrorDomain, code=2)

前端 未结 14 2487
旧巷少年郎
旧巷少年郎 2021-02-12 09:45

Environment

Mac OS X Version 10.11.3 (15D21)
Xcode Version 7.2 (7C68)
Simulator Version 9.2 (SimulatorApp-643)
react-native-cli 0.1.10
node v5.5         


        
相关标签:
14条回答
  • 2021-02-12 10:28

    The problem is in the js file that builds and runs your app. Unless your project, scheme, and Product Name are all the same, you'll get errors, especially on simulators.

    The good news is that I submitted a pull request that fixes the problem. Please go upvote it so we don't have worry about things breaking when we rename things.

    0 讨论(0)
  • 2021-02-12 10:31

    1.Go to File -> Project settings 2.Click the Advanced button 3.Select "Custom" and select "Relative to Workspace" in the pull down 4.Change "Build/Products" to "build/Build/Products" 5.click done, done

    0 讨论(0)
提交回复
热议问题