[TIMOB-15958] Urban Airship cannot find AirshipConfig.plist in Titanium 3.2.0-beta
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-11T19:31:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 25, 2013 Sprint 25 Core, Release 3.3.0 |
Components | Tooling |
Labels | modules, platform, ti.urbanairship, triage |
Reporter | Fokke Zandbergen |
Assignee | Chris Barber |
Created | 2013-12-11T08:28:22.000+0000 |
Updated | 2014-05-30T20:45:49.000+0000 |
Description
When you build an app using the ti.urbanairship module it won't work and complain the
AirshipConfig.plist
is missing, which is indeed not included in the final .app
file. This might be a general problem with platform-folder files not being included, but this test case is specific to UA:
Steps to reproduce
1. Create new app:ti create -p ios -n ua --id test.ua -d .
2. Replace app.js
by the module's example [app.js](https://github.com/appcelerator/titanium_modules/blob/master/urbanairship/mobile/ios/example/app.js)
3. Copy the module's example [platform](https://github.com/appcelerator/titanium_modules/tree/master/urbanairship/mobile/ios/example/platform) folder to the root of the app.
4. Build the app to a device: ti build -p ios -T device -C all
5. Click the (on iOS7 poorly layed out) _Open UA Inbox_ button
6. Note that just before the app crashes because of a NSRangeException
it alerts _The AirshipConfig.plist file is missing._ (screenshot A)
7. Go to the project's build/iphone
folder and see that the AirshipConfig.plist
file is there.
8. Open the build/iphone/Debug-iphoneos/ua.app
package and see the file is *NOT* there!
9. Repeat steps 4-8 with 3.1.3.GA and see that the app now (still crashes, but) alerts the application key and secret are not set property, like expected. Also, you'll find that this time the ua.app
package *does* have the file.
Attachments
File | Date | Size |
---|---|---|
A.PNG | 2013-12-11T08:30:50.000+0000 | 56708 |
B.PNG | 2013-12-11T08:30:50.000+0000 | 87306 |
The AirshipConfig.plist file is required by the UA module. It should be getting copied into the application bundle like other files in the platform folder.
I know, and like I explain in step 7-9 the file is not packaged in 3.2.0
Agreed. Sorry that I wasn't clear. I was just clarifying the requirement for the ticket.
Is this specific to the UA module? Does it happen with other modules as well? How about Android vs. iOS?
[~ingo] I have no idea and I'm afraid I don't have time to test this today and probably not tomorrow either, but I just wanted to get this reported soon since it's quit critical if you ask me.
Thanks. Just trying to narrow it down. [~emerriman], [~fcasali] any chance you guys can put a little color on this in the morning?
Uh... this can't wait to 3.3.0, it's a blocker for any UA-push app.
Fokke. merge-3.2.0. You're fine. Chris also thinks it's already fixed with a newer build. Can you try the latest SDK?
I cannot reproduce. The AirshipConfig.plist file is present in my app. I believe this was fixed by TIMOB-15907. [~fokke] can you please try a new 3.2 CI build that was built after Dec 6th, 2013. To install the latest CI build, run:
Can't reproduce also from my side. TiSDK 3.2.0.v20131210191510 CLI 3.2.0-beta UrbanAirship 1.3.2 Tested on iOS 7 iPhone 5S and iOS 7 simulator.
@Fokke: let us know and reopen if you can still reproduce it after upgrading SDK and CLI to latest 3.2.X Closing.
[~fcasali] yes, it works on the latest. Will update to master next time before reporting ;)