beeper / mac-registration-provider

A small service that generates iMessage registration data on a Mac
GNU Affero General Public License v3.0
138 stars 29 forks source link

Incorrectly detects arm64 on x86_64? #46

Closed cvincent closed 6 months ago

cvincent commented 6 months ago

On a Mac Mini Intel Core i5 running Mojave 10.14.6:

No offsets found for 10.14.6/18G103/amd64

But uname -m reports x86_64. Looking at the source, it seems like runtime.GOARCH is incorrect somehow? I've never developed in Go, and this Mac Mini is solely so I can get iMessage back into Beeper, so it's not exactly set up for development or I'd try hacking a fix myself. :P

tulir commented 6 months ago

amd64 = x86_64

Some macOS versions can have different identityservicesd binaries (e.g. depending on hardware), which would cause it to not find offsets even though other builds of the same version are supported. The supported hashes can be found at https://github.com/beeper/mac-registration-provider/blob/main/nac/offsets.go#L204-L253 and you can find your own hash using sha256sum /System/Library/PrivateFrameworks/IDS.framework/identityservicesd.app/Contents/MacOS/identityservicesd

cvincent commented 6 months ago

In that case it seems the support matrix in the README can sometimes be misleading; as this is an Intel Mac, and the README lists "10.14.6" under Intel as being supported. How can I determine what version of macOS I can install on this machine that is supported? I'll happily install that instead.