Blank app fails debug build - /Info.plist file not found

后端 未结 6 1310
南方客
南方客 2020-12-14 22:29

In a larger context I resorted back to creating a blank project and running my build commands. Same error:

ionic start myApp blank
cd myApp
ionic cordova run         


        
6条回答
  •  遥遥无期
    2020-12-14 22:57

    This problem is caused because of Xcode 10. I resolved this issue by two ways.

    1. ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"

    2. Create a build.json file on root of project.

    In build.json write below code.

    {
        "ios": {
            "debug": {
                "buildFlag": ["-UseModernBuildSystem=0"]
            },
            "release": {
                "buildFlag": ["-UseModernBuildSystem=0"]
            }
        }
    }
    

    After that you can run these commands without any error.

    • ionic cordova build ios
    • ionic cordova run ios
    • ionic cordova run ios --target="iPhone-6s" -l

提交回复
热议问题