Open the package under the application. Double click MacOS/idea to open it. The following error message is displayed:
Last login: Wed Jul 21 10:25:35 on ttys000
/Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea ; exit;
lyuwalle@lyuwalle ~ % /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea ; exit;
2021-07-21 10:25:44.347 idea[2312:81949] allVms required 1.8*,1.8+
2021-07-21 10:25:44.349 idea[2312:81953] Cannot load JVM bundle: Error Domain=NSCocoaErrorDomain Code=3585 "dlopen_preflight(/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib): no suitable image found. Did find:
/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib: mach-o, but wrong architecture
/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib: mach-o, but wrong architecture" UserInfo={NSLocalizedFailureReason=The bundle doesn’t contain a version for the current architecture., NSLocalizedRecoverySuggestion=Try installing a universal version of the bundle., NSFilePath=/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib, NSDebugDescription=dlopen_preflight(/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib): no suitable image found. Did find:
/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib: mach-o, but wrong architecture
/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/MacOS/libjli.dylib: mach-o, but wrong architecture, NSBundlePath=/Applications/IntelliJ IDEA.app/Contents/jbr, NSLocalizedDescription=The bundle “OpenJDK 11.0.11” couldn’t be loaded because it doesn’t contain a version for the current architecture.}
2021-07-21 10:25:44.349 idea[2312:81953] Retrying as x86_64...
2021-07-21 10:25:44.390 idea[2312:81955] allVms required 1.8*,1.8+
2021-07-21 10:25:44.392 idea[2312:81968] Current Directory: /Users/lyuwalle
2021-07-21 10:25:44.392 idea[2312:81968] Value of IDEA_VM_OPTIONS is (null)
2021-07-21 10:25:44.392 idea[2312:81968] Processing VMOptions file at /Users/lyuwalle/Library/Application Support/JetBrains/IntelliJIdea2021.1/idea.vmoptions
2021-07-21 10:25:44.393 idea[2312:81968] Done
Improperly specified VM option 'SoftRefLRUPolicyMSPerMB=50Å'
Improperly specified VM option 'SoftRefLRUPolicyMSPerMB=50Å'
2021-07-21 10:25:44.441 idea[2312:81968] JNI_CreateJavaVM (/Applications/IntelliJ IDEA.app/Contents/jbr) failed: -6
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
The reason is that the idea.vmoptions file conflicts. Delete the idea.vmoptions (database library is a hidden folder) under the following folder
/users/XXXX/library/Application Support/JetBrains/intellijidea2020.1/idea.vmoptions