{ "id": "127502", "key": "TIMOB-16613", "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": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-03-11T22:39:30.000+0000", "created": "2014-03-11T14:34:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios", "xcode" ], "versions": [], "issuelinks": [ { "id": "35793", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "122605", "key": "TIMOB-15741", "fields": { "summary": "iOS: Cannot launch iOS simulator with Xcode 5.1b4 ", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T18:07:20.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3. Symptoms\r\n\r\nIt is not possible to build an app using a Ti build prior to 3.2.2.GA if you have installed Xcode 5.1. This is due to changes in command-line support for iOS simulators in Xcode 5.1.\r\n\r\nThis will throw lots of users being prompted to upgrade, but will also lock people into using 3.2.2.GA and higher only.\r\n\r\nThe error returned below whilst building an app with the TI SDK set to 3.1.2.GA:\r\n\r\n```\r\n[INFO] : Launching application in iOS Simulator\r\n[DEBUG] : Simulator command: \"/Users/me/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/iphone/ios-sim\" launch \"/Path/To/My/App/build/iphone/build/Debug-iphonesimulator/pluggr.app\" --sdk 7.1 --family iphone --retina\r\n[TRACE] : Simulator environment: DYLD_FRAMEWORK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks:/Applications/Xcode.app/Contents/OtherFrameworks\r\n[INFO] : Focusing the iOS Simulator\r\n[ERROR] : Project failed to build after 3s 194ms\r\n```\r\n\r\nIf you take the XCode project and launch it directly, you can build the app directly to the 6.1 OR 7.1 simulator. However this build does not work inside Studio or using the CLI\r\n\r\nh3. Workaround\r\nCopy ios-sim from 3.2.2.GA (SDK/iphone/ios-sim) and place it in the same location in other SDKs. We used 3.1.3.GA, 3.2.0.GA, and 3.2.1.GA\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Unable to launch simulator on Xcode 5.1 with Titanium SDK builds < 3.2.2.GA", "creator": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "stereoket", "key": "stereoket", "displayName": "Ketan Majmudar", "active": true, "timeZone": "Europe/London" }, "environment": "Titanium Studio Version: 3.2.1.201402041146\r\nHost OS: Mac OS X\r\nOS Version: 10.8.5\r\nCLI 3.2.1\r\nAlloy 1.3.1\r\nXcode 1.5.1\r\n\r\nSimulator 7.1", "comment": { "comments": [ { "id": "296569", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Tested with: \n\nh3. Xcode 5.1, TiSDK 3.1.2.GA, 7.1 simulator, fails:\n\n{code}\n[INFO] Focusing the iOS Simulator\n[ERROR] An error occurred running the iOS Simulator\n[ERROR] dyld: Library not loaded: @rpath/iPhoneSimulatorRemoteClient.framework/Versions/A/iPhoneSimulatorRemoteClient\n[ERROR] Referenced from: /Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/iphone/ios-sim\n[ERROR] Reason: image not found\n[ERROR] \n[ERROR] Project failed to build after 20s 760ms\n{code}\n\nh3. Xcode 5.1, TiSDK 3.2.1.GA, 7.1 simulator, fails:\n\n{code}\n[INFO] Invoking xcodebuild\n[ERROR] ** BUILD FAILED **\n[ERROR] The following build commands failed:\n[ERROR] Ld build/Debug-iphonesimulator/Animator.app/Animator normal i386\n[ERROR] (1 failure)\n{code} \n\nh3. Xcode 5.1, TiSDK 3.2.1.GA, 7.0.3 simulator, fails:\n\n{code}\nti build --platform ios --sim-version 7.0.3\n...\n[INFO] Launching application in iOS Simulator\n[DEBUG] Simulator command: \"/Users/tpoulsen/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/iphone/ios-sim\" launch \"/Users/tpoulsen/Documents/Appcelerator_Studio_Workspace/Animator/build/iphone/build/Debug-iphonesimulator/Animator.app\" --sdk 7.0 --family iphone\n[INFO] Focusing the iOS Simulator\n[ERROR] Project failed to build after 14s 363ms\n{code}\n\nh3. Xcode 5.1, TiSDK 3.2.2.GA, 7.1 simulator, builds fine", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-03-11T15:43:01.000+0000", "updated": "2014-03-11T15:43:01.000+0000" }, { "id": "296688", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h3. The workaround:\r\nCopy ios-sim from 3.2.2.GA (SDK/iphone/ios-sim) and place it in the same location in other SDKs. We used 3.1.3.GA, 3.2.0.GA, and 3.2.1.GA \r\n\r\nh3. To test:\r\nWe ran a combination of the available sims (and using CLI, some not available via currently selected Xcode) using Studio and the CLI.\r\n\r\nh4. Summary for Studio (we only used 3.2.1 studio):\r\n\r\nWE CAN’T parse 3-digit sim versions prior to 3.2.0. See ticket TISTUD-6027\r\nStudio works as expected with the workaround for versions of the SDK 3.1.3, 3.2.0 and 3.2.1 except for trying to launch a simulator with 3-digits with 3.1.3 SDK.\r\nPlease note, for those customers using 3.1.3 Studio, we expect similar issues running 3-digit sims regardless of the SDK used\r\n\r\n*Studio 3.2.1*\r\n\r\nSDK\tResult\r\n3.2.2\tPASS\r\n3.2.1\tPASS\r\n3.2.0\tPASS\r\n3.1.3\tPASS\r\n\r\n*Summary for CLI:*\r\n\r\nXcode 5.1 works as expected with the workaround, except when SDK in project is pre-3.2.0, in which case we get the 3-digit sim parsing issue, which is represented by TIMOB-16247\r\nAdditional note: Normally, if you specify a sim to run that is not available in your “Xcode select” version, the CLI will find it (if you have multiple Xcode installs). With the workaround, this fails, so users must either choose a sim that is in Xcode 5.1 or simply not specify. This is due to changes in ios-sim where an Xcode environment variable was changed to an argument, IIRC.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-11T22:34:42.000+0000", "updated": "2014-03-11T22:35:08.000+0000" }, { "id": "296689", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Because of changes in Xcode 5.1, we can't fix this issue directly, but users have an easy workaround by copying the ios-sim into previous SDK versions.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-11T22:39:30.000+0000", "updated": "2014-03-11T22:39:30.000+0000" }, { "id": "296763", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Why not just include the sim-file in a new 3.2.2 build of the CLI which it would use when you build against an older then 3.2.2 SDK?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-03-12T12:41:36.000+0000", "updated": "2014-03-12T12:41:36.000+0000" }, { "id": "414835", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix and with reference to the above comments. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T18:07:20.000+0000", "updated": "2017-03-22T18:07:20.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }