Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5096] iOS: Building for iOS Simulator may have issues if folders of the same name coexist in Resources/iphone and Resources.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-10-27T12:26:06.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-43, Release 1.8.0
ComponentsiOS
Labelsn/a
ReporterBlain Hamon
AssigneeBlain Hamon
Created2011-08-24T12:11:43.000+0000
Updated2014-06-19T12:46:33.000+0000

Description

This is a flaw in builder.py, given how we softlink to folders in resources and iPhone. That is,
+ Resources
 - File1
 + FolderA
  - File2
  - File3
 + iPhone
  - File4
  + FolderA
   - File2
   - File5
Should recursively collapse to:
+ App
 - File1 (From project resources)
 - File4 (from iPhone)
 + FolderA (New folder)
  - File2 (from iPhone)
  - File3 (From project resources)
  - File5 (from iPhone)
As it is, it currently builds to:
+ App
 - File1 (From project resources)
 - File4 (from iPhone)
 + FolderA (from iPhone)
  - File2 (from iPhone)
  - File5 (from iPhone)

Attachments

FileDateSize
timob-5096.tar.gz2011-10-25T16:43:59.000+00001579090

Comments

  1. Blain Hamon 2011-08-24

    Not sure if I need to make a test case for this beyond what's described. What's more, one side effect (that I hadn't planned) is manifested as TIMOB-4937, so effectively, we might want to close this as duplicate.
  2. Blain Hamon 2011-08-24

    Not sure if I need to make a test case for this beyond what's described. What's more, one side effect (that I hadn't planned) is manifested as TIMOB-4937, so effectively, we might want to close this as duplicate.
  3. Stephen Tramer 2011-10-25

    Resources for a sample project which mimics the directory structure provided in the description.
  4. Stephen Tramer 2011-10-25

    Testing

    ---- To test: - Create a new project in TiStudio - Download the attached resources, and replace the project's resources with them - Clean the project (to ensure a consistent build) - Run in simulator PASS: - You should see five pictures of cats, and no errors in the console. FAIL: - Any images do not load, and there is an error in the console about not being able to locate the appropriate resource (images: 1, 2, 5, 3, 4 from upper-left to bottom-right). ---- Testing should also be performed on device, to ensure consistency of the build process.
  5. Wilson Luu 2011-12-08

    Closing bug. Verified fix on: OS: Mac OS X Lion Titanium Studio, build: 1.0.7.201112080131 SDK build: 1.8.0.1.v20111207180431 Devices: iOS Simulator (5.0)

JSON Source