Compiling for iOS

Just starting out? Need help? Post your questions and find answers here.
jamirokwai
Posts: 40
Joined: Fri Sep 25, 2015 12:00 pm

Compiling for iOS

Post by jamirokwai »

Hey Fred,
hey all,

I'd like to export a simple test to an iOS-App. Everything is working, except the compilation. It stops at 60% (a requester showing "iOS App build failed."). I setup Xcode, the appropriate iOS-tab for export in SpiderBasic, installed everything including JDK 1.8. All seems to have worked.

Thanks for your help :-)

Cheers
Jörg


The log-file would be this...

Code: Select all

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   '-g',
1 verbose cli   'ios-deploy',
1 verbose cli   '--unsafe-perm=true' ]
2 info using npm@3.10.10
3 info using node@v7.2.1
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData ios-deploy
8 silly fetchNamedPackageData ios-deploy
9 silly mapToRegistry name ios-deploy
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry   raw: 'ios-deploy',
12 silly mapToRegistry   scope: null,
12 silly mapToRegistry   escapedName: 'ios-deploy',
12 silly mapToRegistry   name: 'ios-deploy',
12 silly mapToRegistry   rawSpec: '',
12 silly mapToRegistry   spec: 'latest',
12 silly mapToRegistry   type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/ios-deploy
14 verbose request uri https://registry.npmjs.org/ios-deploy
15 verbose request no auth needed
16 info attempt registry request try #1 at 19:09:56
17 verbose request id 43e27edd67bdd36a
18 http request GET https://registry.npmjs.org/ios-deploy
19 http 200 https://registry.npmjs.org/ios-deploy
20 verbose headers { server: 'nginx/1.10.1',
20 verbose headers   'content-type': 'application/json',
20 verbose headers   'last-modified': 'Mon, 17 Oct 2016 01:47:13 GMT',
20 verbose headers   etag: 'W/"58042da1-9e49"',
20 verbose headers   'content-encoding': 'gzip',
20 verbose headers   'cache-control': 'max-age=300',
20 verbose headers   'content-length': '6229',
20 verbose headers   'accept-ranges': 'bytes',
20 verbose headers   date: 'Mon, 09 Jan 2017 18:09:56 GMT',
20 verbose headers   via: '1.1 varnish',
20 verbose headers   age: '0',
20 verbose headers   connection: 'keep-alive',
20 verbose headers   'x-served-by': 'cache-fra1222-FRA',
20 verbose headers   'x-cache': 'HIT',
20 verbose headers   'x-cache-hits': '1',
20 verbose headers   'x-timer': 'S1483985396.841311,VS0,VE19',
20 verbose headers   vary: 'Accept-Encoding' }
21 silly get cb [ 200,
21 silly get   { server: 'nginx/1.10.1',
21 silly get     'content-type': 'application/json',
21 silly get     'last-modified': 'Mon, 17 Oct 2016 01:47:13 GMT',
21 silly get     etag: 'W/"58042da1-9e49"',
21 silly get     'content-encoding': 'gzip',
21 silly get     'cache-control': 'max-age=300',
21 silly get     'content-length': '6229',
21 silly get     'accept-ranges': 'bytes',
21 silly get     date: 'Mon, 09 Jan 2017 18:09:56 GMT',
21 silly get     via: '1.1 varnish',
21 silly get     age: '0',
21 silly get     connection: 'keep-alive',
21 silly get     'x-served-by': 'cache-fra1222-FRA',
21 silly get     'x-cache': 'HIT',
21 silly get     'x-cache-hits': '1',
21 silly get     'x-timer': 'S1483985396.841311,VS0,VE19',
21 silly get     vary: 'Accept-Encoding' } ]
22 verbose get saving ios-deploy to /Users/joe/.npm/registry.npmjs.org/ios-deploy/.cache.json
23 verbose correctMkdir /Users/joe/.npm correctMkdir not in flight; initializing
24 silly install normalizeTree
25 silly loadCurrentTree Finishing
26 silly loadIdealTree Starting
27 silly install loadIdealTree
28 silly cloneCurrentTree Starting
29 silly install cloneCurrentTreeToIdealTree
30 silly cloneCurrentTree Finishing
31 silly loadShrinkwrap Starting
32 silly install loadShrinkwrap
33 silly loadShrinkwrap Finishing
34 silly loadAllDepsIntoIdealTree Starting
35 silly install loadAllDepsIntoIdealTree
36 silly resolveWithNewModule ios-deploy@1.9.0 checking installable status
37 silly cache add args [ 'ios-deploy', null ]
38 verbose cache add spec ios-deploy
39 silly cache add parsed spec Result {
39 silly cache add   raw: 'ios-deploy',
39 silly cache add   scope: null,
39 silly cache add   escapedName: 'ios-deploy',
39 silly cache add   name: 'ios-deploy',
39 silly cache add   rawSpec: '',
39 silly cache add   spec: 'latest',
39 silly cache add   type: 'tag' }
40 silly addNamed ios-deploy@latest
41 verbose addNamed "latest" is being treated as a dist-tag for ios-deploy
42 info addNameTag [ 'ios-deploy', 'latest' ]
43 silly mapToRegistry name ios-deploy
44 silly mapToRegistry using default registry
45 silly mapToRegistry registry https://registry.npmjs.org/
46 silly mapToRegistry data Result {
46 silly mapToRegistry   raw: 'ios-deploy',
46 silly mapToRegistry   scope: null,
46 silly mapToRegistry   escapedName: 'ios-deploy',
46 silly mapToRegistry   name: 'ios-deploy',
46 silly mapToRegistry   rawSpec: '',
46 silly mapToRegistry   spec: 'latest',
46 silly mapToRegistry   type: 'tag' }
47 silly mapToRegistry uri https://registry.npmjs.org/ios-deploy
48 verbose addNameTag registry:https://registry.npmjs.org/ios-deploy not in flight; fetching
49 verbose get https://registry.npmjs.org/ios-deploy not expired, no request
50 silly addNameTag next cb for ios-deploy with tag latest
51 silly addNamed ios-deploy@1.9.0
52 verbose addNamed "1.9.0" is a plain semver version for ios-deploy
53 silly mapToRegistry name ios-deploy
54 silly mapToRegistry using default registry
55 silly mapToRegistry registry https://registry.npmjs.org/
56 silly mapToRegistry data Result {
56 silly mapToRegistry   raw: 'ios-deploy',
56 silly mapToRegistry   scope: null,
56 silly mapToRegistry   escapedName: 'ios-deploy',
56 silly mapToRegistry   name: 'ios-deploy',
56 silly mapToRegistry   rawSpec: '',
56 silly mapToRegistry   spec: 'latest',
56 silly mapToRegistry   type: 'tag' }
57 silly mapToRegistry uri https://registry.npmjs.org/ios-deploy
58 verbose addRemoteTarball https://registry.npmjs.org/ios-deploy/-/ios-deploy-1.9.0.tgz not in flight; adding
59 verbose addRemoteTarball [ 'https://registry.npmjs.org/ios-deploy/-/ios-deploy-1.9.0.tgz',
59 verbose addRemoteTarball   '9f065b9dd78143df51c8a740dac974615b950984' ]
60 info retry fetch attempt 1 at 19:09:56
61 info attempt registry request try #1 at 19:09:56
62 http fetch GET https://registry.npmjs.org/ios-deploy/-/ios-deploy-1.9.0.tgz
63 http fetch 200 https://registry.npmjs.org/ios-deploy/-/ios-deploy-1.9.0.tgz
64 silly fetchAndShaCheck shasum 9f065b9dd78143df51c8a740dac974615b950984
65 verbose addTmpTarball /tmp/npm-90931-a2833893/registry.npmjs.org/ios-deploy/-/ios-deploy-1.9.0.tgz not in flight; adding
66 verbose addTmpTarball already have metadata; skipping unpack for ios-deploy@1.9.0
67 verbose correctMkdir /Users/joe/.npm correctMkdir not in flight; initializing
68 silly cache afterAdd ios-deploy@1.9.0
69 verbose afterAdd /Users/joe/.npm/ios-deploy/1.9.0/package/package.json not in flight; writing
70 verbose correctMkdir /Users/joe/.npm correctMkdir not in flight; initializing
71 verbose afterAdd /Users/joe/.npm/ios-deploy/1.9.0/package/package.json written
72 silly loadAllDepsIntoIdealTree Finishing
73 silly loadIdealTree Finishing
74 silly currentTree lib
75 silly idealTree lib
75 silly idealTree └── ios-deploy@1.9.0
76 silly generateActionsToTake Starting
77 silly install generateActionsToTake
78 silly generateActionsToTake Finishing
79 silly diffTrees action count 1
80 silly diffTrees add ios-deploy@1.9.0
81 silly decomposeActions action count 8
82 silly decomposeActions fetch ios-deploy@1.9.0
83 silly decomposeActions extract ios-deploy@1.9.0
84 silly decomposeActions test ios-deploy@1.9.0
85 silly decomposeActions preinstall ios-deploy@1.9.0
86 silly decomposeActions build ios-deploy@1.9.0
87 silly decomposeActions install ios-deploy@1.9.0
88 silly decomposeActions postinstall ios-deploy@1.9.0
89 silly decomposeActions finalize ios-deploy@1.9.0
90 silly runTopLevelLifecycles Starting
91 silly executeActions Starting
92 silly install executeActions
93 silly doSerial global-install 0
94 silly doParallel fetch 1
95 verbose correctMkdir /Users/joe/.npm/_locks correctMkdir not in flight; initializing
96 verbose lock using /Users/joe/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging
97 silly doParallel extract 1
98 silly extract ios-deploy@1.9.0
99 verbose unbuild lib/node_modules/.staging/ios-deploy-298c9491
100 silly gentlyRm /usr/local/lib/node_modules/.staging/ios-deploy-298c9491 is being purged from base /usr/local
101 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/.staging/ios-deploy-298c9491
102 verbose tar unpack /Users/joe/.npm/ios-deploy/1.9.0/package.tgz
103 verbose tar unpacking to /usr/local/lib/node_modules/.staging/ios-deploy-298c9491
104 silly gentlyRm /usr/local/lib/node_modules/.staging/ios-deploy-298c9491 is being purged
105 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/.staging/ios-deploy-298c9491
106 silly gunzTarPerm modes [ '755', '644' ]
107 silly gunzTarPerm extractEntry package.json
108 silly gunzTarPerm extractEntry .npmignore
109 silly gunzTarPerm extractEntry README.md
110 silly gunzTarPerm extractEntry LICENSE
111 silly gunzTarPerm extractEntry demo/.npmignore
112 silly gunzTarPerm extractEntry demo/Entitlements.plist
113 silly gunzTarPerm extractEntry demo/Info.plist
114 silly gunzTarPerm extractEntry demo/Makefile
115 silly gunzTarPerm extractEntry demo/ResourceRules.plist
116 silly gunzTarPerm extractEntry demo/demo.c
117 silly gunzTarPerm extractEntry ios-deploy.xcodeproj/project.pbxproj
118 silly gunzTarPerm extractEntry ios-deploy.xcodeproj/project.xcworkspace/contents.xcworkspacedata
119 silly gunzTarPerm extractEntry ios-deploy.xcodeproj/project.xcworkspace/xcuserdata/shazron.xcuserdatad/UserInterfaceState.xcuserstate
120 silly gunzTarPerm extractEntry ios-deploy.xcodeproj/xcshareddata/xcschemes/ios-deploy-tests.xcscheme
121 silly gunzTarPerm extractEntry ios-deploy.xcodeproj/xcuserdata/shazron.xcuserdatad/xcschemes/ios-deploy-lib.xcscheme
122 silly gunzTarPerm extractEntry ios-deploy.xcodeproj/xcuserdata/shazron.xcuserdatad/xcschemes/ios-deploy.xcscheme
123 silly gunzTarPerm extractEntry ios-deploy.xcodeproj/xcuserdata/shazron.xcuserdatad/xcschemes/xcschememanagement.plist
124 silly gunzTarPerm extractEntry CONTRIBUTING.md
125 silly gunzTarPerm extractEntry src/ios-deploy/MobileDevice.h
126 silly gunzTarPerm extractEntry src/ios-deploy/errors.h
127 silly gunzTarPerm extractEntry src/ios-deploy/ios-deploy.m
128 silly gunzTarPerm extractEntry src/ios-deploy/version.h
129 silly gunzTarPerm extractEntry src/ios-deploy-lib/libios_deploy.h
130 silly gunzTarPerm extractEntry src/ios-deploy-lib/libios_deploy.m
131 silly gunzTarPerm extractEntry src/ios-deploy-tests/Info.plist
132 silly gunzTarPerm extractEntry src/ios-deploy-tests/ios_deploy_tests.m
133 silly gunzTarPerm extractEntry src/scripts/check_reqs.js
134 silly gunzTarPerm extractEntry src/scripts/lldb.py
135 silly gentlyRm /usr/local/lib/node_modules/.staging/ios-deploy-298c9491/node_modules is being purged
136 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/.staging/ios-deploy-298c9491/node_modules
137 silly doParallel preinstall 1
138 silly preinstall ios-deploy@1.9.0 /usr/local/lib/node_modules/.staging/ios-deploy-298c9491
139 info lifecycle ios-deploy@1.9.0~preinstall: ios-deploy@1.9.0
140 verbose lifecycle ios-deploy@1.9.0~preinstall: unsafe-perm in lifecycle true
141 verbose lifecycle ios-deploy@1.9.0~preinstall: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/.staging/ios-deploy-298c9491/node_modules/.bin:/usr/local/lib/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
142 verbose lifecycle ios-deploy@1.9.0~preinstall: CWD: /usr/local/lib/node_modules/.staging/ios-deploy-298c9491
143 silly lifecycle ios-deploy@1.9.0~preinstall: Args: [ '-c', './src/scripts/check_reqs.js && xcodebuild' ]
144 silly lifecycle ios-deploy@1.9.0~preinstall: Returned: code: 1  signal: null
145 info lifecycle ios-deploy@1.9.0~preinstall: Failed to exec preinstall script
146 verbose unlock done using /Users/joe/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging
147 silly rollbackFailedOptional Starting
148 silly rollbackFailedOptional Finishing
149 silly runTopLevelLifecycles Finishing
150 silly install printInstalled
151 verbose stack Error: ios-deploy@1.9.0 preinstall: `./src/scripts/check_reqs.js && xcodebuild`
151 verbose stack Exit status 1
151 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
151 verbose stack     at emitTwo (events.js:106:13)
151 verbose stack     at EventEmitter.emit (events.js:191:7)
151 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
151 verbose stack     at emitTwo (events.js:106:13)
151 verbose stack     at ChildProcess.emit (events.js:191:7)
151 verbose stack     at maybeClose (internal/child_process.js:885:16)
151 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
152 verbose pkgid ios-deploy@1.9.0
153 verbose cwd /Users/joe
154 error Darwin 16.3.0
155 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ios-deploy" "--unsafe-perm=true"
156 error node v7.2.1
157 error npm  v3.10.10
158 error code ELIFECYCLE
159 error ios-deploy@1.9.0 preinstall: `./src/scripts/check_reqs.js && xcodebuild`
159 error Exit status 1
160 error Failed at the ios-deploy@1.9.0 preinstall script './src/scripts/check_reqs.js && xcodebuild'.
160 error Make sure you have the latest version of node.js and npm installed.
160 error If you do, this is most likely a problem with the ios-deploy package,
160 error not with npm itself.
160 error Tell the author that this fails on your system:
160 error     ./src/scripts/check_reqs.js && xcodebuild
160 error You can get information on how to open an issue for this project with:
160 error     npm bugs ios-deploy
160 error Or if that isn't available, you can get their info via:
160 error     npm owner ls ios-deploy
160 error There is likely additional logging output above.
161 verbose exit [ 1, true ]
tj1010
Posts: 218
Joined: Wed May 27, 2015 1:36 pm
Contact:

