Page 1 of 1

PB not working with Xcode 8

Posted: Fri Sep 16, 2016 5:31 am
by jack
I am running Sierra beta on a separate partition for testing, and today there was an update for Xcode version 8, so I tried to compile something with PB to see if it would work and it didn't, but that's not unusual.
anyway, if you want to keep working with PB you may want to wait updating to Xcode 8 until Fred addresses the problem.

Re: Xcode 8 not working with PB

Posted: Fri Sep 16, 2016 5:48 am
by wilbert

Re: PB not working with Xcode 8

Posted: Thu Sep 29, 2016 7:37 am
by fsw
PB not working with Xcode 8

Went ahead and installed macOS Sierra, Xcode 8 and after that PureBasic 5.50.
(all three were never installed on this computer)

PureBasic's error message:
"The compiler isn't loaded yet... please try again."
Maybe a permission thing?

Really strange :shock:

EDIT
Restarted computer and the PB icon in the dock disappeared, there is a question mark now; even though the app is still where it was installed and can be started through finder.

Re: PB not working with Xcode 8

Posted: Thu Sep 29, 2016 2:16 pm
by jack
it may be GateKeeper, apparently it's more strict in the new OS http://osxdaily.com/2016/09/27/allow-ap ... atekeeper/

Re: PB not working with Xcode 8

Posted: Thu Sep 29, 2016 3:49 pm
by wilbert
You have to start XCode (only once).
It asks you to agree to somethings. Once you are in the XCode IDE and close it, PB should run fine.

Re: PB not working with Xcode 8

Posted: Thu Sep 29, 2016 5:53 pm
by fsw
wilbert wrote:You have to start XCode (only once).
It asks you to agree to somethings. Once you are in the XCode IDE and close it, PB should run fine.
Nope, still shows the same error about the compiler not loaded.
jack wrote:it may be GateKeeper, apparently it's more strict in the new OS
I think you are onto something here as looking at the picture in the link you provided there are three options shown:
App Store
App Store and identified developers
Anywhere
On my dialog window the third option is missing :!:

Re: PB not working with Xcode 8

Posted: Thu Sep 29, 2016 6:12 pm
by wilbert
fsw wrote:On my dialog window the third option is missing :!:
My MacOS Sierra is set to the second option "App Store and identified developers" and doesn't complain about compiler not being loaded.
I am using PB 5.42; don't know if that makes the difference.

Re: PB not working with Xcode 8

Posted: Thu Sep 29, 2016 7:27 pm
by fsw
wilbert wrote:
fsw wrote:On my dialog window the third option is missing :!:
My MacOS Sierra is set to the second option "App Store and identified developers" and doesn't complain about compiler not being loaded.
I am using PB 5.42; don't know if that makes the difference.
My MacOS Sierra is set to the second option "App Store and identified developers" as well. (...there is no third)


Is the third option visible on your machine?


Installed PureBasic 5.50, 5.43LTS, 5.42LTS and all exhibit the same error message about the compiler not loaded.


Strangely enough if I right click on the PureBasic app file and "Show Package Contents" I can get into the ".app" and start the real "PureBasic" executable.
I can even compile this code:

Code: Select all

;Hello macOS Sierra.pb
; -----------------------------------------------------------
; the following line is needed since macOS Sierra
Import "-stdlib=libc++ -mmacosx-version-min=10.7" : EndImport
; -----------------------------------------------------------
;"Compiled with: Finder -> Show Package Contents of PureBasic.app -> Contents/MacOS/PureBasic"
MessageRequester("Message", "Hello macOS Sierra!")
and I can run the executable; even "Pin To Dock" and it stays there with no question mark on top of the icon.

Strange stuff...

Forum Moderator: Do we (well... you) need to move this topic to a different forum section, as it's not really "Off Topic"?

Re: PB not working with Xcode 8

Posted: Thu Sep 29, 2016 8:20 pm
by jack
fsw wrote: My MacOS Sierra is set to the second option "App Store and identified developers" as well. (...there is no third)
the link I posted gives instructions on how to enable the third option

Re: PB not working with Xcode 8

Posted: Thu Sep 29, 2016 8:32 pm
by fsw
Yeah, you are right.
Didn't read the linked article all the way :oops:
Sorry for that, this will teach me!

Did this:

Code: Select all

sudo spctl --master-disable
in a terminal.

In order to make PureBasic start normally it needs to be reinstalled.

Thank you Jack!

EDIT

Did this:

Code: Select all

sudo spctl --master-enable
in a terminal in order to deactivate again.

Did this because in the link Jack provided there are also some readers comments where they suggested to use:

Code: Select all

‘Ctrl+Click > “Open” in menu item’ 
to selectively bypass Gatekeeper.

This seems to be the better way, as with the aforementioned spctl command the door is wide open ...all the time.

Didn't like that...

Re: PB not working with Xcode 8

Posted: Thu Sep 29, 2016 10:04 pm
by jack
glad it worked for you :)