Skip to content

macOS: Really fix target detection#11516

Closed
ryandesign wants to merge 1 commit intocurl:masterfrom
ryandesign:SCDynamicStoreCopyProxies
Closed

macOS: Really fix target detection#11516
ryandesign wants to merge 1 commit intocurl:masterfrom
ryandesign:SCDynamicStoreCopyProxies

Conversation

@ryandesign
Copy link
Contributor

TARGET_OS_OSX is only defined in the macOS 10.12 SDK and later and is only defined when dynamic targets are enabled. TARGET_OS_MAC is always defined but means any Darwin OS, including macOS, iOS, tvOS, watchOS. TARGET_OS_IPHONE means any Darwin OS other than macOS.

Follow-up to c73b2f8

Closes #11502


I tested on macOS 12 building for OS X 10.8 and then for iOS 11.

And I tested on OS X 10.8 building for OS X 10.8 and then for iOS 7.

@ryandesign ryandesign force-pushed the SCDynamicStoreCopyProxies branch 2 times, most recently from a3b3773 to c81082f Compare July 25, 2023 21:32
@ryandesign ryandesign force-pushed the SCDynamicStoreCopyProxies branch from c81082f to 437c844 Compare July 25, 2023 22:11
@bagder bagder added build appleOS specific to an Apple operating system labels Jul 26, 2023
Now SCDynamicStoreCopyProxies is called (and the required frameworks are
linked in) on all versions of macOS and only on macOS. Fixes crash due
to undefined symbol when built with the macOS 10.11 SDK or earlier.

CURL_OSX_CALL_COPYPROXIES is renamed to CURL_MACOS_CALL_COPYPROXIES and
is now only defined when SCDynamicStoreCopyProxies will actually be
called. Previously, it was defined when ENABLE_IPV6 was not defined but
SCDynamicStoreCopyProxies is not called in that case.

TARGET_OS_OSX is only defined in the macOS 10.12 SDK and later and only
when dynamic targets are enabled. TARGET_OS_MAC is always defined but
means any Mac OS or derivative including macOS, iOS, tvOS, and watchOS.
TARGET_OS_IPHONE means any Darwin OS other than macOS.

Follow-up to c73b2f8

Closes curl#11502
@ryandesign ryandesign force-pushed the SCDynamicStoreCopyProxies branch from 437c844 to 2ee64d1 Compare July 27, 2023 03:09
@ryandesign
Copy link
Contributor Author

I believe I've addressed all the issues. Let me know if anything else needs to be changed.

@bagder bagder closed this in 8b7cbe9 Jul 29, 2023
@bagder
Copy link
Member

bagder commented Jul 29, 2023

Thanks!

@ryandesign ryandesign deleted the SCDynamicStoreCopyProxies branch August 1, 2023 11:20
lyricidal added a commit to PRCYCoin/PRCYCoin that referenced this pull request Aug 3, 2023
[will fail ->placeholder for release as we need curl/curl#11516 to fix our mac compile]
ptitSeb pushed a commit to wasix-org/curl that referenced this pull request Sep 25, 2023
Now SCDynamicStoreCopyProxies is called (and the required frameworks are
linked in) on all versions of macOS and only on macOS. Fixes crash due
to undefined symbol when built with the macOS 10.11 SDK or earlier.

CURL_OSX_CALL_COPYPROXIES is renamed to CURL_MACOS_CALL_COPYPROXIES and
is now only defined when SCDynamicStoreCopyProxies will actually be
called. Previously, it was defined when ENABLE_IPV6 was not defined but
SCDynamicStoreCopyProxies is not called in that case.

TARGET_OS_OSX is only defined in the macOS 10.12 SDK and later and only
when dynamic targets are enabled. TARGET_OS_MAC is always defined but
means any Mac OS or derivative including macOS, iOS, tvOS, and watchOS.
TARGET_OS_IPHONE means any Darwin OS other than macOS.

Follow-up to c73b2f8

Fixes curl#11502
Closes curl#11516
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appleOS specific to an Apple operating system build

Development

Successfully merging this pull request may close these issues.

dyld: lazy symbol binding failed: Symbol not found: _SCDynamicStoreCopyProxies

2 participants