fix(apple/iOS): Use pointer directly for libresolv API calls (#9038)

Somewhere between Xcode 16.0 and Xcode 16.3, the API for the libresolv
functions we call changed slightly, and we can now pass the return value
of `__res_9_state()` directly to the `res_9_ninit`, `res_9_ndestroy` and
`res_9_getservers` functions.
This commit is contained in:
Jamil
2025-05-05 20:32:35 -07:00
committed by GitHub
parent c20cc779ac
commit 3de8a1e405
2 changed files with 7 additions and 3 deletions

View File

@@ -8,6 +8,10 @@ function setup_runner() {
local app_profile_file="$2"
local ne_profile="$3"
local ne_profile_file="$4"
# Use the latest version of Xcode - matches what we typically use for development
sudo xcode-select --switch "$(ls -d /Applications/Xcode*.app | sort -V | tail -n 1)"
profiles_path="$HOME/Library/Developer/Xcode/UserData/Provisioning Profiles"
keychain_pass=$(openssl rand -base64 32)
keychain_path="$(mktemp -d)/app-signing.keychain-db"