天道酬勤,学无止境

apple-silicon

Apple Silicon Android Studio emulator: ERROR: can't find the emulator executable

I just installed Android Studio 4.2.2 and Android Studio Preview (Arctic Fox Beta 5) to my Apple M1 Macbook. When creating an emulator (arm64) I immediately receive the error: AVD Manager: The emulator process for AVD Pixel_4a_API_30 has terminated I then went to the log file of Android Studio (Help > Show log in Finder) and I see that the error occurs when Android Studio attempts to run the following: ~/Library/Android/sdk/emulator/emulator -netdelay none -netspeed full -no-snapshot-load -avd Pixel_4a_API_30 which outputs: emulator: Android emulator version 30.3.5.0 (build_id 7036990) (CL:N/A

2022-06-06 01:50:06    分类:问答    android   android-studio   apple-m1   android-sdk-manager   apple-silicon

InvocationTargetException with Android Arctic Fox | 2020.3.1 arm64 on M1 Apple silicon

During a build of my Android project on my M1 Apple Silicon using kapt (eg Room) Android Studio Arctic Fox | 2020.3.1 Beta 1 arm64 .. Android Studio Arctic Fox | 2020.3.1 Beta 5 arm64 Android Studio Bumblebee | 2021.1.1 Canary 2 aarch64 With Android Studio Arctic Fox | 2020.3.1 Beta 5 Build #AI-203.7717.56.2031.7360992, built on May 14, 2021 Runtime version: 11.0.10+0-b96-7249189 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 11.4 I run into Execution failed for task ':FFTSpectrumLib:kaptDebugKotlin'. > A failure occurred while executing org.jetbrains.kotlin.gradle.internal

2022-05-03 00:58:24    分类:问答    android   arm64   apple-m1   apple-silicon   kapt

Running .Net Core based Azure Function in Docker Container on Apple Silicon

I am trying to run a .Net Core based Azure Function inside a Docker container on a M1 Macbook without success so far. Originally I used the Azure Function Core Tools CLI to create the function with the following command: func init LocalFunctionsProject --worker-runtime dotnet --docker which created the following Dockerfile. FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS installer-env COPY . /src/dotnet-function-app RUN cd /src/dotnet-function-app && \ mkdir -p /home/site/wwwroot && \ dotnet publish *.csproj --output /home/site/wwwroot # To enable ssh & remote debugging on app service change the

2022-05-02 15:11:38    分类:问答    c#   docker   .net-core   azure-functions   apple-silicon

Eclipse aarch64 and OpenJDK (ARM)

I'm trying out the Eclipse 4.20 builds available as Mac OSX (64 bit version for Arm64/AArch64) running under macOS 11 on Apple Silicon. This version doesn't seem to come with a jdk, so I've assumed I need to handle that myself. I installed 16.0.1-librca from Bellsoft with SDKman (Rosetta2 mode false). I edited the info.plist file of Eclipse like this: <key>Eclipse</key> <array> <string>-vm</string> <string>~/.sdkman/candidates/java/16.0.1-librca/bin/java</string> …(Other stuff here) </array> and Eclipse does indeed startup, but crashes right away. A while after this macOS claims I don't have

2022-05-02 14:49:44    分类:问答    java   eclipse   macos   apple-silicon

Installation of earlier versions of Python (prior to 3.8) fails on Mac with M1 Chip (ARM based Apple Silicon)

I have Macbook with Apple M1 Chip in which I have to use Python 3.6.5 for my project. It comes with Python 2.7.16 and 3.8.2 preinstalled. I used brew to install Python which by default installed 3.9.1. So, I tried this homebrew formula to install 3.6.5, but got following error: checking for pthread_t... yes checking size of pthread_t... 8 configure: error: Unexpected output of 'arch' on OSX Do not report this issue to Homebrew/brew or Homebrew/core! I tried pyenv install 3.6.5 , but it fails with similar error as above. Method explained here by ePi272314 to install python with git commit fails

2022-05-02 11:33:05    分类:问答    python   python-3.x   macos   apple-silicon

Can't record iPhone screen on Apple Silicon

I have a simple capture session set up to record my iPhone over USB from my Mac Mini M1. When I try to record a capture session to file, nothing is written to disk, and the console outputs the same error message over and over again. I can reproduce this issue on Apple Silicon only. The exact same code works on Intel. STEPS Allow screen capture with kCMIOHardwarePropertyAllowScreenCaptureDevices Find the iPhone via AVCaptureDevice.devices:for - muxed Create a capture device input with that device Start the session, and display its preview layer. This works. Tell the output to start recording

2022-05-02 04:20:23    分类:问答    swift   avfoundation   apple-silicon

CLI command to determine if the Mac machine is running on Apple Silicon on Intel? [duplicate]

This question already has answers here: Detect Apple Silicon from command line (3 answers) Closed 10 months ago. On a M1 Mac Mini, If I do uname -i, I get: uname: illegal option -- - usage: uname [-amnprsv] If I do uname -m, I get: x86_64 If I do uname -a, I get: Darwin bevrymemacmini.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:31 PDT 2021; root:xnu-7195.121.3~9/RELEASE_ARM64_T8101 x86_64 Only in uname -a do I get the information that it is running on Apple Silicon via the ARM64 part. Is there a better way of determining which architecture I am running on Mac machines?

2022-05-02 04:02:51    分类:问答    bash   macos   apple-silicon

Docker Image built on Mac OSX won't run on AWS EC2 instance

Image built on Mac OSX with M1 processor, deployed to an EC2 instance. But when scripts are run it yields the error: standard_init_linux.go:219: exec user process caused: exec format error Elsewhere on Stackoverflow, this is explained as a mismatch of OS architecture. Sure enough running "uname -m" on EC2 instance shows it to be x86_64, and "docker image inspect" shows the container to have architecture arm64. Here's what I don't understand. "uname -m" on my Mac shows that to be x86_64 too. So how does the container inherit a different architecture? More significantly, how do I build an image

2022-05-01 18:50:10    分类:问答    macos   docker   amazon-ec2   apple-m1   apple-silicon

how to run amd64 docker images on arm64 host platform

I have an m1 mac and I am trying to run a amd64 based docker image on my arm64 based host platform. However, when I try to do so (with docker run) I get the following error: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested. When I try adding the tag --platform linux/amd64 the error message doesn't appear, but I can't seem to go into the relevant shell and docker ps -a shows that the container is immediately exited upon starting. Would anyone know how I can run this exact image on my machine

2022-04-30 18:46:13    分类:问答    macos   docker   containers   x86-64   apple-silicon

When running on older iOS Simulator, error "Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding"

I'm running Xcode 12.2 (12B45b) on my M1 MacBook Pro. Whenever I try to run the simulator on an older iOS, for example: It doesn't work. Xcode pops up this error: When I press on Details, a screen pops up showing: Details Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding Domain: com.apple.SimLaunchHostService.RequestError Code: 4 -- System Information macOS Version 11.0 (Build 20A2411) Xcode 12.2 (17535) (Build 12B45b) Timestamp: 2020-12-06T12:41:11-08:00 However, If I run a newer iOS like 14.2, it works perfectly. This was the runtime that

2022-04-30 13:01:10    分类:问答    ios   xcode   ios-simulator   apple-silicon