{ "id": "83625", "key": "TIMOB-6583", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2011-12-12T15:50:52.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "cb-tooling", "engSchedule", "tbs-1.8.2" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "58141", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "80250", "key": "TIMOB-5280", "fields": { "summary": "Android: Changing the name attribute of the tiapp.xml causes two applications to be installed.", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "14886", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "85602", "key": "TISTUD-1094", "fields": { "summary": "Inconsistent mobile project name passed to iOS builder.py scripts", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2020-02-05T05:31:31.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Renaming a mobile application can result in the following error when attempting to build:\r\n\r\n{code}\r\n[ERROR] xcodebuild: error: The directory /Users/zpapp/Titanium\r\nWorkspace/babyfaces/build/iphone contains 2 projects, including multiple\r\nprojects with the current extension (.xcodeproj). Specify the project to\r\nuse with the -project option.\r\n[ERROR]\r\n[ERROR] Error: Traceback (most recent call last):\r\n File \"/Users/zpapp/Library/Application\r\nSupport/Titanium/mobilesdk/osx/1.8.0.1.v20111123113857-babyfaces/iphone/builder.py\",\r\nline 1413, in main\r\n execute_xcode(\"iphoneos%s\" % iphone_version,args,False)\r\n File \"/Users/zpapp/Library/Application\r\nSupport/Titanium/mobilesdk/osx/1.8.0.1.v20111123113857-babyfaces/iphone/builder.py\",\r\nline 1175, in execute_xcode\r\n output = run.run(args,False,False,o)\r\n File \"/Users/zpapp/Library/Application\r\nSupport/Titanium/mobilesdk/osx/1.8.0.1.v20111123113857-babyfaces/iphone/run.py\",\r\nline 39, in run\r\n sys.exit(rc)\r\nSystemExit: 78\r\n{code}\r\n\r\nSteven suggests passing the explicit project on the command-line would fix this.", "attachment": [], "flagged": false, "summary": "iOS: Renaming a project causes \"xcodebuild error. directory contains 2 projects\"", "creator": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "180402", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "This problem has been around for a long time. Here's the scenario:\r\n\r\nYou have a project named \"MyProject\"\r\nIn tiapp.xml, you have \"My Project\"\r\nDo a debug/run build of the app in the Simulator\r\nDo a Distribut build, and you get this error:\r\n\r\n{code}\r\n[INFO] Performing clean build\r\n[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.\r\n[ERROR] \r\n[ERROR] Error: Traceback (most recent call last):\r\n File \"/Users/shan/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py\", line 1482, in main\r\n execute_xcode(\"iphoneos%s\" % iphone_version,args,False)\r\n File \"/Users/shan/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py\", line 1180, in execute_xcode\r\n output = run.run(args,False,False,o)\r\n File \"/Users/shan/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/run.py\", line 39, in run\r\n sys.exit(rc)\r\nSystemExit: 78\r\n{code}\r\n\r\nIn the build/iPhone directory, there are two xcodeproj files (and similarly named supporting files):\r\n\r\nMyProject.xcodeproj\r\nMy Project.xcodeproj\r\n\r\n\r\nWorkaround: Do a Project > Clean every time you want to switch between debug/run and Distribute builds. Very annoying.", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2012-01-24T08:52:49.000+0000", "updated": "2012-01-24T08:52:49.000+0000" }, { "id": "180948", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bump. We have run into this issue a lot of times recently.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-27T15:41:51.000+0000", "updated": "2012-01-27T15:41:51.000+0000" }, { "id": "304765", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Please fix this. It's annoying and easy to fix. The CLI just needs to pass the current project name to {{xcodebuild}} as indicated by the error:\r\n\r\n{code}\r\n[ERROR] xcodebuild: error: The directory /Users/zandbergen/dev/apps/mgl/build/appify/build/iphone contains 2 projects, including multiple projects with the current extension (.xcodeproj). Specify the project to use with the -project option.\r\n{code}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-05-14T08:14:30.000+0000", "updated": "2014-05-14T08:14:30.000+0000" }, { "id": "393829", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Confirmed, this is still an issue with Titanium SDK 6.1.0.\r\n\r\nFor a workaround, clean the project and rebuild.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-22T19:29:05.000+0000", "updated": "2016-08-22T19:29:05.000+0000" }, { "id": "452107", "author": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bump. This still happens in 8.0.2.GA thankfully google found this issue to help figure out the problem. \r\nHow about improving/modifying the error message \"Clean your project and try again\" as a work around. \r\n\r\n", "updateAuthor": { "name": "NewportSolutions", "key": "newportsolutions", "displayName": "Joe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-16T17:58:39.000+0000", "updated": "2019-10-16T17:58:39.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }