Closed FokkeZB closed 11 years ago
I had this when testing with the simulator. The zip in Resources
was OK, but the zip that was in
~/Library/Application Support/iPhone Simulator/6.1/Applications/etc
was not.
I'm not sure if titanium cli is struggling during build or something else... I will look into this soonish.
I was building the appified app to an Android device and the zip in /build/android/bin/assets/Resources
is fine, so I'm afraid it's a different problem.
The log for an iOS device is:
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Reading stylesheet from: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/stylesheet.plist
Sep 3 14:26:03 iPhone-Fokke kernel[0] <Debug>: launchd[4771] Builtin profile: container (sandbox)
Sep 3 14:26:03 iPhone-Fokke kernel[0] <Debug>: launchd[4771] Container: /private/var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430 (sandbox)
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [INFO] House Battle/1.0 (3.1.2.GA.5ceaff8)
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/app.js, Resource: app_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/api/TiShadow.js, Resource: api/TiShadow_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/api/Log.js, Resource: api/Log_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/api/Utils.js, Resource: api/Utils_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [INFO] [object TiCompressionModule] loaded
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/ti.compression.js, Resource: ti_compression_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/api/PlatformRequire.js, Resource: api/PlatformRequire_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/lib/underscore.js, Resource: lib/underscore_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/api/Assert.js, Resource: api/Assert_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/api/Spec.js, Resource: api/Spec_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/lib/jasmine.js, Resource: lib/jasmine_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/api/TiShadowReporter.js, Resource: api/TiShadowReporter_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/api/JUnitXMLReporter.js, Resource: api/JUnitXMLReporter_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/lib/socket.io.js, Resource: lib/socket_io_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/api/Beach.js, Resource: api/Beach_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/api/UI.js, Resource: api/UI_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/api/Localisation.js, Resource: api/Localisation_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/api/Fonts.js, Resource: api/Fonts_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [INFO] [object YyTidynamicfontModule] loaded
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/yy.tidynamicfont.js, Resource: yy_tidynamicfont_js
Sep 3 14:26:03 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Application booted in 320.824027 ms
Sep 3 14:26:04 iPhone-Fokke House Battle[4771] <Warning>: [DEBUG] Loading: /var/mobile/Applications/8033CFEA-E6F2-4635-8984-954CE3CDC430/House Battle.app/net.iamyellow.tiws.js, Resource: net_iamyellow_tiws_js
OK should be fixed now. Was a stupid mistake on my part. Makes sure you uninstall the appified app before retesting.
I've appified an heavy Alloy app, including native modules, assets and such. This app won't load, but hang on the splash image. I've tried to filter out any relevant messages from the Android console:
My attention was drawn in particular to lines 25 and 27, that seem to indicate it can't find the
app.js
in the packaged app and because of that tries to load it as a native module.Also strange is seeing lines 25/27, 28/29 and 30/31 being duplicates, as though something is happening twice.
The packaged app is quite big (10Mb), so maybe it hasn't finished unzipping it or even fails doing so? But I don't see an error indicating this is the case. The zip extracts fine on my Mac and contains the required
app.js
.