[AC-2998] iOS: Tooling: Distribute builds and debug/run builds do not use the same source for name
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2012-01-24T08:53:13.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | n/a |
| Reporter | Shannon Hicks |
| Assignee | Paul Dowsett |
| Created | 2012-01-24T08:36:32.000+0000 |
| Updated | 2016-03-08T07:48:01.000+0000 |
Description
This problem has been around for a long time. Here's the scenario:
You have a project named "MyProject"
In tiapp.xml, you have "My Project "
Do a debug/run build of the app in the Simulator
Do a Distribut build, and you get this error:
[INFO] Performing clean build
[ERROR] xcodebuild: error: The directory /path/to/project/MyProject/build/iphone contains 2 projects, including multiple projects with the current extension (.xcodeproj). Specify the project to use with the -project option.
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Users/shan/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1482, in main
execute_xcode("iphoneos%s" % iphone_version,args,False)
File "/Users/shan/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1180, in execute_xcode
output = run.run(args,False,False,o)
File "/Users/shan/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 78
In the build/iPhone directory, there are two xcodeproj files (and similarly named supporting files):
MyProject.xcodeproj
My Project.xcodeproj
Workaround: Do a Project > Clean every time you want to switch between debug/run and Distribute builds. Very annoying.
Dupe of TIMOB-6583