fix(ios): support Xcode 16+ team detection and fix ntohl build error#22773
Merged
steipete merged 4 commits intoFeb 24, 2026
Merged
Conversation
steipete
force-pushed
the
fix/ios-xcode16-signing-and-build
branch
from
February 24, 2026 14:21
3cdd0c4 to
00721c6
Compare
Xcode 16+/26 no longer writes IDEProvisioningTeams to the preferences plist, breaking ios-team-id.sh for newly signed-in accounts. Add provisioning profile fallback and actionable error when an account exists but no team ID can be resolved. Also replace ntohl() with UInt32(bigEndian:) for Swift 6 compatibility and gitignore Xcode build output directories. Co-Authored-By: Claude Opus 4.6 <[email protected]>
steipete
force-pushed
the
fix/ios-xcode16-signing-and-build
branch
from
February 24, 2026 14:21
00721c6 to
ae72cd5
Compare
Co-authored-by: Brian Leach <[email protected]>
Co-authored-by: Brian Leach <[email protected]>
20 tasks
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.
Summary
scripts/ios-team-id.sh: Xcode 16+/26 no longer writes theIDEProvisioningTeamskey tocom.apple.dt.Xcode.plist, causingios-configure-signing.shto silently fail for any newly signed-in developer account. This adds a provisioning profile fallback (load_teams_from_xcode_managed_profiles) and detects when an Apple account is present but no team ID can be resolved, providing actionable guidance instead of a generic error.GatewayConnectionController.swift:ntohl()is not visible in Swift 6 strict concurrency mode on Xcode 26. Replaced with the equivalentUInt32(bigEndian:)which is pure Swift and works across all toolchain versions..gitignore: Addedapps/ios/build/,apps/shared/OpenClawKit/build/, andSwabble/build/— Xcode'sxcodebuildoutput directories were not covered by the existing.build/entries (which only match SwiftPM output).Test plan
scripts/ios-team-id.shon Xcode 16+ with a signed-in Apple account — should resolve team ID or show actionable instructionsscripts/ios-team-id.shon Xcode 15 — existing behavior unchanged (IDEProvisioningTeams path still works)GatewayConnectionController.swiftcompiles without errorxcodebuildoutput inbuild/dirs is ignored by git🤖 Generated with Claude Code
Greptile Summary
Fixed iOS build compatibility with Xcode 16+ and Swift 6. The PR addresses team detection failure on Xcode 16+ by adding a provisioning profile fallback and improves error messaging. Replaced deprecated
ntohl()with Swift'sUInt32(bigEndian:)for Swift 6 compatibility. Added appropriate Xcode build directory entries to.gitignore.scripts/ios-team-id.sh: Addedload_teams_from_xcode_managed_profiles()fallback that parses local provisioning profiles when Xcode preferences don't contain team data (Xcode 16+ behavior). Enhanced error messages with actionable guidance when Apple account is present but team ID cannot be resolved.GatewayConnectionController.swift: Replaced C functionntohl()with native SwiftUInt32(bigEndian:)to fix compilation under Swift 6 strict concurrency mode..gitignore: Addedxcodebuildoutput directories forapps/ios/build/,apps/shared/OpenClawKit/build/, andSwabble/build/(distinct from existing SwiftPM.build/patterns).Confidence Score: 4/5
Last reviewed commit: 3cdd0c4
(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!