Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20130] SDK no longer finds Genymotion after upgrade to 2.6.0

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-02-02T18:33:19.000+0000
Affected Version/sRelease 5.2.0, Release 5.1.1
Fix Version/sRelease 5.2.0
ComponentsAndroid, Tooling
Labelsqe-5.2.0
ReporterFokke Zandbergen
AssigneeFokke Zandbergen
Created2015-12-11T11:17:25.000+0000
Updated2016-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

FileDateSize
Screen Shot 2015-12-11 at 12.08.40.png2015-12-11T11:17:23.000+0000372883
Screen Shot 2015-12-11 at 12.10.10.png2015-12-11T11:17:23.000+0000259344

Comments

  1. Wilson Luu 2016-01-20

    [~fokkezb], As a *workaround*, launch the target emulator first from Genymotion (2.6.0) before running the app.
  2. Wilson Luu 2016-01-20

    *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
  3. Fokke Zandbergen 2016-01-29

    I've updated the guide: https://wiki.appcelerator.org/pages/diffpagesbyversion.action?pageId=37550296&selectedPageVersions=23&selectedPageVersions=22
  4. Fokke Zandbergen 2016-01-29

    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:
       		player = path.join(dir, 'player' + exe);
       
    As well as the new:
       		player = path.join(dir, 'player.app', 'Contents', 'MacOS', 'player');
       
  5. Fokke Zandbergen 2016-01-29

    PR on master: https://github.com/appcelerator/titanium_mobile/pull/7649 [~cng] could we get this in the next release? I can provide BP
  6. Fokke Zandbergen 2016-02-02

    PR on 5_2_x: https://github.com/appcelerator/titanium_mobile/pull/7669
  7. Lokesh Choudhary 2016-02-03

    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

JSON Source