[TIMOB-2705] App names containing "Titanium" break the iPhone build
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-07-02T05:58:14.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.0.0 |
Components | iOS |
Labels | generate, ios, iphone |
Reporter | RJHunter |
Assignee | Chee Kiat Ng |
Created | 2011-04-15T03:27:30.000+0000 |
Updated | 2016-07-02T05:58:24.000+0000 |
Description
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"
Know for a fact this is a dupe of a bug I fixed but can't find the number.
Reopening the issue as App names containing "Titanium" still break the iPhone build. Verified with: Titanium Studio:3.1.2.201307091843 Titanium SDK: 3.1.2.v20130710144553 acs:1.0.3 alloy:1.1.3 npm:1.2.14 titanium:3.1.1 titanium-code-processor:1.0.1 OS: OSX 10.8 Device:iPhone simulator(v 6.0), Galaxy Nexus (v 4.0.4) Xcode: 4.5.1 App names containing "Titanium" still break the iPhone build. Cases fails: "HelloTitanium">Fails "HelloTitaniumHello"> Fails Cases working fine: "Titanium" > works fine. "titanium" > works fine. "hellotitaniumhello"> again works fine. but the ios build breaks when project created with name "HelloTitanium" or "HelloTitaniumHello" Getting error as [ERROR] : xcodebuild: error: The project 'HelloTitanium.xcodeproj' does not contain a target named 'HelloTitanium-universal' for building HelloTitanium project. [ERROR] : xcodebuild: error: The project 'HelloTitaniumHello.xcodeproj' does not contain a target named 'HelloTitaniumHello-universal'for building HelloTitaniumHello project. Also viewing $ xcodebuild -list of "HelloTitanium" named project gets the below mentioned info: Information about project "HelloTitanium": Targets: HelloHelloTitanium HelloHelloTitanium-iPad HelloHelloTitanium-universal Build Configurations: Debug Developer Release If no build configuration is specified and -scheme is not passed then "Release" is used. $ xcodebuild -list of "HelloTitaniumHello" named project gets the below mentioned info: Information about project "HelloTitaniumHello": Targets: HelloHelloTitaniumHelloHello HelloHelloTitaniumHelloHello-iPad HelloHelloTitaniumHelloHello-universal Build Configurations: Debug Developer Release If no build configuration is specified and -scheme is not passed then "Release" is used.
Example apps with "HelloTitanium" etc. are not crashing in latest SDK's. Resolving as fixed.