IntelliJ IDEA is written in Java so it is a cross-platform IDE - meaning that you can use it on any platforms that Java works.
This patch helps you to transform your Intel IntelliJ application to Apple Silicon native by replacing its Intel-only files with the files built for Apple Silicon.
NOTE: Some functions, plugins, and native bindings wouldn't work with this way. This is just a temporary workaround.
I've created the following prebuilt binaries because compiling these files require hard work:
- Launcher (
idea
) from intellij-community - Libjnidispatch (
libjnidispatch.jnilib
) from JNA
You can build the binaries above if you suspect the prebuilt binaries that I've built are such malformed or dangerous:
You may have to do this on Intel-based Macs, and have the following packages installed:
- automake
- autoconf
- ant
Then,
- Clone https://github.com/fkistner/jna, and checkout the
darwin_arm64
branch - Replace all the
"ffi.h"
with<ffi/ffi.h>
- Run
ant native -Ddynlink.native=true -Dbuild.os.arch=aarch64
to build native libs - Open
jna/build
and extractdarwin.jar
to getlibjnidispatch.dylib
- Clone https://github.com/JetBrains/intellij-community
- Build
native/MacLauncher
I'll assume you have already installed XCode command line tools.
First of all you need to download the lastest version of IntelliJ.
- Clone this repository.
- Put "IntelliJ IDEA.app" to the cloned directory. The directory should look like:
- Run
./make.bash "./IntelliJ Idea.app"
.- It will ask password several times during the work.
- Check IntelliJ works properly.
If you feel like the scrolling is too slow you should simply turn off Antialiasing for Code Editor.