Join GitHub today
MacOS Bundle script does not work (current AM version) #397
May I notify problems with create-pkg.sh here.
Problem 1: The binary created by this script does not work, even if NO_SWF=1 is chosen. But you can just replace this binary manually by the binary created outside of this script -> and AM works.
Problem 2: The linking to the own libraries created in /Contents/libs does not work The binary instead relies on these libaries under /usr/local/opt -> if you install these libraries there, e.g. via Homebrew, Attract Mode works
I will try to contact the maintainer of the script.
Besides the warnings documented in Issue #390, the script does not produce any errors:
First launch in the Terminal produces this:
objc: Class SFApplication is implemented in both /usr/local/lib/libsfml-window.2.4.dylib (0x10285ff40) and /Applications/Attract.app/Contents/libs/libsfml-window.2.4.2.dylib (0x10125ff40). One of the two will be used. Which one is undefined.
Config file not found: /Users/admin/.attract/attract.cfg, performing initial setup.
With the help of Raygun in the forum, I think that I could identify the bundlelibs.py script as the source of the segfault. Prior to the modification of the attract binary, it works, afterwards, it crashes with a segfault. Here is the full MacOS crash report:
Process: attract 
Date/Time: 2018-01-06 13:08:54.176 +0100
Time Awake Since Boot: 6500 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Termination Signal: Segmentation fault: 11
VM Regions Near 0:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
Thread 5:: com.apple.audio.IOThread.client
Thread 0 crashed with X86 Thread State (64-bit):
Logical CPU: 0
External Modification Summary:
VM Region Summary:
REGION TYPE SIZE COUNT (non-coalesced)
Model: Macmini5,2, BootROM MM51.007B.B00, 2 processors, Intel Core i7, 2,7 GHz, 8 GB, SMC 1.75f0
In parallel to issue #390: