How long does it take to generate XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules? I waited for 20 minutes and couldn't get CoreFoundation.swiftmodule to generate...
Conversation
Trying to replicate twitter.com/stroughtonsmit but in Swift, by running a find-and-replace from "x86_64" to "arm64e" on every file I can find in Xcode
Quote Tweet
Replying to @stroughtonsmith
Answer: yes, you can very easily compile theoretically-working Mac apps for ARM right now just by editing a few dozen tbd files in the SDK
2
3
Actual iOS expert:
you have to parse TBD files with YAML and LLVM you can't just edit the text nooooo
Me:
sed -e "s/archs: \\[ x86_64/archs: \\[ arm64e/g" \
-e "s/uuids: \\[ 'x86_64/uuids: \\[ 'arm64e/g" \
-i "" "$tbdfile"
go brrr
1
1
2
totally works, that's how I've set up my macOS ARM SDK
1
Show replies

