AwesomeIndustry / SIMLessPNRGateway

[Public version] iMessage phone number registration on Android devices, without a separate SIM card!
48 stars 5 forks source link

Building on M2 Mac #10

Open Nickthegoatboy opened 6 months ago

Nickthegoatboy commented 6 months ago

I'm trying to build on an Apple Silicon Mac and I'm running into some errors that I think are related to the architecture. Curious if anyone else has run into something similar. Thanks in advance!


==> Notice: Build may be slow as Theos isn’t using all available CPU cores on this computer. Consider upgrading GNU Make: https://theos.dev/docs/parallel-building
> Making all for tweak PNRSender…
==> Preprocessing Tweak.x…
==> Compiling Tweak.x (arm64e)…
==> Linking tweak PNRSender (arm64e)…
ld: warning: -multiply_defined is obsolete
ld: warning: ignoring duplicate libraries: '-lc++'
ld: cpu type/subtype in slice (arm64e.old) does not match fat header (arm64e) in '/Users/user/theos/lib/libmryipc.dylib'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/Users/user/sandbox/SIMLessPNRGateway/pnrsender/.theos/obj/debug/arm64e/PNRSender.dylib] Error 1
make[2]: *** [/Users/user/sandbox/SIMLessPNRGateway/pnrsender/.theos/obj/debug/arm64e/PNRSender.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [PNRSender.all.tweak.variables] Error 2```