Files
tether/ios/MacTetherApp/project.yml
Patrick Ecord 1538cc64b3 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>
2026-06-22 02:50:38 -05:00

43 lines
1.4 KiB
YAML

name: MacTetherApp
options:
bundleIdPrefix: io.pecord
deploymentTarget:
macOS: "14.0"
createIntermediateGroups: true
packages:
TetherKit:
path: ../TetherKit
targets:
MacTetherApp:
type: application
platform: macOS
sources:
- Sources
dependencies:
- package: TetherKit # RoomIdentity only — networking now lives in TetherCore
- framework: Vendor/TetherCore.xcframework
embed: false # static lib, nothing to embed
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: io.pecord.tether.mac
# 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
DEVELOPMENT_TEAM: ""
CODE_SIGN_STYLE: Automatic
configs:
Debug:
INFOPLIST_KEY_NSAppTransportSecurity: ""
info:
path: Sources/Info.plist
properties:
NSAppTransportSecurity:
NSAllowsLocalNetworking: true
NSLocalNetworkUsageDescription: "tether connects to your clipboard relay on the local network."