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
parent 3f023402e3
commit 1538cc64b3
2 changed files with 6 additions and 4 deletions

View File

@@ -302,7 +302,7 @@
"@executable_path/../Frameworks",
);
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;
SDKROOT = macosx;
};
@@ -327,7 +327,7 @@
"@executable_path/../Frameworks",
);
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;
SDKROOT = macosx;
};

View File

@@ -22,8 +22,10 @@ targets:
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: io.pecord.tether.mac
# Rust staticlib pulls in SecRandomCopyBytes (ring) + system config (reqwest).
OTHER_LDFLAGS: "-framework Security -framework SystemConfiguration -lresolv"
# Rust staticlib pulls in SecRandomCopyBytes (ring) + system config
# (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"
CURRENT_PROJECT_VERSION: "1"
GENERATE_INFOPLIST_FILE: true