PB not working with Xcode 8

For everything that's not in any way related to PureBasic. General chat etc...
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

PB not working with Xcode 8

Post 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.
Last edited by jack on Thu Sep 29, 2016 12:32 pm, edited 1 time in total.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3943
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Xcode 8 not working with PB

Post by wilbert »

Windows (x64)
Raspberry Pi OS (Arm64)
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: PB not working with Xcode 8

Post 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.

I am to provide the public with beneficial shocks.
Alfred Hitshock
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: PB not working with Xcode 8

Post by jack »

it may be GateKeeper, apparently it's more strict in the new OS http://osxdaily.com/2016/09/27/allow-ap ... atekeeper/
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3943
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: PB not working with Xcode 8

Post 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.
Windows (x64)
Raspberry Pi OS (Arm64)
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: PB not working with Xcode 8

Post 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 :!:

I am to provide the public with beneficial shocks.
Alfred Hitshock
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3943
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: PB not working with Xcode 8

Post 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.
Windows (x64)
Raspberry Pi OS (Arm64)
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: PB not working with Xcode 8

Post 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"?

I am to provide the public with beneficial shocks.
Alfred Hitshock
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: PB not working with Xcode 8

Post 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
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: PB not working with Xcode 8

Post 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...

I am to provide the public with beneficial shocks.
Alfred Hitshock
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: PB not working with Xcode 8

Post by jack »

glad it worked for you :)
Post Reply