Xcode not generating app with latest changes

2019-08-24 03:09发布

问题:

My latest changes in Ionic app are not reflected on simulator or in ipa file which i am generating with xcode 10.

I tried many solution like removed build folder, remove ios folder from platform and add it again but none of works.

Any one has idea what might be problem is ?

回答1:

Only use these commands

cordova clean 

and

npm run clean


回答2:

For Xcode 10 you likely will need to force the use of the legacy build system. This is described in this blog post.

Summary: Create a build.json file in the root of your project with the following contents:

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