projectGenerator icon indicating copy to clipboard operation
projectGenerator copied to clipboard

zsh: killed if OF uses download_latest_libs.sh

Open dimitre opened this issue 1 year ago • 5 comments

I'm compiling the latest projectGenerator using make and it compiles both with classic libs and latest. but when I run using the latest libs I got

zsh: killed

dimitre avatar Jul 10 '24 10:07 dimitre

Yeah its gotta be signed run it through the script

We can make this accept a code signing identity: build_cmdline.sh

or just run the output Xcode project and build it locally that way it will sign for you. Else it will be signed via GitHub release

danoli3 avatar Jul 10 '24 13:07 danoli3

Wait I think I read that in inverse

danoli3 avatar Jul 10 '24 18:07 danoli3

Yeah Nah its looking working from latest... (osx) Screenshot 2024-07-11 at 4 04 45 AM

what happens when you run it via the command (double click ) - activates console output: Screenshot 2024-07-11 at 4 05 20 AM

danoli3 avatar Jul 10 '24 18:07 danoli3

I think its due to Debug Mode on default build, try release

danoli3 avatar Jul 12 '24 07:07 danoli3

I think its actually macOS target folders should be fixed with permissions and or chmod

danoli3 avatar Jul 12 '24 10:07 danoli3

from my usage it is always killed if I compile via xcodebuild (first time) strange thing is if I compile it twice it works well make works well too.

this xcode project is strange because it uses a very unusual renaming and moving in the end. maybe this is causing the problems

dimitre avatar Aug 27 '24 12:08 dimitre

@dimitre it means it not signed and you just gotta run the build script to sign it scripts/osx/build_cmdline.sh

Issue is macOS permissions now are hectic for unsigned code

danoli3 avatar Aug 27 '24 13:08 danoli3

Building from Xcode will make the file correctly, but it's linking against the mach-o of the files in the .app: invalidating the cmdLine.exe that is copied out of that .app and into the usable folder. Since before it was signed it had references to all that .app stuff. Re-signing in the new location with the script fixes it

danoli3 avatar Aug 27 '24 13:08 danoli3

not a libs problem, was a new macOS permissions problem

danoli3 avatar Aug 27 '24 13:08 danoli3

it would be great if PG could be built in the future only as a commandLine application instead of an app bundle.

dimitre avatar Aug 27 '24 15:08 dimitre

it would be great if PG could be built in the future only as a commandLine application instead of an app bundle.

scripts/osx/build_cmdline.sh

danoli3 avatar Aug 27 '24 15:08 danoli3