Re: Compiling for iOS

Post by tj1010 »

Looks like a problem with a dependency.. Maybe SB doesn't use something right?

Also, SB doesn't have networking on Android or IOS so don't go forward with any production yet..
jamirokwai
Posts: 40
Joined: Fri Sep 25, 2015 12:00 pm

Re: Compiling for iOS

Post by jamirokwai »

tj1010 wrote:Looks like a problem with a dependency.. Maybe SB doesn't use something right?

Also, SB doesn't have networking on Android or IOS so don't go forward with any production yet..
Thanks for your hint. I tried updating again, I've got Java 1.8 installed, and added the folder. Doesn't work.
Yes, networking might be interesting, but I would like to deploy a local full screen app first. Hope, I can fix this somehow.

btw.: It's macOS Sierra with SpiderBasic 2.0.
jamirokwai
Posts: 40
Joined: Fri Sep 25, 2015 12:00 pm

Re: Compiling for iOS

Post by jamirokwai »

Facepalm 1: I moved Xcode.app to a subdirectory called Develop (you know, Xcode, SpiderDasic, PureBasic, GitHub, what not?)
Faceplam 2: Didn't download the certificate...

ARGH

See my short tutorial for iOS-Deployment here...
http://forums.spiderbasic.com/viewtopic.php?f=9&t=1036
tj1010
Posts: 218
Joined: Wed May 27, 2015 1:36 pm
Contact:

