Xcode 11 & SDKROOT on macOS 10.14

Joshua Root jmr at macports.org
Wed Oct 2 08:28:50 UTC 2019


On 2019-10-2 15:44 , Aaron Madlon-Kay wrote:
>> xcrun can't find cdtool on my system even without specifying an SDK:
> 
> I don't know anything about it except that the error occurs when using
> CLT and doesn't happen when using the Xcode SDK.

Potentially clearing configure.sdkroot might be a workaround. I really
don't understand the problem well enough to say if we should be
modifying the portgroup at this point.

>> The Xcode tools are another matter, and we should be setting DEVELOPER_DIR correctly to allow them to be found.
> 
> What would the correct value be?
> 
> Googling around I found e.g.
> DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer (or other
> Xcode installation, presumably). Used as either an envar or an
> argument to xcodebuild, I could not find a value that allowed the
> build to complete successfully when the SDKROOT was using the CLT.

By "should" I mean as far as I know we are already setting it to the
correct value.

Do other xcodebuild-using ports have the same problem or it it just this
one?

- Josh


More information about the macports-dev mailing list