Resolution: Cannot Reproduce
Affects Version/s: None
Fix Version/s: None
- Titanium Studio, build: 18.104.22.168108101535
- Titanium Mobile SDK 1.7.2
- XCode 4.1 Build 4B110
- iOS SDK 4.3
- Mac OS X 10.7.1
Platform-specific images are placed in the following project directories:
These are used to set icons to tabs, in the following working code:
When the iPhone version of builder.py launches the iOS simulator, it does so in a manner causing the app resources to be loaded from the project root folder instead of the app's resource folder in the iphone build folder. This is causing significant issues when loading device specific resources residing in the Resources/iphone folder. For instance, attempting to load the file Resources/iphone/images/KS_nav_ui.png using the path images/KS_nav_ui.png or /images/KS_nav_ui.png no longer works. If you put them in a top level /images folder, they end up overriding their Android density-specific counterparts when the Android version of builder.py runs.
It appears builder.py is correctly copying files from the Resources/iphone folder to the app's resource folder residing at build/iphone/build/Debug-iphonesimulator/appname.app. For instance, the file Resources/iphone/images/KS_nav_ui.png is correctly copied to build/iphone/build/Debug-iphonesimulator/appname.app/images/KS_nav_ui.png. But since the iOS simulator is loading the resources directly from the project root, the files in the app resource folder are ignored.
At present... there doesn't appear to be a graceful workaround to this issue without creating a device specific path at runtime and ingesting it into each path reference for device-specific resources, a significant change to any existing codebase of medium or larger size.