ControlPlane icon indicating copy to clipboard operation
ControlPlane copied to clipboard

Support for Apple Silicon

Open ruurd opened this issue 4 years ago • 9 comments

Are you considering providing a universal binary in the near future?

ruurd avatar Feb 14 '21 13:02 ruurd

Anyone looking for a universal binary is welcome to test out my fork. Just put up a universal build: https://github.com/crash0verride11/ControlPlane/releases/tag/Monterey_v0.2_Universal

I run Intel, so I can't test at all, but it is a universal build.

Probably broken items, but what I use works fine. Added dark mode, though the menubar icon seems to change only occasionally (works fine running in Xcode, but not from a build). Not going to be putting a ton of work into the fork, but others are welcome to contribute.

crash0verride11 avatar Jan 27 '22 23:01 crash0verride11

@crash0verride11, I tried running this in Xcode and there are a few frameworks that don't have arm64 support.

I'm in no way an objective-c developer, so perhaps it's an easy fix. I just really want ControlPlane back in my life :D

Screen Shot 2022-02-01 at 9 19 02 am

mattpatterson94 avatar Jan 31 '22 22:01 mattpatterson94

@crash0verride11, I tried running this in Xcode and there are a few frameworks that don't have arm64 support.

I'm in no way an objective-c developer, so perhaps it's an easy fix. I just really want ControlPlane back in my life :D

Screen Shot 2022-02-01 at 9 19 02 am

Whoops, mix up on that upload. Please try again, same link. Also actually uploaded the build as "Monterey_v0.2.1.zip."

crash0verride11 avatar Feb 01 '22 02:02 crash0verride11

Some educated guesses:

  • HockeySDK is used for crash reporting by ControlPlane but it's been retired (https://docs.microsoft.com/en-us/appcenter/transition/). Microsoft has a transition guide from HockeySDK to the App Center SDK here: https://docs.microsoft.com/en-us/appcenter/transition/macos-sdk-migration?tabs=objc
  • MapKit is an Apple framework and I have no clue why XCode is refusing to compile it for arm64. https://developer.apple.com/documentation/mapkit/
  • Growl can/should be removed from the code. It's dead.

I hope that helps!

eyv avatar Apr 07 '22 21:04 eyv

the referenced build doesn't work for me on an M1; probably due to code signing.

beaugunderson avatar Jun 25 '22 02:06 beaugunderson

I did get the build to work, thank you. FYI, It's impossible to add a wlan rule on a recent system, because the code expects the bssid to always be available, and apple has decided they're now a privacy concern, so it's always nil. There may be a way to ask for it, but I have not found it yet.

maparent avatar Nov 22 '22 20:11 maparent

The context switch worked fine for me, but the shell script rules didn't seem to run. (Is there a log anywhere?)

NightMachinery avatar Nov 28 '22 16:11 NightMachinery

The context switch worked fine for me, but the shell script rules didn't seem to run. (Is there a log anywhere?)

I got it working (latest available Intel build): https://github.com/dustinrue/ControlPlane/issues/506#issuecomment-1351054839

Rastafabisch avatar Dec 14 '22 11:12 Rastafabisch

I did get the build to work, thank you. FYI, It's impossible to add a wlan rule on a recent system, because the code expects the bssid to always be available, and apple has decided they're now a privacy concern, so it's always nil. There may be a way to ask for it, but I have not found it yet.

Would you be so kind as to provide your Apple silicon build? Thanks in advance!

Rastafabisch avatar Dec 14 '22 11:12 Rastafabisch