Repository navigation
Apple-platform (iOS/tvOS) build support + Darwin TCP keepalive - #291
Merged
Merged
Conversation
- BoringSSL conan recipe: add tvOS SDK support (appletvos/appletvsimulator) - Conanfile: add camouflage-tls to library list, add tvOS to options - Network utils: exclude common/system/command.h on iOS (not available) - fptn-protocol-lib CMake: upgrade CXX_STANDARD 17→20
pavel-shpilev
force-pushed
the
apple-build-support
branch
from
June 13, 2026 07:36
d06f3b3 to
86006df
Compare
batchar2
approved these changes
Jun 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The iOS/tvOS clients build libfptn directly from this repo as a submodule. Today they carry a small private fork (
mrmidi/fptn) with these build adaptations on top of upstream. Merging them here gives one libfptn lineage for desktop, Android, and Apple — no divergent fork to maintain. After merge, the Apple client's submodule repoints to upstream.All changes are Apple-build-only (guarded by
os/__APPLE__/TARGET_OS_IPHONE) and do not affect Linux/Windows/Android builds.What (5 files, ~52 lines)
.conan/recipes/boringssl/conanfile.py— generalize the iOS cross-build settings to iOS and tvOS (pickappletvos/appletvsimulatorvsiphoneos/iphonesimulatorbyos+os.sdk); add tvOS to the Security/Foundation frameworks; stripinstall(TARGETS bssl)to avoid an install-target conflict during the framework build.conanfile.py— addcamouflage-tlsto the consumed static libs; extendboost.without_processto tvOS (matching iOS/Android).src/common/network/utils.h— compile outGetServerIpAddresses()(which shells out viacommon/system/command.h) on iOS, mirroring the existing Android guard. iOS apps can't spawn shell commands.src/fptn-protocol-lib/CMakeLists.txt— bump the iOS target to C++20 (was 17).src/fptn-protocol-lib/https/websocket_client/websocket_client.cpp— enable TCP keepalive and, on Darwin, tuneTCP_KEEPALIVE/TCP_KEEPINTVL/TCP_KEEPCNT(15s/5s/3) so the kernel probes the connection during device sleep without app CPU — improves mobile reconnect behavior.Notes
master, libfptn builds as an iOS-simulator framework and the iOS client's control plane (login //api/v1/dns/ TLS handshake) works against a live server.