Re: Compiling for iOS

Post by tj1010 »

jamirokwai wrote:Facepalm 1: I moved Xcode.app to a subdirectory called Develop (you know, Xcode, SpiderDasic, PureBasic, GitHub, what not?)
Faceplam 2: Didn't download the certificate...

ARGH

See my short tutorial for iOS-Deployment here...
http://forums.spiderbasic.com/viewtopic.php?f=9&t=1036
In your tutorial you need to add they need to set JDK path on #5.

I don't have a OSX VM setup or a IOS device but it's cool I guessed right on making the apps. Once people start big projects a lot of SB bugs will get found and fixed.
jamirokwai
Posts: 40
Joined: Fri Sep 25, 2015 12:00 pm

Re: Compiling for iOS

Post by jamirokwai »

tj1010 wrote:
jamirokwai wrote:Facepalm 1: I moved Xcode.app to a subdirectory called Develop (you know, Xcode, SpiderDasic, PureBasic, GitHub, what not?)
Faceplam 2: Didn't download the certificate...

ARGH

See my short tutorial for iOS-Deployment here...
http://forums.spiderbasic.com/viewtopic.php?f=9&t=1036
In your tutorial you need to add they need to set JDK path on #5.

I don't have a OSX VM setup or a IOS device but it's cool I guessed right on making the apps. Once people start big projects a lot of SB bugs will get found and fixed.
Thanks for the hint with JDK path. I added it in the other post.
Post Reply