{ "id": "137174", "key": "AC-1257", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-09-25T18:29:41.000+0000", "created": "2014-09-25T17:54:39.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-03-08T07:37:38.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" } ], "description": "The 3.4.0-rc2 SDK contains ios-sim version 2.0, which doesn't work with the simulators in Xcode 6. The current workaround is to install ios-sim using {{npm install -g ios-sim}} and replacing the iphone/ios-sim file with a symlink to /usr/local/bin/ios-sim.", "attachment": [], "flagged": false, "summary": "update ios-sim for Xcode 6", "creator": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Xcode 6, OSX 10.10, Ti SDK 3.4.0.v20140916181713", "comment": { "comments": [ { "id": "325667", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "The version of {{ios-sim}} that ships with Titanium SDK 3.4.0-rc most certainly supports Xcode 6. You should not install {{ios-sim}} from npm. Can you please elaborate on why you believe {{ios-sim}} does work with the Xcode 6 iOS Simulator? What behavior are you seeing? Please be very specific.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-25T17:59:05.000+0000", "updated": "2014-09-25T17:59:05.000+0000" }, { "id": "325671", "author": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Chris, thanks for the quick response. I'm trying to build and run a module that was created with the CLI as follows:\r\n\r\n{noformat}\r\n$ ti sdk install 3.4.0.v20140916181713\r\n$ ti create -p ios -t module -d /tmp -n test -u http:// --id com.example.test \r\n$ cd /tmp/test/iphone\r\n$ python build.py\r\n$ ln -s ../example .\r\n$ python ~/Library/Application\\ Support/Titanium/mobilesdk/osx/3.4.0.v20140916181713/titanium.py run\r\n{noformat}\r\n\r\nThe output of the final command is:\r\n\r\n{noformat}\r\n[INFO] Minimum iOS version: 4.3 Linked iOS Version 8.0\r\n[DEBUG] executing command: /usr/bin/killall ios-sim\r\n[DEBUG] No matching processes belonging to you were found\r\n[DEBUG] executing command: /usr/bin/killall iPhone Simulator\r\n[DEBUG] No matching processes belonging to you were found\r\n[DEBUG] finding old log files\r\n[INFO] Launching application in Simulator\r\n[DEBUG] Unable to load simulator framework. Error: (null)\r\n[DEBUG] Failed to find class DTiPhoneSimulatorSystemRoot at runtime.\r\n[INFO] Launched application in Simulator (26.13 seconds)\r\n[INFO] Application has exited from Simulator\r\n{noformat}\r\n\r\nThe version of the ios-sim executable used by titanium.py is 2.0:\r\n\r\n{noformat}\r\n$ ~/Library/Application\\ Support/Titanium/mobilesdk/osx/3.4.0.v20140916181713/iphone/ios-sim --version\r\n2.0\r\n{noformat}\r\n\r\nIf I replace ios-sim with a symlink to 3.0 as described above, the simulator launches successfully and loads the generated example app.\r\n\r\nI expect the answer to this problem is that the titanium.py script isn't supported any more, which is a bummer because the CLI currently doesn't have a one-step way to generate and launch a test app based on the contents of the {{example}} directory.\r\n\r\nLet me know if you need any additional info.", "updateAuthor": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-25T18:14:47.000+0000", "updated": "2014-09-25T18:14:47.000+0000" }, { "id": "325675", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Ah, I see now. We are in the process of rewriting the build process for modules (TIMOB-10757) and we're not quite finished yet. The building of modules is the only Python code left. I highly recommend you do NOT use {{titanium.py}}. It's very old, very out-of-date, and not maintained.\r\n\r\nUntil TIMOB-10757 is finished, I recommend you create a new mobile app, then create a small bash script that calls {{build.py}} from the ios module's directory, unzips the generated module zip file into the project directory, and run {{ti build}} from the project dir. I know this seems like a lot of work, but it's probably the best workflow right now.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-25T18:24:39.000+0000", "updated": "2014-09-25T18:24:39.000+0000" }, { "id": "325676", "author": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sounds good; thanks for your help!", "updateAuthor": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-25T18:27:10.000+0000", "updated": "2014-09-25T18:27:10.000+0000" }, { "id": "325854", "author": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've got an interim module build-and-test process working now and thought I'd share in case anyone else is having similar issues:\r\n\r\n# Use the old {{titanium.py}} script to generate the test application from your current example directory.\r\n# Find the temporary directory where the example app was staged in the log output. It should be something like {{/var/folders/pr/769r4l2d4q11jstd9bvyd95r0000gq/T/mb1K27Lti/MODULENAME}}.\r\n# {{cp -R /var/folders/pr/769r4l2d4q11jstd9bvyd95r0000gq/T/mb1K27Lti/MODULENAME ../testapp}}\r\n# *IMPORTANT* edit {{.../testapp/tiapp.xml}} and remove the extra {{}} section. You probably want to get rid of the version number on the remaining {{}} tag as well.\r\n\r\nOnce this is done, you can build and run for iOS like this:\r\n{code}\r\n./build.py && cp com.example.mymodule-iphone-1.0.0.zip ../testapp/ && ti build -p iphone -F iphone -d ../testapp\r\n{code}\r\n\r\nand for Android like this:\r\n\r\n{code}\r\nant clean dist && cp dist/com.example.mymodule-android-1.0.0.zip ../testapp/ && ti build -p android -d ../testapp\r\n{code}", "updateAuthor": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-26T15:50:28.000+0000", "updated": "2014-09-26T15:50:28.000+0000" }, { "id": "328769", "author": { "name": "pussaaon", "key": "pussaaon", "displayName": "Pussaaon Jungjatuporn", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, Paul your solution is for build or pack the module right ? \r\nnot the testing module with titanium.py run\r\n\r\nbecause I also found the same problem with you but for me the build process works fine, only the testing module that throw me the error", "updateAuthor": { "name": "pussaaon", "key": "pussaaon", "displayName": "Pussaaon Jungjatuporn", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-21T08:25:51.000+0000", "updated": "2014-10-21T08:25:51.000+0000" }, { "id": "328807", "author": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes, this is what I am now doing to build and test my modules. The commands above replace the call to {{titanium.py run}} that was used prior to the 3.4.0 SDK. ", "updateAuthor": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-21T15:04:57.000+0000", "updated": "2014-10-21T15:04:57.000+0000" }, { "id": "328966", "author": { "name": "pussaaon", "key": "pussaaon", "displayName": "Pussaaon Jungjatuporn", "active": true, "timeZone": "America/Los_Angeles" }, "body": "ah ok, so it actually run test the module", "updateAuthor": { "name": "pussaaon", "key": "pussaaon", "displayName": "Pussaaon Jungjatuporn", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-22T03:04:26.000+0000", "updated": "2014-10-22T03:04:26.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }