{ "id": "100808", "key": "TIMOB-10852", "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": [ { "id": "14167", "description": "2012 Sprint 21 JS", "name": "2012 Sprint 21 JS", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2012-10-11T00:10:42.000+0000", "created": "2012-09-11T15:45:14.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-27T22:31:55.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": "10207", "name": "Tooling" } ], "description": "While testing iOS and Xcode 4.5 we saw a failure trying to compile with iOS 5 target. This failure was identical to the failure seen when trying to compile with an iOS 6 compile target. After closer examination, we determined that no matter what the setting was, the build would always target the latest installed SDK (as interpreted by Xcode).\r\n\r\ne.g. Setting to iOS 5.0 when 5.0, 5.1 and iOS 6 are options, iOS 6 is used.\r\n\r\nI have verified that Studio is sending the correct arguments:\r\n{code}\r\n\"/Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/2.1.1.GA/iphone/builder.py\" \"install\" \"5.0\" \"/Users/emerriman/212Workspace/ericDevTest\" \"com.appcelerator.devtest\" \"ericDevTest\" \"25360090-4A84-4F2A-8415-B53E250EAB05\" \"Eric Merriman (9JUJ8DJW9G)\" \"universal\"\r\n{code}\r\n\r\nBut the build process still reports:\r\n{code}\r\n[INFO] Titanium SDK version: 2.1.3 (09/07/12 16:31 9699f0a)\r\n[INFO] iPhone Device family: universal\r\n[INFO] iPhone SDK version: 6.0\r\n[INFO] Performing full rebuild. This will take a little bit. Hold tight...\r\n{code}\r\n\r\nThis is not a regression. Occurs in 2.1.2GA and 2.1.1GA.\r\nOccurs with Xcode 4.4.1 and Xcode 4.5\r\n\r\nh3. Steps to reproduce:\r\n1) Create a project using either studio or command line\r\n2) Invoke your build and ensure you are using something other than the latest SDK possible, something like this:\r\n\"/Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/2.1.1.GA/iphone/builder.py\" \"install\" \"5.0\" \"/Users/emerriman/212Workspace/ericDevTest\" \"com.appcelerator.devtest\" \"ericDevTest\" \"25360090-4A84-4F2A-8415-B53E250EAB05\" \"Eric Merriman (9JUJ8DJW9G)\" \"universal\"\r\n3) Observe the console\r\n\r\nh3. Result:\r\nThe build reports it is building with the latest iOS SDK you have installed.\r\n\r\nh3. Expected:\r\nThe build reports it is building with (and actually builds with) the compile target set in studio. If it doesn't have the right value, it should warn the user about the problem.", "attachment": [], "flagged": false, "summary": "iOS: tooling - Studio correctly passes iOS compile target, but scripts use latest iOS SDK regardless of setting", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS 10.8.1\r\nTitanium Studio, build: 2.1.3.201209101847\r\nSDK 2.1.3.v20120904163110\r\nAlso SDK 2.1.2.GA and 2.1.1.GA", "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "221885", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Eric, what do you see if you do \n\n{code}\nxcodebuild -showsdks\n{code}\n\nin a Terminal session? For me, with Xcode 4.5 installed, I get:\n\n{code}\nOS X SDKs:\n\tMac OS X 10.7 \t-sdk macosx10.7\n\tOS X 10.8 \t-sdk macosx10.8\n\niOS SDKs:\n\tiOS 6.0 \t-sdk iphoneos6.0\n\niOS Simulator SDKs:\n\tSimulator - iOS 4.3 \t-sdk iphonesimulator4.3\n\tSimulator - iOS 5.0 \t-sdk iphonesimulator5.0\n\tSimulator - iOS 5.1 \t-sdk iphonesimulator5.1\n\tSimulator - iOS 6.0 \t-sdk iphonesimulator6.0\n{code}\n\nSo if you're doing \"install\" (to a device),indeed there is only one available and so it grabs it no matter what you selected.\n\nSo in the selection list in Titanium Studio, when user has chosen to build for device, I guess we shouldn't show the simulator-only SDKs. Sound right? (This would also require a change to Studio.)", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-03T15:54:29.000+0000", "updated": "2012-10-03T15:54:29.000+0000" }, { "id": "221898", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We should investigate for the new CLI to see if this is still an issue and how we handle it.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-03T17:06:28.000+0000", "updated": "2012-10-03T17:06:28.000+0000" }, { "id": "221902", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This is fixed in the new CLI.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-03T17:28:18.000+0000", "updated": "2012-10-03T17:28:18.000+0000" }, { "id": "223023", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This won't be fixed because the old CLI is deprecated and the new CLI supports this correctly.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-11T00:10:42.000+0000", "updated": "2012-10-11T00:10:42.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }