Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10100] iOS: Warn user if they attempt to give projects and subfolders of that project the same name

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2012-07-24T15:41:03.000+0000
Affected Version/sRelease 2.0.2, Release 2.1.0, Release 2.0.1
Fix Version/sSprint 2012-15 Core
ComponentsiOS
Labelscore, qe-ios070112
ReporterDustin Hyde
AssigneeNeeraj Gupta
Created2012-07-18T13:27:59.000+0000
Updated2012-08-14T12:01:47.000+0000

Description

Due to a restriction in the SDK, you cannot have the name of a project and a folder it contains have the same name. This restriction is case-insensitive.

Use following steps to reproduce.

1. Click on HTML-based Application from Titanium Studio Dashboard > Develop 2. Name the project HTML 3. Try building it. 4. The build fails with the following [log](https://raw.github.com/gist/3166071/6670effbe58ff87ffd317081d6ded213d562417d/build.log) This seems like a wide spread developer problem and it seems to well talked about in [here](http://developer.appcelerator.com/question/119869/ios)

NOTE: This is not a template bug.

Suggested fixes:

On project creation, alert the user if a subfolder of the project conflicts with the name of the project. Unsure how to do this with templates, since the hierarchy of the template is somewhat unknown at the point of naming the project.

Warn the user if they attempt to create a folder in a project named the same as the project.

Attachments

FileDateSize
StudioConsoleLog.txt2012-07-18T13:27:59.000+0000148802

Comments

  1. Stephen Tramer 2012-07-23

    Cannot reproduce with: Studio 2.1.1.201207171343 SDK 2.2.0.e41ba84 SDK 2.1.1.1bf6fbd SDK 2.1.1.v20120723111609 (CI build)
  2. Stephen Tramer 2012-07-23

    This is not a regression. Occurs in all versions of Titanium but can demonstrate with 2.0.1.GA2. Problem is caused by a directory (HTML) having the same name as the app (HTML). Solution: Do not name your app the same thing as a directory it contains. We cannot reasonably mangle either without causing issues so if this is encountered iOS build scripts will now print an error and abort.
  3. Vishal Duggal 2012-07-23

    Moving back to TIMOB and assigning to Core Sprint 15
  4. Blain Hamon 2012-07-24

    Pull merged.
  5. Olga Romero 2012-08-14

    Verified fix with: Titanium Studio, build: 2.1.1.201207271312 Titanium SDK: 2.2.0.v20120813184911 Mac osx 10.8 Mountain Lion

JSON Source