robovm icon indicating copy to clipboard operation
robovm copied to clipboard

Unable to launch MobiVM on M1 MacBook (unable to find Xcode)

Open Fumble-eric opened this issue 4 years ago • 9 comments
trafficstars

Issue details

After installing MobiVM on Android Studio through the MarketPlace, each time Android Studio is started a window asking to install Xcode is displayed even if Xcode is actually installed and configured correctly 114366806-1249ab80-9b7c-11eb-8183-e434532526aa

Reproduction steps/code

From Android Studio, go to Plugin, install MobiVM and restart Android Studio The popup appear, if you click on Install Xcode, AppStore opens showing Xcode is already installed

Configuration and version

Macbook configuration: MacBook Pro M1 with BigSur Android Studio version: 4.2.2 MobiVM version: 2.3.14

Fumble-eric avatar Sep 20 '21 06:09 Fumble-eric

check https://github.com/MobiVM/robovm/pull/586 for pre-build binaries for experimental m1 support

imyslovskyy-onseo avatar Sep 21 '21 08:09 imyslovskyy-onseo

Did you manage to fix this issue? I am having the exact same problem. M1 MacBook Pro using the M1 android studio.

Hotshot5000 avatar Oct 03 '21 15:10 Hotshot5000

Looks like the fix is here: https://github.com/MobiVM/robovm/issues/573 Now it seems that android studio is loading with the plugin enabled. I still get the same error though and that is because it cannot find the Toolchains and Platforms folder in the CommandLineTools folder. In order to fix that you need to run: sudo xcode-select --switch /Applications/Xcode.app to make the command line tools point to the correct path where those 2 folders will be found. Now I got my game to compile on M1 Mac. Weeee!

Hotshot5000 avatar Oct 03 '21 16:10 Hotshot5000

first official snapshot build is out. please test https://mobivm.github.io/downloads.html?prefix=snapshots/idea

dkimitsa avatar Oct 20 '21 09:10 dkimitsa

Hi Kimitsa,

Still the same issue for me. I tried with the previous version of Android Studio and the new Artic fox but still the same warning when the IDE is starting (not finding Xcode).

Eric

On 20 Oct 2021, at 11:36, Demyan Kimitsa @.***> wrote:

first official snapshot build is out. please test https://mobivm.github.io/downloads.html?prefix=snapshots/idea https://mobivm.github.io/downloads.html?prefix=snapshots/idea — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MobiVM/robovm/issues/597#issuecomment-947495576, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYZLIRWYACUSBDSKT5E3ZDUH2ERPANCNFSM5ELHMIBQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Fumble-eric avatar Oct 28 '21 20:10 Fumble-eric

@Fumble-eric Please make sure you have downloaded zip without unpacking it. And install plugin a zip file, not as .jar file from .zip

dkimitsa avatar Nov 08 '21 10:11 dkimitsa

@Fumble-eric

Have you launched? As dkimitsa stated, it works good for me with plugin installed from .zip If not, you probably have to go to Xcode - Preferences - Locations - Command Line Tools (select the right point from select box)

Spaio avatar Nov 10 '21 15:11 Spaio

@dkimitsa & @Spaio Thanks perfect, the trick was the location of the command line tools.

Fumble-eric avatar Nov 12 '21 04:11 Fumble-eric

@Tom-Ski probably can be closed

dkimitsa avatar Apr 18 '22 19:04 dkimitsa