Project: titanium
Issue TIMOB-2705: App names containing "Titanium" break the iPhone build
{html}

If the (case-sensitive) string "Titanium" appears is used in a project name, the Xcode project files (*.pbxproj) get mangled and can't be built from the Titanium Developer GUI.

I can reproduce this reliably with the following versions:
Titanium Developer 1.2.2
Titanium Mobile SDK 1.1.0
Mac OS X 10.6.5
Xcode 3.2.3

Details for reproducing:

When I create a new Mobile project from Titanium Developer, called "Hello Titanium", building the app throws an error because the named Xcode target doesn't exist. (I found that in build/iphone/build/build.log)

$ xcodebuild -list

Information about project "Hello Titanium": Targets: Hello HelloTitanium (Active) Hello HelloTitanium-iPad Build Configurations: Debug (Active) Release If no build configuration is specified "Release" is used.

These cases also fail:

"Hello2Titanium" => "Hello2Hello2Titanium"

"Hello4Titanium" => "Hello4Hello4Titanium"

"Titanium7Hello" => "Titanium7Hello7Hello"

"Hello8Titanium8Hello" => "Hello8Hello8Titanium8Hello8Hello"

"Welcome Titanium Howdy" => "Welcome WelcomeTitaniumHowdy Howdy"

But these cases are just fine:

"Hello5Titanius" => "Hello5Titanius"

"some titanium in lowercase" => "some titanium in lowercase"

{html}
Story points: 1