[TIMOB-3523] Tooling: Custom Titanium Module - Doesn't keep other resources
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2016-08-19T22:03:22.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | core, hard_to_verify |
Reporter | Matthew Lanham |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:46:15.000+0000 |
Updated | 2017-03-23T20:24:14.000+0000 |
Description
When building a module, it seems that it doesn't copy over any resources other than .m/.h files, i.e. if i place an image, or nib in my xcode project this isn't available in the mainBundle of the application and therefore you cannot load nib's, i also noticed while debugging the nib issues, that it doesn't copy over images placed in Xcode, the contents of mainBundle remain similar:
[DEBUG] (
[DEBUG] "appicon.png",
[DEBUG] "debugger.plist",
[DEBUG] "Default-Landscape.png",
[DEBUG] "Default-Portrait.png",
[DEBUG] "Default.png",
[DEBUG] "Default@2x.png",
[DEBUG] flurry,
[DEBUG] "Info.plist",
[DEBUG] "KS_nav_ui.png",
[DEBUG] "KS_nav_views.png",
[DEBUG] modules,
[DEBUG] PkgInfo,
[DEBUG] "stylesheet.plist",
[DEBUG] "ti.flurry"
[DEBUG] )
/Users/swanify/Library/Application Support/iPhone Simulator/4.3/Applications/1B3A1AEF-830E-4253-BF2B-198DF7C6B70D/flurry.app
I used flurry as an example just to prove it wasn't something specific to my module, there should be an image named card-logos.png in there.
Just to add to the above, the reason i was checking the bundle was that i am trying to load a nib and getting the following error:
[DEBUG] 2011-04-06 14:50:11.611 xxxxxxxxxxxx[12236:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'xxxxxxxxxxxxx''
Tested this issue. It still exists.
I cannot reproduce this with Titanium SDK master branch (currently 6.1.0). It has been fixed for a long, long time, probably is the 4.0 era.
Closing ticket as "Cannot Reproduce" with reference to the above comments.