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

前端 未结 14 2459
旧巷少年郎
旧巷少年郎 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:16

    I fixed my issue, you can try it if you are in the same condition.

    I encountered the same error:

    Print: Entry, ":CFBundleIdentifier", Does Not Exist

    When I clone an existing react-native project from learning react native.

    1. I initialize (using {react-native init yourProjectName}) a new project with the same name in a different directory

    2. copy every useful *.ios.js file to this new project from the one I clone elsewhere.

    This works for me.

提交回复
热议问题