Page 1 of 1

2.21B : Mojave "Cordova needs to be installed to create iOS"

Posted: Thu Nov 22, 2018 10:37 am
by Niffo
On the new MacOS Mojave, i get the message "Cordova needs to be installed to create iOS app" each time i try to generate an iOS app.
However :
- XCode latest is right installed
- The "SpiderBasic iOS installation script" has right correctly ended (even if i had to manually install NodeJS from website)
- "nmp install -g cordova" returns no error

[Edit] I have the same problem and errors with MacOS High Sierra 10.13.6 [/Edit]

Re: 2.21B : Mojave "Cordova needs to be installed to create

Posted: Thu Nov 22, 2018 10:43 pm
by Niffo
Found that the rights where not good in "/Users/{my_user}/.config" : the "user:group" was "root:staff" instead of "{my_user}:staff". Corrected it with "sudo chown {my_user}:staff".
Now the compilation process starts to count the percent completed ... but shows "SpiderBasic : App build failed" at 60% :(
If I launch SB from command line, I can see these errors :
Code: Select all
cp: /Users/niffo/Desktop/SpiderBasic.app/Contents/Resources/compilers//xcode8.js: No such file or directory
error: archive not found at path '/tmp/spiderbasic-1542926373/app/platforms/ios/Live_Mobile.xcarchive'
CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -exportArchive,-archivePath,Live_Mobile.xcarchive,-exportOptionsPlist,/private/tmp/spiderbasic-1542926373/app/platforms/ios/exportOptions.plist,-exportPath,/private/tmp/spiderbasic-1542926373/app/platforms/ios/build/device'
    at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
    at process.internalTickCallback (internal/process/next_tick.js:77:7)


- I have the same problem and errors with MacOS High Sierra 10.13.6

Re: 2.21B : Mojave "Cordova needs to be installed to create

Posted: Fri Nov 23, 2018 8:14 pm
by poshu
Niffo wrote:Now the compilation process starts to count the percent completed ... but show "SpiderBasic : App build failed" at 60% :(

A shot in the dark : Are you using cordova commands (with import/endimport) in your code? It's my main reason for app creation failure using SB.

Re: 2.21B : Mojave "Cordova needs to be installed to create

Posted: Tue Nov 27, 2018 6:26 pm
by Niffo
poshu wrote:A shot in the dark : Are you using cordova commands (with import/endimport) in your code? It's my main reason for app creation failure using SB.


Not at all :(

Re: 2.21B : Mojave "Cordova needs to be installed to create

Posted: Thu Jan 10, 2019 5:08 pm
by Niffo
A good chance the problem is this one (xcode 10 new build system not supported by Cordova) : https://github.com/apache/cordova-ios/issues/407
The workaround is to add "--buildFlag='-UseModernBuildSystem=0'" to Cordova run/build commands