iOS: honor ios.teamId in locally-generated Xcode projects (#4941)#4945
Merged
Conversation
The build hint was wired only into the cloud builder's provisioning-profile plist, so locally generated projects always opened with Team: None. Inject DEVELOPMENT_TEAM into the project-level Debug/Release XCBuildConfiguration blocks, resolving ios.debug.teamId / ios.release.teamId with fallback to ios.teamId — matching the cloud builder's precedence. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Compared 16 screenshots: 16 matched. |
Contributor
✅ Continuous Quality ReportTest & Coverage
Static Analysis
Generated automatically by the PR CI workflow. |
Collaborator
Author
|
Compared 106 screenshots: 106 matched. Benchmark Results
Build and Run Timing
Detailed Performance Metrics
|
Collaborator
Author
|
Compared 106 screenshots: 106 matched. Benchmark Results
Build and Run Timing
Detailed Performance Metrics
|
Collaborator
Author
|
Compared 106 screenshots: 106 matched. Native Android coverage
✅ Native Android screenshot tests passed. Native Android coverage
Benchmark ResultsDetailed Performance Metrics
|
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
ios.teamIdbuild hint is read by the cloudBuildDaemon(where it lands in the embedded*.mobileprovisionplist), but the local Xcode project generator (maven/codenameone-maven-plugin/.../IPhoneBuilder.java, build targetios-sourceandlocal-*) never consulted it. The pbxproj template invm/ByteCodeTranslator/src/template/template.xcodeproj/project.pbxprojhas noDEVELOPMENT_TEAMeither, so every locally generated project opened in Xcode with Team: None — exactly the symptom in Build hint ios.teamId is not used in Xcode #4941.DEVELOPMENT_TEAM = <id>;into the two project-levelXCBuildConfigurationblocks (anchored next toSDKROOT = iphoneos;), so the value is inherited by every target. Resolution mirrors the cloud builder's precedence:ios.debug.teamId/ios.release.teamIdfalling back toios.teamId, applied to the matchingname = Debug;/name = Release;block.DEVELOPMENT_TEAM) and validates input is[A-Za-z0-9]+so a malformed hint can't corrupt the pbxproj.Test plan
mvn -pl codenameone-maven-plugin -DskipTests -Plocal-dev-javase compile→ BUILD SUCCESS.template.xcodeproj/project.pbxproj:bad-id!) → logged + skipped, 0 injectionsios.teamId=2K4UGY23XQ→ both Debug and Release configs get itmvn cn1:buildIosXcodeProjecton a project withcodename1.arg.ios.teamId=<your-id>set, open the resulting.xcodeprojin Xcode, confirm Signing & Capabilities shows the team for the app target.Fixes #4941
🤖 Generated with Claude Code