Error uploading an app to the IONIC Package with IOs platform

0

I have a development made with IONIC 1 that works perfectly on Android . I'm trying to upload it to the cloud with " IONIC Package " for IOs platform, to get the executable ". ipa " of iPhone.

With the execution of " ionic package build ios --profile MYSECURITYTAG " in the Windows CMD you upload to the IONIC Package package, but in FAILED .

To know the details of the error, I execute in CMD " ionic package info NUMEROBUILD " and visualize the following:

  

Caught exception:    SyntaxError: Unexpected end of JSON input       at Object.parse (native)       at Request._callback (C: \ Users \ Alan \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ ionic-app-lib \ lib \ package.js: 116: 27)       at Request.self.callback (C: \ Users \ Alan \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ request \ request.js: 373: 22)       at emitTwo (events.js: 106: 13)       at Request.emit (events.js: 191: 7)       at Request. (C: \ Users \ Alan \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ request \ request.js: 1318: 14)       at emitOne (events.js: 101: 20)       at Request.emit (events.js: 188: 7)       at IncomingMessage. (C: \ Users \ Alan \ AppData \ Roaming \ npm \ node_modules \ ionic \ node_modules \ request \ request.js: 1266: 12)       at emitNone (events.js: 91: 20)

I have not modified my package.json because I do not know how to configure it for IOs platform, however, I do not know if that is the error

I'm doing everything from a Windows 10 PC, developing with IONIC 1.

Thank you!

    
asked by Alan Nexus 18.08.2017 в 15:34
source

1 answer

0

The package.json is modified by the ionic cli commands when you do operations such as adding platforms or plugins. I pass a package.json of one of my apps to prove that the structure is the same, the numbers of the versions may vary but the structure should be identical.

{
"name": "app",
"version": "0.0.1",
"description": "An Ionic project",
"dependencies": {
    "cordova-android": "^6.2.3",
    "cordova-ios": "^4.4.0",
    "cordova-plugin-console": "^1.0.5",
    "cordova-plugin-device": "^1.1.4",
    "cordova-plugin-inappbrowser": "^1.7.1",
    "cordova-plugin-network-information": "^1.3.3",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-statusbar": "^2.2.1",
    "cordova-plugin-whitelist": "^1.3.1",
    "gulp": "^3.5.6",
    "gulp-concat": "^2.2.0",
    "gulp-minify-css": "^0.3.0",
    "gulp-rename": "^1.2.0",
    "gulp-sass": "^2.0.4",
    "ionic": "^3.9.2",
    "ionic-plugin-keyboard": "^2.2.1"
},
"devDependencies": {
    "@ionic/cli-plugin-cordova": "1.6.2",
    "@ionic/cli-plugin-gulp": "1.1.1",
    "@ionic/cli-plugin-ionic1": "2.1.1",
    "bower": "^1.3.3",
    "gulp-util": "^2.2.14",
    "ionic": "3.8.1",
    "shelljs": "^0.3.0"
},
"cordova": {
    "plugins": {
        "cordova-plugin-console": {},
        "cordova-plugin-device": {},
        "cordova-plugin-splashscreen": {},
        "cordova-plugin-statusbar": {},
        "cordova-plugin-whitelist": {},
        "ionic-plugin-keyboard": {},
        "cordova-plugin-inappbrowser": {},
        "cordova-plugin-network-information": {}
    },
    "platforms": [
        "android",
        "ios"
    ]
}
}

Edito: If the ionic-cli is not updated it usually gives problems when using the package

    
answered by 21.08.2017 в 11:27