Found an issue in SpiderBasic ? Please report it here !
hoerbie
 
Posts: 33
Joined: Sun Mar 17, 2019 5:51 pm

Re: [Done] 2.21 : Create iOS app stops at 60%

by hoerbie Wed Sep 04, 2019 7:04 pm

I tested today:

Both my development machines with macOS 10.14.6 and Xcode 10.3, after using the check install button, create an .ipa with SB 2.22b1, and now SB 2.21 also creates an .ipa, so I have to think the check install fixed what was needed.

In my test VM of macOS 10.13.6 with Xcode & Command Line tools 9.4.1, that I set up for testing this summer, the create app still stops at 60% with SB 2.22b1, also I used the check install button, that created the dummy app successfully, but not our real app and not some SB examples.

I'm willing to do further tests if needed.
hoerbie
 
Posts: 33
Joined: Sun Mar 17, 2019 5:51 pm

Re: 2.21 : Create iOS app stops at 60%

by hoerbie Tue Sep 24, 2019 8:21 am

Sorry, I have to reopen this.

I got a new Mac Mini yesterday, did every update to Mojave, and I did NOT installed the new Xcode 11 (don't know if this kills Cordova again like last year), but I used the Xcode 10.3 and command line tools from Apples developer downloads, that work on both my other Macs. I installed SB 2.22 and configured all our developer data in XCode and our team id in SB.

When I use the new "Check XCode and Cordova setup" function after installing npm, SB installs a lot and then tells me, that everything is OK and that the dummy app could be created.

But compiling for example the CanvasGadget.sb file, the "Create iOS app" stops again at 60%.

As the CLI compiler documentation seems to lack a lot of descriptions and a full example what parameters it needs to really compile an iOS app, the new verbose output doesn't help.

Trying the same as Dirk Geppert on Tue Sep 03, 2019 12:42 pm, I get the same error "Error: Can't load the 'ios' subsystem.". If I delete the -i switch, I get an error about missing resource directory.

By the way: as the new XCode 11 is out now, I anyone willing to try or has tried it with Cordova/SpiderBasic?
hoerbie
 
Posts: 33
Joined: Sun Mar 17, 2019 5:51 pm

Re: [Done] 2.21 : Create iOS app stops at 60%

by hoerbie Tue Sep 24, 2019 8:36 am

And I can close it again with a tip for everyone having the same problem, I found the solution, thanks to the following post of @Niffo:

https://forums.spiderbasic.com/viewtopic.php?f=11&t=1591#p5692

This was the right hint, but it isn't sufficient to chown the .config dir itself, but to chown the dir and its content.

I found out when typing "npm info cordova" in terminal, it said

Code: Select all
┌─────────────────────────────────────────────────────────────┐
│                   npm update check failed                   │
│             Try running with sudo or get access             │
│            to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) /Users/{myuser}/.config │
└─────────────────────────────────────────────────────────────┘


After using the command "sudo chown -R $USER:$(id -gn $USER) /Users/{myuser}/.config", the "Create iOS App" works. Note: You have to change {myuser} to your username!

@Fred: Maybe you should integrate something like this in the install-cordova.sh script!
Dirk Geppert
 
Posts: 146
Joined: Fri Sep 22, 2017 7:02 am

Re: [Done] 2.21 : Create iOS app stops at 60%

by Dirk Geppert Tue Sep 24, 2019 1:06 pm

I've downgraded to Xcode 9.4.

"npm info cordova" and the Spider Install script telling me, everything is fine.

Tried to create the Canvas example as app: "App signing failed. Please check your AppleTeam ID, and available certificates in XCode."
Unfortunately I can't find a way in XCode to enter an AppleTeamID or to check certificates. Can anyone help?

Also interesting, if you use an @ character for "Package ID:", you get the error: "Cordova needs to be installed to create iOS app."
hoerbie
 
Posts: 33
Joined: Sun Mar 17, 2019 5:51 pm

Re: [Done] 2.21 : Create iOS app stops at 60%

by hoerbie Tue Sep 24, 2019 2:19 pm

@Dirk

The Apple team id only has to be entered once and saved in SpiderBasic, please have a look at the menu bar "SpiderBasic -> Preferences -> Compiler", there is the only field, where I ever have entered the team id.

The developer certificates have to be generated (or if existing ones, then imported) in Xcode. In Xcode 10 (maybe its the same in your version 9) please have a look at the menu bar "Xcode -> Preferences -> Accounts". This is the only page, where I entered the Apple id of my developer account and then on the first Mac generated the certificates and exported them as developer profile. This developer profile I imported on both other Macs. On the account page I have two lines with
1. "Team" shows my registered company name and "Role" shows "Agent"
2. "Team" shows my personal name and "Role" shows "User"
Using the button "Manage Certificates" the "Agent" has the following certificates: 1*iOS Development, 1*iOS Distribution, 1*macOS Development and 4*macOS Distribution. The "User" has only the certificates: 1*iOS Development, 1*macOS Development

