{ "id": "84399", "key": "AC-3108", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-02-21T14:22:53.000+0000", "created": "2012-01-01T16:42:20.000+0000", "labels": [ "tc-more-info" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:48:09.000+0000", "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" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. Problem\r\n\r\nLaunching newly created project in iOS simulator produces following exception:\r\n\r\n{code:lang=none}\r\n+ TARGET_BUILD_DIR = /Users/mwhite/Documents/Titanium Studio Workspace/com.zytac.tit2/build/iphone/Debug-iphonesimulator\r\n\r\nException detected in script:\r\nTraceback (most recent call last):\r\n File \"/Users/mwhite/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py\", line 1274, in main\r\n execute_xcode(\"iphonesimulator%s\" % link_version,[\"GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s %s\" % (log_id,sdk_version,debugstr,kroll_coverage)],False)\r\n File \"/Users/mwhite/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py\", line 1202, in execute_xcode\r\n sys.exit(1)\r\nSystemExit: 1\r\n{code}\r\n\r\nIf you check the build.py script there is a test at line 1197. xcode will not be invoked if the test fails. I can see from the code that TARGET_BUILD_DIR must be equal to build_dir. HOWEVER in xcode 4.2 I have no idea how to correct TARGET_BUILD_DIR (ENV). The difference can clearly be seen mid string at \".....project/iphone/project....\".\r\n\r\nIt would help if the source of TARGET_BUILD_DIR was documented. Looking at the contents of this string it can only come from Titanium since Xcode can only obtain this string from the .xcodeproj file which is created by Titanium.\r\n\r\n\r\nh2. Test case\r\n\r\nSteps to reproduce:\r\n\r\n* create a new \"Titanium mobile project\" in Titanium studio. Use Xcode 4.2.1\r\n* do not add any new code to the project\r\n* build the project using \"iPhone Simulator\"\r\n\r\nh2. Workaround\r\n\r\n* Open the .xcodeproj file created by Titanium Studio by invoking the Xcode GUI. The compiled project can then be run using Xcode outside of Titanium.\r\n\r\n\r\nh2. Discussions\r\n\r\nhttp://developer.appcelerator.com/question/117950/error-your-targetbuilddir-is-incorrectly-set\r\nhttp://developer.appcelerator.com/question/71331/really-thats-the-first-impression#answer-218760\r\n", "attachment": [ { "id": "24903", "filename": "build.log", "author": { "name": "mwhite", "key": "mwhite", "displayName": "Michael White", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-02T03:47:55.000+0000", "size": 51488, "mimeType": "text/plain" } ], "flagged": false, "summary": "Your TARGET_BUILD_DIR is incorrectly set : Cannot set build/iphone/build path", "creator": { "name": "mwhite", "key": "mwhite", "displayName": "Michael White", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mwhite", "key": "mwhite", "displayName": "Michael White", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium SDK 1.8.0.1\r\n* Xcode V4.2.1\r\n* Titanium Studio 1.0.7.201112281340\r\n* OSX 10.7.2\r\n", "comment": { "comments": [ { "id": "177743", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Michael\r\n\r\nHave you read [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report]? If so, where is the link to the Q&A question you raised? Where is a link to the workaround you mention? Where is your log file?\r\n\r\nOnce the necessary information is included, I can see if we can escalate this issue.\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-01T18:27:43.000+0000", "updated": "2012-01-01T18:27:43.000+0000" }, { "id": "177748", "author": { "name": "mwhite", "key": "mwhite", "displayName": "Michael White", "active": true, "timeZone": "America/Los_Angeles" }, "body": "http://developer.appcelerator.com/question/117950/error-your-targetbuilddir-is-incorrectly-set\r\nhttp://developer.appcelerator.com/question/71331/really-thats-the-first-impression#answer-218760", "updateAuthor": { "name": "mwhite", "key": "mwhite", "displayName": "Michael White", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-02T03:37:41.000+0000", "updated": "2012-01-02T03:37:41.000+0000" }, { "id": "177749", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Michael\r\n\r\nSee ticket TIMOB-2588, which provides a possible solution. If this does not work, then we need to know the steps required in order to reproduce the issue, to be able to accept this ticket.\r\n\r\nThank you", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-02T05:27:40.000+0000", "updated": "2012-01-02T05:27:40.000+0000" }, { "id": "177750", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "btw, it's preferable that you edit the ticket to add missing information, rather than to add it in a comment. Please also try to use the [JIRA Ticket Template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template] as a starting point, next time.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-02T05:31:20.000+0000", "updated": "2012-01-02T05:32:06.000+0000" }, { "id": "177775", "author": { "name": "mwhite", "key": "mwhite", "displayName": "Michael White", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Paul. Ticket TIMOB-2588 differs from my problem. The fragment \"build/iphone/build\" is identical in both strings expected & was: whereas in my ticket the two strings do not match. I get \"build/iphone\". \r\n\r\nTIMOB-2588 ticket is to do with case sensitivity \"Users\" as opposed to \"users\". In my example Users is correct in both strings.\r\n\r\nTo reproduce my problem, create a new \"Titanium mobile project\" in Titanium studio. Note the version of Xcode being used. Do not add any new code. Then build the project using \"iPhone Simulator\". That will re-produce the problem.\r\n\r\nIf I launch the Xcode GUI using the .xcodeproj file created by Titanium Studio, I am able to run the project.\r\n\r\n\r\n", "updateAuthor": { "name": "mwhite", "key": "mwhite", "displayName": "Michael White", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-02T08:16:05.000+0000", "updated": "2012-01-02T08:16:05.000+0000" }, { "id": "177778", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Michael\r\n\r\nI don't understand this ticket. Where is the error in the attached log?\r\n\r\nWould you verify that my changes to the description still describe your situation?\r\n\r\nPlease, again, read [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] - following it will prevent delays in getting your ticket escalated now and in future.\r\n\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-02T09:20:30.000+0000", "updated": "2012-01-02T09:20:30.000+0000" }, { "id": "177779", "author": { "name": "mwhite", "key": "mwhite", "displayName": "Michael White", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Paul\r\n\r\nNear the bottom of the log you will see that TARGET_BUILD_DIR,is output to the log: this (was) string is incorrect. If you check the BUILD_DIR (expected) string it differs as described in my ticket. \r\n\r\nIf you check the build.py script there is a test at line 1197. xcode will not be invoked if the test fails. I can see from the code that TARGET_BUILD_DIR must be equal to build_dir. HOWEVER in xcode 4.2 I have no idea how to correct TARGET_BUILD_DIR (ENV). The difference can clearly be seen mid string at \".....project/iphone/project....\". Please carefully study my original fault report for this string fragment which I obtained from the Titanium console.\r\n\r\nFor the work around I suggest this text for more clarity.\r\n\r\nOpen the .xcodeproj file created by Titanium Studio by invoking the Xcode GUI. The compiled project can then be run using Xcode outside of Titanium.\r\n\r\nI will study the HowTo in more detail if I need to submit further tickets using this community. Many thanks for your patience. Unless I can find a way of correcting the TARGET_BUILD_DIR string either in Xcode or in Titanium : this ticket should remain open IMHO.\r\n\r\n\r\n", "updateAuthor": { "name": "mwhite", "key": "mwhite", "displayName": "Michael White", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-02T09:59:22.000+0000", "updated": "2012-01-02T09:59:22.000+0000" }, { "id": "177780", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Michael\r\n\r\nI am afraid I need to be able to produce this in order to escalate it. Please would you provide this information?\r\n\r\nIn the meantime, I will ask internally to see if anyone has any ideas.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-02T10:49:31.000+0000", "updated": "2012-01-02T10:49:31.000+0000" }, { "id": "177781", "author": { "name": "mwhite", "key": "mwhite", "displayName": "Michael White", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To reproduce my problem, create a new \"Titanium mobile project\" in Titanium studio. Use Xcode 4.2.1. Do not add any new code to the project. Then build the project using \"iPhone Simulator\". That will re-produce the problem. \r\n\r\nIt would help if the source of TARGET_BUILD_DIR was documented. Looking at the contents of this string it can only come from Titanium since Xcode can only obtain this string from the .xcodeproj file which is created by Titanium.\r\n\r\n", "updateAuthor": { "name": "mwhite", "key": "mwhite", "displayName": "Michael White", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-02T11:23:09.000+0000", "updated": "2012-01-02T11:23:09.000+0000" }, { "id": "177912", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Michael\r\n\r\nWould you please try the advice provided in [http://developer.appcelerator.com/question/40691/mobil-sdk-130---targetbuilddir-is-incorrectly-set] ?\r\n\r\nAlso, are you using the official release of 1.8.0.1?\r\n\r\nThanks\r\n\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-03T16:54:16.000+0000", "updated": "2012-01-03T16:54:16.000+0000" }, { "id": "178640", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Michael\r\n\r\nHave you had a chance to try this?\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-10T05:50:34.000+0000", "updated": "2012-01-10T05:50:34.000+0000" }, { "id": "183852", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello, \r\ntried this with Xcode 4.2.x, Lion and Mobile SDK 1.8.1, it's working just fine. \r\n\r\nBest,\r\n\r\nMauro", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-02-21T14:22:53.000+0000", "updated": "2012-02-21T14:22:53.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }