If you're on macOS High Sierra and developing a Theos Application or a
Theos Tweak, you may want to compile for arm64e to make sure your
tweaks are futureproof! But, if you attempt this you may notice that
you get the error:
Invalid arch name '-arch arm64e'
In this blog post, I'll be going step by step into how to resolve this issue and compile your binary for arm64e!
First, make sure that your Xcode 10.1 is in a different directory to
your Xcode 10.2.1 Application.
The way I layed it out was:
Next, we need to modify Xcode 10.2.1's info.plist file.
Right click on the Xcode 10.2.1 Application and press
Show package contents.
Open the folder called:
Now, you should see loads of files, we just need
info.plist, copy that file to your Desktop.
info.plist in Xcode 10.1 (it should open with
Xcode 10.1 with a double click)
You should now see something like the following after expanding the first arrow:
Now, we need to edit the "Minimum System Version" entry, change this to 10.13.6 (or your High Sierra version, you should be on the latest).
Once you have the edit made, copy the file back into the Xcode contents folder.
Now, open Xcode 10.2.1, it should ask if it can install stuff, say yes.
Let's try compiling our Theos Tweak when Xcode is done, if we run
make clean package, we get presented with this error:
Executable requires atleast macOS 10.14, but is being run on macOS
10.13.6, and so is exiting.make: error: unable to load
Now, we just need to run the command:
xcode-select --switch /path/to/Xcode/version10.1
Once you've done all those steps, just run:
make clean package and it should compile! 🎉