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:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user