macos: link iroh's frameworks for MacTetherApp (matches the iOS app)

The macOS GUI app needs the same OTHER_LDFLAGS as the iOS app to link the iroh
staticlib: Network (netwatch nw_* symbols) + CoreFoundation/Foundation/objc
(objc2 bindings) + iconv. With this it builds against the iroh core like the
agent and the iOS app do. Verified: BUILD SUCCEEDED for macOS arm64.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-22 02:50:38 -05:00
co-authored by Claude Opus 4.8
parent 3f023402e3
commit 1538cc64b3
2 changed files with 6 additions and 4 deletions
@@ -302,7 +302,7 @@
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MARKETING_VERSION = 0.1.0; MARKETING_VERSION = 0.1.0;
OTHER_LDFLAGS = "-framework Security -framework SystemConfiguration -lresolv"; OTHER_LDFLAGS = "-framework Security -framework SystemConfiguration -framework Network -framework CoreFoundation -framework Foundation -lobjc -liconv -lresolv";
PRODUCT_BUNDLE_IDENTIFIER = io.pecord.tether.mac; PRODUCT_BUNDLE_IDENTIFIER = io.pecord.tether.mac;
SDKROOT = macosx; SDKROOT = macosx;
}; };
@@ -327,7 +327,7 @@
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MARKETING_VERSION = 0.1.0; MARKETING_VERSION = 0.1.0;
OTHER_LDFLAGS = "-framework Security -framework SystemConfiguration -lresolv"; OTHER_LDFLAGS = "-framework Security -framework SystemConfiguration -framework Network -framework CoreFoundation -framework Foundation -lobjc -liconv -lresolv";
PRODUCT_BUNDLE_IDENTIFIER = io.pecord.tether.mac; PRODUCT_BUNDLE_IDENTIFIER = io.pecord.tether.mac;
SDKROOT = macosx; SDKROOT = macosx;
}; };
+4 -2
View File
@@ -22,8 +22,10 @@ targets:
settings: settings:
base: base:
PRODUCT_BUNDLE_IDENTIFIER: io.pecord.tether.mac PRODUCT_BUNDLE_IDENTIFIER: io.pecord.tether.mac
# Rust staticlib pulls in SecRandomCopyBytes (ring) + system config (reqwest). # Rust staticlib pulls in SecRandomCopyBytes (ring) + system config
OTHER_LDFLAGS: "-framework Security -framework SystemConfiguration -lresolv" # (reqwest) + iroh's netwatch (Network.framework) + objc2 bindings
# (CoreFoundation/Foundation/objc) + iconv.
OTHER_LDFLAGS: "-framework Security -framework SystemConfiguration -framework Network -framework CoreFoundation -framework Foundation -lobjc -liconv -lresolv"
MARKETING_VERSION: "0.1.0" MARKETING_VERSION: "0.1.0"
CURRENT_PROJECT_VERSION: "1" CURRENT_PROJECT_VERSION: "1"
GENERATE_INFOPLIST_FILE: true GENERATE_INFOPLIST_FILE: true