Jump to content
Sign in to follow this  
pyscripter

Adding a new SDK for MacOS fails

Recommended Posts

I am new to MacOS developement.   I have added an new Connection Profile which test successfully, the PAServer is running, XCode has the command line tools,

 

image.png.5c70c7f8e5a9726a72a6675dc9e2b1aa.png

 

When I try to add a new SDK nothing happens.

What am I missing?  Any help?

Edited by pyscripter

Share this post


Link to post

Your moniker says you're using Delphi 10.2 Tokyo. Is that still the case?

 

Adding macOS 10.15.4 SDK works OK for me using 10.3.3. If you are using 10.3.3, it might be useful to turn on verbose mode in PAServer (v command)

Share this post


Link to post

@Dave NottageThanks for responding I am in Delphi 10.3.3.

 

Here is what I see in verbose mode when I select Add New SDK as above and then press OK.

 

image.png.d6f0c8bf2b6039c18de3ea0f7187b3d5.png

 

The -version -skd happens while the dialog is showing.  Nothing seems to happen when I press OK.

 

Do I need to download the SDK in the Mac?  The XCode version is 11.4.

 

Share this post


Link to post
4 minutes ago, pyscripter said:

The -version -skd happens while the dialog is showing.

Yes, that's what PAServer runs to discover what SDKs are on the Mac.

5 minutes ago, pyscripter said:

Nothing seems to happen when I press OK.

Actually, I'm not sure now whether PAServer will show anything when it copies the files to the local machine. I was hoping it would display an error (if any).

6 minutes ago, pyscripter said:

Do I need to download the SDK in the Mac?  The XCode version is 11.4.

You should not need to, no. In case there is something really wrong though, on the Mac can you:

 

  1. Go to the Applications folder in Finder
  2. Right click on Xcode and click Show Package Contents
  3. Navigate to: Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs and make sure there's a MacOSX.sdk folder there (with subfolders)

The only other thing I can think of is a rights issue (i.e. PAServer somehow does not have rights to the SDK subfolders), but that's a stretch

Share this post


Link to post

@Dave NottageThanks for responding I am in Delphi 10.3.3.

 

Here is what I see in verbose mode when I select Add New SDK as above and then press OK.

 

image.png.d6f0c8bf2b6039c18de3ea0f7187b3d5.png

 

The -version -skd happens while the dialog is showing.  Nothing seems to happen when I press OK.

 

Do I need to download the SDK in the Mac?  The XCode version is 11.4.

 

Share this post


Link to post

I have just been told that this is a reported bug with Catalina 10.15.4. and there is a workaround I am going to try.

@Dave NottageHow come this did not affect you?

 

image.thumb.png.9f6237386cbf34f96b88bc8f21e61a33.png

Share this post


Link to post
18 minutes ago, pyscripter said:

How come this did not affect you?

Actually it did - sorry, I used the workaround. I think isolation has caused some memory loss :classic_blink:

Share this post


Link to post

I noticed that 10.4 had received a patch so I thought I'd create a fresh install (Windows and Delphi).

However, I can't add an SDK for OSX ... nothing is displayed in the SDK manager.

 

Like pyscripter "When I try to add a new SDK nothing happens."

 

I can't try the workaround above -

1 - I don't have folder to rename - is this my username Documents?

2- I don't have an entry in the SDK Manager

 

Xcode seems to be installed correctly 

 

Have I missed something?

Thanks

 

 

 

Share this post


Link to post
2 hours ago, TrevorS said:

I noticed that 10.4 had received a patch so I thought I'd create a fresh install (Windows and Delphi).

If you installed Delphi from scratch, you'll still need to apply the patches (there's 4)

2 hours ago, TrevorS said:

However, I can't add an SDK for OSX ... nothing is displayed in the SDK manager.

In a Terminal window on the Mac, can you run this command?

/usr/bin/xcodebuild -version -sdk

In the output there should be at least one entry of MacOSX

Edited by Dave Nottage

Share this post


Link to post
If you installed Delphi from scratch, you'll still need to apply the patches (there's 4)

I used RADStudio-10-4-1-esd-1461.exe to install, then I applied 3 patches as suggested by GetIt

 

/usr/bin/xcodebuild -version -sdk

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' 
is a command line tools instance

I think I have both the Tools IDE and the Commnad Line Tools installed ....

Screenshot 2020-12-22 at 10.23.19.png

Share this post


Link to post
55 minutes ago, TrevorS said:

active developer directory '/Library/Developer/CommandLineTools'

Which means you'll need to do:

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

 

Share this post


Link to post
3 hours ago, Dave Nottage said:

Which means you'll need to do:


sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

 

Fantastic, that seems to have fixed it.

Thank you for your help 🙂

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×