fix: SDKROOT
build setting, interpolated when under CARTHAGE
to set macosx
, otherwise set iphoneos
— allowing Xcode’s GUI to show Mac Catalyst destination
#491
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix:
SDKROOT
build setting, interpolated when underCARTHAGE
to setmacosx
, otherwise setiphoneos
— allowing Xcode’s GUI to show Mac Catalyst destination.Because of an xcodebuild bug involving the
sdk
flag and implicit dependency, Carthage is forced into a reliance (based on Xcode’s default) onSDKROOT
as default or explicitly set tomacosx
(or equivalent) under the ‘single target, multiple platform’ paradigm.xcodebuild
itself has weird behavior: you’d see — as of commit «99f51f3» —xcodebuild archive --showBuildSettings --skipUnavailableActions -project Sentry.xcodeproj -scheme Sentry
will no longer display the samemacosx
-SDKROOT
–based build settings thatxcodebuild archive Sentry.xcodeproj
builds with (even when-destination 'generic/platform=macOS'
is suffixed on at the end.)This commit gets carthage building
sentry-cocoa
without the hangups above by switching over theCARTHAGE
build setting value (or absence) to acquire theSDKROOT
build setting value.…and a couple notes on
SUPPORTED_PLATFORMS
. 👍