title: Ionic And Cordova Error ionic cordova prepare ios
body: <pre><code>shashwatpandey@Shashwats-MacBook-Pro app % ionic cordova prepare ios
  &gt; ng run app:ionic-cordova-build --platform=ios
  </code></pre>
  <blockquote>
  <p>An unhandled exception occurred: Schema validation failed with the
  following errors:   Data path &quot;.scripts[0]&quot; should NOT have additional
  properties(lazy).   Data path &quot;.scripts[0]&quot; should be string.   Data
  path &quot;.scripts[0]&quot; should match exactly one schema in oneOf. See
  &quot;/private/var/folders/yf/jjx7ldpx0x5fj5_rwrbclfch0000gn/T/ng-C0FmND/angular-errors.log&quot;
  for further details. [ERROR] An error occurred while running
  subprocess ng.</p>
  </blockquote>
  <pre><code>    ng run app:ionic-cordova-build --platform=ios exited with exit code 127.
  </code></pre>
  <p>Here is my anugular.json file</p>
  <pre><code>  &quot;$schema&quot;: &quot;./node_modules/@angular/cli/lib/config/schema.json&quot;,
    &quot;version&quot;: 1,
    &quot;defaultProject&quot;: &quot;app&quot;,
    &quot;newProjectRoot&quot;: &quot;projects&quot;,
    &quot;projects&quot;: {
      &quot;app&quot;: {
        &quot;root&quot;: &quot;&quot;,
        &quot;sourceRoot&quot;: &quot;src&quot;,
        &quot;projectType&quot;: &quot;application&quot;,
        &quot;prefix&quot;: &quot;app&quot;,
        &quot;schematics&quot;: {},
        &quot;architect&quot;: {
          &quot;build&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:browser&quot;,
            &quot;options&quot;: {
              &quot;outputPath&quot;: &quot;www&quot;,
              &quot;index&quot;: &quot;src/index.html&quot;,
              &quot;main&quot;: &quot;src/main.ts&quot;,
              &quot;polyfills&quot;: &quot;src/polyfills.ts&quot;,
              &quot;tsConfig&quot;: &quot;tsconfig.app.json&quot;,
              &quot;assets&quot;: [
                {
                  &quot;glob&quot;: &quot;**/*&quot;,
                  &quot;input&quot;: &quot;src/assets&quot;,
                  &quot;output&quot;: &quot;assets&quot;
                },
                {
                  &quot;glob&quot;: &quot;**/*.svg&quot;,
                  &quot;input&quot;: &quot;node_modules/ionicons/dist/ionicons/svg&quot;,
                  &quot;output&quot;: &quot;./svg&quot;
                }
              ],
              &quot;styles&quot;: [
                {
                  &quot;input&quot;: &quot;src/theme/variables.scss&quot;
                },
                {
                  &quot;input&quot;: &quot;src/global.scss&quot;
                }
              ],
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;fileReplacements&quot;: [
                  {
                    &quot;replace&quot;: &quot;src/environments/environment.ts&quot;,
                    &quot;with&quot;: &quot;src/environments/environment.prod.ts&quot;
                  }
                ],
                &quot;optimization&quot;: true,
                &quot;outputHashing&quot;: &quot;all&quot;,
                &quot;sourceMap&quot;: false,
                &quot;extractCss&quot;: true,
                &quot;namedChunks&quot;: false,
                &quot;aot&quot;: true,
                &quot;extractLicenses&quot;: true,
                &quot;vendorChunk&quot;: false,
                &quot;buildOptimizer&quot;: true,
                &quot;budgets&quot;: [
                  {
                    &quot;type&quot;: &quot;initial&quot;,
                    &quot;maximumWarning&quot;: &quot;2mb&quot;,
                    &quot;maximumError&quot;: &quot;5mb&quot;
                  },
                  {
                    &quot;type&quot;: &quot;anyComponentStyle&quot;,
                    &quot;maximumWarning&quot;: &quot;6kb&quot;
                  }
                ]
              },
              &quot;ci&quot;: {
                &quot;progress&quot;: false
              }
            }
          },
          &quot;serve&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:dev-server&quot;,
            &quot;options&quot;: {
              &quot;browserTarget&quot;: &quot;app:build&quot;
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;browserTarget&quot;: &quot;app:build:production&quot;
              },
              &quot;ci&quot;: {
                &quot;progress&quot;: false
              }
            }
          },
          &quot;extract-i18n&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:extract-i18n&quot;,
            &quot;options&quot;: {
              &quot;browserTarget&quot;: &quot;app:build&quot;
            }
          },
          &quot;test&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:karma&quot;,
            &quot;options&quot;: {
              &quot;main&quot;: &quot;src/test.ts&quot;,
              &quot;polyfills&quot;: &quot;src/polyfills.ts&quot;,
              &quot;tsConfig&quot;: &quot;tsconfig.spec.json&quot;,
              &quot;karmaConfig&quot;: &quot;karma.conf.js&quot;,
              &quot;styles&quot;: [],
              &quot;scripts&quot;: [],
              &quot;assets&quot;: [
                {
                  &quot;glob&quot;: &quot;favicon.ico&quot;,
                  &quot;input&quot;: &quot;src/&quot;,
                  &quot;output&quot;: &quot;/&quot;
                },
                {
                  &quot;glob&quot;: &quot;**/*&quot;,
                  &quot;input&quot;: &quot;src/assets&quot;,
                  &quot;output&quot;: &quot;/assets&quot;
                }
              ]
            },
            &quot;configurations&quot;: {
              &quot;ci&quot;: {
                &quot;progress&quot;: false,
                &quot;watch&quot;: false
              }
            }
          },
          &quot;lint&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:tslint&quot;,
            &quot;options&quot;: {
              &quot;tsConfig&quot;: [
                &quot;tsconfig.app.json&quot;,
                &quot;tsconfig.spec.json&quot;,
                &quot;e2e/tsconfig.json&quot;
              ],
              &quot;exclude&quot;: [
                &quot;**/node_modules/**&quot;
              ]
            }
          },
          &quot;e2e&quot;: {
            &quot;builder&quot;: &quot;@angular-devkit/build-angular:protractor&quot;,
            &quot;options&quot;: {
              &quot;protractorConfig&quot;: &quot;e2e/protractor.conf.js&quot;,
              &quot;devServerTarget&quot;: &quot;app:serve&quot;
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;devServerTarget&quot;: &quot;app:serve:production&quot;
              },
              &quot;ci&quot;: {
                &quot;devServerTarget&quot;: &quot;app:serve:ci&quot;
              }
            }
          },
          &quot;ionic-cordova-build&quot;: {
            &quot;builder&quot;: &quot;@ionic/angular-toolkit:cordova-build&quot;,
            &quot;options&quot;: {
              &quot;browserTarget&quot;: &quot;app:build&quot;
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;browserTarget&quot;: &quot;app:build:production&quot;
              }
            }
          },
          &quot;ionic-cordova-serve&quot;: {
            &quot;builder&quot;: &quot;@ionic/angular-toolkit:cordova-serve&quot;,
            &quot;options&quot;: {
              &quot;cordovaBuildTarget&quot;: &quot;app:ionic-cordova-build&quot;,
              &quot;devServerTarget&quot;: &quot;app:serve&quot;
            },
            &quot;configurations&quot;: {
              &quot;production&quot;: {
                &quot;cordovaBuildTarget&quot;: &quot;app:ionic-cordova-build:production&quot;,
                &quot;devServerTarget&quot;: &quot;app:serve:production&quot;
              }
            }
          }
        }
      }
    },
    &quot;cli&quot;: {
      &quot;defaultCollection&quot;: &quot;@ionic/angular-toolkit&quot;,
      &quot;analytics&quot;: &quot;2e4fe3f7-2d2b-421b-9fce-44cb1ede4430&quot;
    },
    &quot;schematics&quot;: {
      &quot;@ionic/angular-toolkit:component&quot;: {
        &quot;styleext&quot;: &quot;scss&quot;
      },
      &quot;@ionic/angular-toolkit:page&quot;: {
        &quot;styleext&quot;: &quot;scss&quot;
      }
    }
  }
  </code></pre>