Fix Xcode 26 Google sign-in build break + CI guard#4937
Merged
Conversation
GoogleConnectImpl.m and FacebookImpl.m pass `CN1_THREAD_GET_STATE_PASS_ARG` (or `threadStateData`) as the first argument to `set_field_com_codename1_social_*` setters, but those ParparVM-generated instance-field setters take only `(value, instance)` -- the translator's `ByteCodeClass` emit comment even spells this out: "Instance field setters don't use thread context directly." The extra arg has been there since the GoogleSignIn 5.0 migration in 2020; older clang accepted it with a warning, but Xcode 26's clang now rejects it as `error: too many arguments to function call, expected 2, have 3`, breaking every Google sign-in iOS source build (and every Facebook one with NEW_CODENAME_ONE_VM). Also extends the ios-packaging CI to enable Google sign-in via `ios.gplus.clientId`, so GoogleConnectImpl.m is exercised under Xcode 26 on every PR -- the same class of signature drift would otherwise stay invisible until a customer turns the feature on. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
|
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
Customer reported a Google sign-in iOS build failure on Xcode 26 / iOS SDK 26.2 and suspected a CocoaPods regression. The pods install cleanly (
AppAuth 1.7.6,GTMAppAuth 1.3.1,GoogleSignIn 5.0.2); the real failure is in hand-writtenPorts/iOSPort/nativeSources/GoogleConnectImpl.m:The ParparVM translator's instance-field setters take
(value, instance)—vm/ByteCodeTranslator/.../ByteCodeClass.java:909literally comments "Instance field setters don't use thread context directly." But the call sites prependCN1_THREAD_GET_STATE_PASS_ARG(which expands togetThreadLocalData(),), so the call passes 3 args. The bug has been latent since commit 922f946 (2020); older clang accepted it with a warning, Xcode 26's clang rejects it as a hard error.Removed
CN1_THREAD_GET_STATE_PASS_ARG/threadStateDatafrom the 10set_field_*call sites inGoogleConnectImpl.mand the 2 identical-pattern call sites inFacebookImpl.m.Extended
.github/workflows/ios-packaging.ymlto setios.gplus.clientId, which flips onINCLUDE_GOOGLE_CONNECT+GOOGLE_SIGNINand pulls in the GoogleSignIn pod. From now on, every PR that touchesPorts/iOSPort/**actually compilesGoogleConnectImpl.munder Xcode 26 — so any future signature drift between hand-written .m files and translator-generatedset_field_*headers fails CI immediately.Test plan
build-ios-app.shandxcodebuildon a project with Google sign-in enabled; the new client-ID arg should causeGoogleConnectImpl.mto compile (would have caught this bug pre-fix)ios.pods=AppAuth+ Google sign-in succeedsios-sourcebuild withios.gplus.clientId=...set, open in Xcode 26, confirmGoogleConnectImpl.mcompiles🤖 Generated with Claude Code