faithfracture / Apple-Boost-BuildScript

Script for building Boost for Apple platforms (iOS, iOS Simulator, tvOS, tvOS Simulator, OS X)
279 stars 111 forks source link

SDK cannot be located #44

Closed djordje-jovic closed 5 years ago

djordje-jovic commented 5 years ago

Clean installed Catalina, Xcode and I got error when I wanted to build boost library with command:

./boost.sh -ios -macos --ios-archs "armv7 armv7s arm64 arm64e" --min-ios-version 10.3 --universal

xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: unable to lookup item 'SDKVersion' in SDK 'iphoneos'
xcrun: error: SDK "appletvos" cannot be located
xcrun: error: SDK "appletvos" cannot be located
xcrun: error: unable to lookup item 'SDKVersion' in SDK 'appletvos'
xcrun: error: SDK "appletvos" cannot be located
xcrun: error: SDK "appletvos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'appletvos'
xcrun: error: SDK "appletvsimulator" cannot be located
xcrun: error: SDK "appletvsimulator" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'appletvsimulator'

Then I found an issue where command: xcode-select -print-path returns: /Library/Developer/CommandLineTools instead of: /Applications/Xcode.app/Contents/Developer

Changed root folder with command: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

After that everything is fine.

faithfracture commented 5 years ago

I didn’t run into that with just the upgrade. Thanks for the heads up with a clean install.