Skip to content

Xcode 16.3 Compile issue with gRPC-c++ with iOS 18.4 SDK #14643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Eddie-Pan opened this issue Apr 2, 2025 · 19 comments
Open

Xcode 16.3 Compile issue with gRPC-c++ with iOS 18.4 SDK #14643

Eddie-Pan opened this issue Apr 2, 2025 · 19 comments

Comments

@Eddie-Pan
Copy link

Description

[Error Message]: A template argument list is expected after a name prefixed by the template keyword
[Error Location]: gPRC-c++ > Implementation > basic_seq.h > PollNonEmpty() > Construct(&state_, Traits::template CallSeqFactory(f_, *cur_, std::move(arg)));

Reproducing the issue

  • Firebase Version (10.29.0)
  • Have latest Xcode and iOS simulator installed
  • Run the build, the issue will appear.

Firebase SDK Version

10.29.0

Xcode Version

16.3

Installation Method

CocoaPods

Firebase Product(s)

Crashlytics

Targeted Platforms

iOS

Relevant Log Output

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@paulb777
Copy link
Member

paulb777 commented Apr 2, 2025

Please update to Firebase 11.x.

The gRPC build issue does not exist in the later versions of Firestore's gRPC dependency.

@google-oss-bot
Copy link

Hey @Eddie-Pan. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@setoelkahfi
Copy link

setoelkahfi commented Apr 11, 2025

This might/might not be related. I can open a new issue if needed.

I stumbled into this issue now. It wasn't clear from the Xcode build interface where it had stuck. But it's clear from running our test through fastlane.

Image

Xcode 16.3
Firebase 11.11
Firebase product: Crashlytics
macOS Sequoia 15.4

Any pointers?

@paulb777
Copy link
Member

@setoelkahfi We'll likely need clearer reproduction instructions to help.

@quyenlv-unicloud
Copy link

same issue, working fine with xcode 16.2, please any workaround, setting for xcode? I can upgrade Firebase but it take a lot of time

@aurangblackbuck
Copy link

This is causing a major delay in the development. Any workaround or any solution for this?
The latest Firebase version is also not working, giving the same error.

@paulb777
Copy link
Member

@quyenlv-unicloud @aurangblackbuck We'll need an issue with the full template filled out and possibly a fully reproducible example. It does not reproduce for us with Firebase 11.11.0

@aryansaurav
Copy link

aryansaurav commented Apr 28, 2025

can confirm this issue. Obviously, people would not have time to create a fully reproducible issue.

but, it shouldn't be very hard either to create one! We had to upgrade our Xcode Cloud build to the latest version of Xcode 16.3 to comply with the iOS version 18.4 requirement of Apple (enforced since 25th April).

Just did this upgrade from Xcode 15.3 to 16.3, and the issue came up. My firebase version is 11.9

I wish I could provide more info to get this issue resolved sooner. At least, we can see this issue becoming more and more common for a lot of people as they try publish a new version on App Store.

EDIT: Following one of the earlier comments, I reverted back to Xcode v 16.2 from latest 16.3. Actually, for iOS 18.4, it is enough to upgrade to Xcode 16.x. This issue doesn't happen on 16.2. Might be a temporary workaround for some

@hiranmayee-ncompass
Copy link

I’m also facing the same issue after upgrading to Xcode 16.3.
Firebase version: 11.12.0
gRPC version: 1.69.0
The build fails with the same error in basic_seq.h related to the template keyword. Everything was working fine with Xcode 16.2.

@ahmed-amk
Copy link

@paulb777 Firebase 11.x also has the same problem with the Xcode 16.3. Projects just don't compile on Xcode 16.3. Isn't this enough information to reproduce the issue?

@setoelkahfi
Copy link

@setoelkahfi We'll likely need clearer reproduction instructions to help.

I can intermittently build the project with 11.11 now after upgrading some other dependencies in our project and updating my macOS to the latest. I can observe that the build is more reliable when running the project on a real device.

Xcode 16.3 (16E140)
Firebase 11.11.0
Firebase product: Crashlytics
macOS Sequoia 15.4.1
MacBook Pro Apple M1 Pro

@dinukapj
Copy link

dinukapj commented May 1, 2025

Same issue here. So annoying cos I've been struggling with this for days now. Even with Firebase 11.x I can still reproduce it with Xcode 16.3

@kplotniko
Copy link

I am also facing this issue. why does this happen?
firebase_core: ^3.6.0
firebase_auth: ^5.3.1
firebase_database: ^11.1.4
firebase_storage: ^12.3.2

@paulb777
Copy link
Member

paulb777 commented May 2, 2025

We haven't been able to reproduce with the current version. Confirmed in CI in #14801. And we're missing a Podfile.lock for this report.

@Muskan-Chaudhary
Copy link

Hello, I am also facing this issue.
Anyone got any workaround on this?

I need to release my changes by tomorrow.

@Th3Ya0vi
Copy link

Th3Ya0vi commented May 5, 2025

I was facing the same here is what worked for me.
Modified the affected line in gRPC-Core's basic_seq.h file from: Traits::template CallSeqFactory(f_, *cur_, std::move(arg)) to Traits::template CallSeqFactory<>(f_, *cur_, std::move(arg))

Added the following to Podfile post_install hook to ensure proper configuration: ` platform :ios, '13.0'

In post_install:

installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end`

Also updated RevenueCat implementation to use the current API approach (removed deprecated observerMode). Which was the root cause for my issue

@indresh149
Copy link

getting same issue , which firebase package to change ?

firebase_auth: ^5.3.1
firebase_core: ^3.6.0
firebase_app_check: ^0.3.1+3
firebase_messaging: ^15.1.2
firebase_performance: ^0.10.0+7
firebase_storage: ^12.3.1

@AravindDesk
Copy link

I was facing the same here is what worked for me. Modified the affected line in gRPC-Core's basic_seq.h file from: Traits::template CallSeqFactory(f_, *cur_, std::move(arg)) to Traits::template CallSeqFactory<>(f_, *cur_, std::move(arg))

Added the following to Podfile post_install hook to ensure proper configuration: ` platform :ios, '13.0'

In post_install:

installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' end end`

Also updated RevenueCat implementation to use the current API approach (removed deprecated observerMode). Which was the root cause for my issue

this worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests