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

app bundle won't run on macos 10.14 #90

Closed
gmarinov opened this issue Nov 6, 2022 · 8 comments
Closed

app bundle won't run on macos 10.14 #90

gmarinov opened this issue Nov 6, 2022 · 8 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@gmarinov
Copy link

gmarinov commented Nov 6, 2022

expected: double-clicking downloaded app runs m8c.

actual:

  • it displays incompatible app icon
    Screenshot 2022-11-06 at 19 46 10
  • double-clicking the app shows a "This application requires macOS 10.13 or later" prompt.
    Screenshot 2022-11-06 at 19 46 27
  • running from the console segfaults:
$ ./m8c 
2022-11-06 19:52:08.038 m8c[11889:201100] INFO: Reading config /Users/g/Library/Application Support/m8c/config.ini
2022-11-06 19:52:08.038 m8c[11889:201100] INFO: Writing config file to /Users/g/Library/Application Support/m8c/config.ini
2022-11-06 19:52:08.038 m8c[11889:201100] INFO: Looking for USB serial devices.
2022-11-06 19:52:08.039 m8c[11889:201100] INFO: Found M8 in /dev/cu.usbmodem121139201.
2022-11-06 19:52:08.040 m8c[11889:201100] INFO: Opening port.
Segmentation fault: 11

xattr -r -d com.apple.quarantine path/to/app.app doesn't fix it

but works from source

compiling from source, e.g. make and then ./m8c works fine:

...
2022-11-06 19:54:00.637 m8c[11915:202571] INFO: Looking for USB serial devices.
2022-11-06 19:54:00.639 m8c[11915:202571] INFO: Found M8 in /dev/cu.usbmodem121139201.
2022-11-06 19:54:00.639 m8c[11915:202571] INFO: Opening port.
2022-11-06 19:54:01.098 m8c[11915:202571] INFO: Looking for game controllers
2022-11-06 19:54:01.109 m8c[11915:202571] INFO: Trying to open game controller database from /Users/g/Library/Application Support/m8c/gamecontrollerdb.txt
2022-11-06 19:54:01.109 m8c[11915:202571] INFO: Trying to open game controller database from /Volumes/data/_music/M8/headless/m8c/src/m8c/gamecontrollerdb.txt
2022-11-06 19:54:01.110 m8c[11915:202571] INFO: Found 37 game controller mappings
2022-11-06 19:54:01.110 m8c[11915:202571] INFO: Enabling and resetting M8 display
2022-11-06 19:54:01.115 m8c[11915:202571] INFO: Reset display
2022-11-06 19:55:05.653 m8c[11915:202571] INFO: Received msg_quit from input device.
2022-11-06 19:55:05.664 m8c[11915:202571] INFO: Shutting down
2022-11-06 19:55:05.667 m8c[11915:202571] INFO: Disconnecting M8
@laamaa laamaa added bug Something isn't working help wanted Extra attention is needed labels Nov 16, 2022
@laamaa
Copy link
Owner

laamaa commented Nov 16, 2022

Dang. Could someone else with a mac try the package too and see if it's broken for everyone? I probably won't have time to debug the build/packaging anytime soon as I don't have easy access to a mac :/

@gmarinov
Copy link
Author

i tried to tweak the Info.plist file or the adjacent files but nothing worked, until I replaced the m8c binary itself with the one I compiled from source. The downloaded one is ~75kb, the compiled one I have is just over ~40kb.

otool on both looks very similar.

otool-m8c-release.txt

otool-m8c-compiled.txt

@laamaa
Copy link
Owner

laamaa commented Nov 17, 2022

Seems like Github Actions has recently switched to a newer Mac OS version in the builds... I tried manually triggering a new build, could you please check if this works any better?
m8c-20221117-macos.zip

@gmarinov
Copy link
Author

this is better. the wrapper app still won't open directly from the finder.
however, the binary no longer segfaults, so I'm able to "show package contents" and then use "open" from inside it.

Screenshot 2022-11-17 at 15 04 49

Screenshot 2022-11-17 at 15 04 55

@laamaa
Copy link
Owner

laamaa commented Jan 13, 2023

I think someone with the proper skills (and a computer for testing...) should rewrite the OSX build thing :)

Schism Tracker for example nowadays seems to have a nice way to automatically cross-compile it directly to both Intel and ARM, but unfortunately I do not have the time to get too much into how it works...

@laamaa
Copy link
Owner

laamaa commented Mar 8, 2023

The build system was updated a little, could you please test if this build works?

m8c-2023-03-08-macos.zip

@gmarinov
Copy link
Author

gmarinov commented Mar 9, 2023

Screenshot 2023-03-09 at 17 18 39

Screenshot 2023-03-09 at 17 18 44

laamaa added a commit that referenced this issue Aug 16, 2024
Fix for #90 and #142 on Apple Silicon Devices
@laamaa
Copy link
Owner

laamaa commented Aug 17, 2024

This should be fixed in the latest release, please check if it works better now and post here if the problems still persist.

Please note: When running the program for the first time on MacOS, it may not open as it is from an Unidentified Developer. You need to open it from the Applications Folder via Control+Click > Open then select Open from the popup menu.

@laamaa laamaa closed this as completed Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants