Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macOS build #368

Merged
merged 3 commits into from
Oct 13, 2021
Merged

Fix macOS build #368

merged 3 commits into from
Oct 13, 2021

Conversation

jmechnich
Copy link
Contributor

With these changes I managed to compile natively for Apple Silicon. The build environment is:

  • MacBook Air M1
  • macOS 11.6
  • Xcode 13.0

The previous AU type 'CtrlrAU' did not seem to work at all and led to a mysterious error from the resource compiler Rez. I have chosen to use the default kAudioUnitType_MIDIProcessor (aumi) which seems to fit well.

The standalone version seems to work very well using the OB-6 panel. Using the AU as a MIDI FX in an external MIDI track in Logic Pro generally works but there still seem to be a few bugs to be ironed out (or I haven't figured out how to configure it properly).

@RomanKubiak RomanKubiak merged commit f452347 into RomanKubiak:master Oct 13, 2021
@jmechnich jmechnich deleted the fix-macos branch October 13, 2021 13:18
@dobo365
Copy link

dobo365 commented Oct 13, 2021

Congrats Jörg!
So, we will have the possibility to create native M1 standalone versions of our panels?
I guess it is mandatory to have an M1 Mac to generate them and that I cannot simulate that with a VM. Correct?

@jmechnich
Copy link
Contributor Author

Congrats Jörg! So, we will have the possibility to create native M1 standalone versions of our panels? I guess it is mandatory to have an M1 Mac to generate them and that I cannot simulate that with a VM. Correct?

This only means that the application and AU are available in native format:

$ file /Applications/Ctrlr.app/Contents/MacOS/Ctrlr
/Applications/Ctrlr.app/Contents/MacOS/Ctrlr: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
/Applications/Ctrlr.app/Contents/MacOS/Ctrlr (for architecture x86_64):	Mach-O 64-bit executable x86_64
/Applications/Ctrlr.app/Contents/MacOS/Ctrlr (for architecture arm64):	Mach-O 64-bit executable arm64

The panels themselves are independent of architecture (as far as I know) but I am not an expert...maybe there are exceptions.

@jmechnich jmechnich restored the fix-macos branch December 17, 2023 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants