Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15958] Urban Airship cannot find AirshipConfig.plist in Titanium 3.2.0-beta

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-12-11T19:31:19.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 25, 2013 Sprint 25 Core, Release 3.3.0
ComponentsTooling
Labelsmodules, platform, ti.urbanairship, triage
ReporterFokke Zandbergen
AssigneeChris Barber
Created2013-12-11T08:28:22.000+0000
Updated2014-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

FileDateSize
A.PNG2013-12-11T08:30:50.000+000056708
B.PNG2013-12-11T08:30:50.000+000087306

Comments

  1. Jeff English 2013-12-11

    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.
  2. Fokke Zandbergen 2013-12-11

    I know, and like I explain in step 7-9 the file is not packaged in 3.2.0
  3. Jeff English 2013-12-11

    Agreed. Sorry that I wasn't clear. I was just clarifying the requirement for the ticket.
  4. Ingo Muschenetz 2013-12-11

    Is this specific to the UA module? Does it happen with other modules as well? How about Android vs. iOS?
  5. Fokke Zandbergen 2013-12-11

    [~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.
  6. Ingo Muschenetz 2013-12-11

    Thanks. Just trying to narrow it down. [~emerriman], [~fcasali] any chance you guys can put a little color on this in the morning?
  7. Fokke Zandbergen 2013-12-11

    Uh... this can't wait to 3.3.0, it's a blocker for any UA-push app.
  8. Ingo Muschenetz 2013-12-11

    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?
  9. Chris Barber 2013-12-11

    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:
       sudo ti sdk install -b 3_2_X -d
       
  10. Federico Casali 2013-12-11

    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.
  11. Federico Casali 2013-12-11

    @Fokke: let us know and reopen if you can still reproduce it after upgrading SDK and CLI to latest 3.2.X Closing.
  12. Fokke Zandbergen 2013-12-12

    [~fcasali] yes, it works on the latest. Will update to master next time before reporting ;)

JSON Source