With this everything works fine.
Dirk Geppert
 
Posts: 146
Joined: Fri Sep 22, 2017 7:02 am

Re: [Done] 2.21 : Create iOS app stops at 60%

by Dirk Geppert Wed Sep 25, 2019 7:05 am

@hoerbie: Thank you very much for your support. I have now entered everything correctly. Result: SpiderBasic now reports "App build failed" after 60%.

Tried it via Bash:

Code: Select all
sbcompiler /Applications/SpiderBasic.app/Contents/Resources/examples/CanvasGadget.sb -an CanvasApp -pi mycompany.app.canvas.test -i -vb -o CanvasApp.ipa -at myID

******************************************
SpiderBasic 2.22 (MacOS X - x64)
******************************************

Compiling '/Applications/SpiderBasic.app/Contents/Resources/examples/CanvasGadget.sb'
Loading libraries...
Error: Can't load the 'ios' subsystem.


:cry:
User avatar
Niffo
 
Posts: 78
Joined: Sat Jun 16, 2018 10:30 pm

Re: [Done] 2.21 : Create iOS app stops at 60%

by Niffo Wed Sep 25, 2019 7:39 am

It seems ios module is not loaded in your Cordova setup.
(but i don't know if Fred's latest modifications in SB2.22 has been tested with XCode 9 as it seems you are still using it)
Dirk Geppert
 
Posts: 146
Joined: Fri Sep 22, 2017 7:02 am

Re: [Done] 2.21 : Create iOS app stops at 60%

by Dirk Geppert Wed Sep 25, 2019 8:30 am

Ok, updated to XCode 11.0 and started Freds install script again.

"npm info cordova":

Code: Select all
cordova@9.0.0 | Apache-2.0 | deps: 8 | versions: 1001
Cordova command line interface tool
https://github.com/apache/cordova-cli#readme

keywords: cordova, client, cli

bin: cordova

dist
.tarball: https://registry.npmjs.org/cordova/-/cordova-9.0.0.tgz
.unpackedSize: 143.0 kB

dependencies:
configstore: ^4.0.0     editor: ^1.0.0          nopt: ^4.0.1           
cordova-common: ^3.1.0  insight: ^0.10.1        update-notifier: ^2.5.0
cordova-lib: ^9.0.0     loud-rejection: ^2.0.0 

maintainers:
- agrieve <agrieve@chromium.org>
- anis <anis.kadri@gmail.com>
- apachebuilds <root@apache.org>
- bennmapes <benn.mapes@gmail.com>
- bhiggins <bryan@bryanhiggins.net>
- bowserj <bowserj@apache.org>
- brianleroux <b@brian.io>
- brodybits <chris@brody.consulting>
- cmarcelk <cmarcelk@gmail.com>
- cordovaowner <apachecordovabot@gmail.com>
- dpogue <darryl@dpogue.ca>
- erisu <erisu.dev@outlook.jp>
- filmaj <maj.fil@gmail.com>
- kamrik <kamrik@gmail.com>
- kotikov.vladimir <kotikov.vladimir@gmail.com>
- mmocny <mmocny@gmail.com>
- mwbrooks <michael@michaelbrooks.ca>
- purplecabbage <purplecabbage@gmail.com>
- sgrebnov <sergei.grebnov@gmail.com>
- shazron <shazron@gmail.com>
- shepheb <braden.shepherdson@gmail.com>
- stevegill <stevengill97@gmail.com>
- sujan12 <piotrowski+npmjs.com@gmail.com>
- surajpindoria <suraj.pindoria@yahoo.com>
- timbarham <npmjs@barhams.info>

dist-tags:
3.6.0-0.2.8: 3.6.0-0.2.8
latest: 9.0.0
nightly: 9.0.1-nightly.2019.9.23.1c8ca07f
rc: 5.3.3

published 6 months ago by erisu <erisu.dev@outlook.jp>


Still same problems. iOS subsystem not found..
Dirk Geppert
 
Posts: 146
Joined: Fri Sep 22, 2017 7:02 am

Re: [Done] 2.21 : Create iOS app stops at 60%

by Dirk Geppert Wed Sep 25, 2019 8:31 am

Maybe only XCode 10 is supported?
User avatar
Niffo
 
Posts: 78
Joined: Sat Jun 16, 2018 10:30 pm

Re: [Done] 2.21 : Create iOS app stops at 60%

by Niffo Wed Sep 25, 2019 8:37 am

Maybe you can try :
cordova platform remove ios
cordova platform add ios
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 2 guests