[TIMOB-20130] SDK no longer finds Genymotion after upgrade to 2.6.0
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-02-02T18:33:19.000+0000 |
Affected Version/s | Release 5.2.0, Release 5.1.1 |
Fix Version/s | Release 5.2.0 |
Components | Android, Tooling |
Labels | qe-5.2.0 |
Reporter | Fokke Zandbergen |
Assignee | Fokke Zandbergen |
Created | 2015-12-11T11:17:25.000+0000 |
Updated | 2016-03-23T07:32:04.000+0000 |
Description
Genymotion 2.6.0 changes the location of the player internally in the App Package. See the two screenshots for the before and after. We'll need to update the following code to handle both:
https://github.com/appcelerator/titanium_mobile/blob/master/node_modules/titanium-sdk/lib/emulators/genymotion.js
Thanks to [~dan_tamas]
https://twitter.com/dan_tamas/status/675027457314054144
Attachments
File | Date | Size |
---|---|---|
Screen Shot 2015-12-11 at 12.08.40.png | 2015-12-11T11:17:23.000+0000 | 372883 |
Screen Shot 2015-12-11 at 12.10.10.png | 2015-12-11T11:17:23.000+0000 | 259344 |
[~fokkezb], As a *workaround*, launch the target emulator first from Genymotion (2.6.0) before running the app.
*Second workaround,* set
genymotion.executables.player
ti config to new location of Genymotion player e.g.:appc ti config genymotion.executables.player /Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/player
I've updated the guide: https://wiki.appcelerator.org/pages/diffpagesbyversion.action?pageId=37550296&selectedPageVersions=23&selectedPageVersions=22
So I think we need to change this line: https://github.com/appcelerator/titanium_mobile/blob/master/node_modules/titanium-sdk/lib/emulators/genymotion.js#L287 On mac this should for both the existing:
As well as the new:
PR on master: https://github.com/appcelerator/titanium_mobile/pull/7649 [~cng] could we get this in the next release? I can provide BP
PR on 5_2_x: https://github.com/appcelerator/titanium_mobile/pull/7669
Verified the fix. SDK can now find genymotion & launches the emulator without issues. Closing. Environment: Appc Studio : 4.5.0.201601262138 Ti SDK : 5.2.0.v2016020309345 Ti CLI : 5.0.6 Alloy : 1.7.33 MAC Yosemite : 10.10.5 Appc NPM : 4.2.3-1 Appc CLI : 5.2.0-239 Node: 4.2.2 Genymotion emulator : Android 6.0.0 Genymotion Version : 2.6.0