XcodeBenchmark icon indicating copy to clipboard operation
XcodeBenchmark copied to clipboard

Build error stemming from gRPC-Core: a template argument list is expected after a name prefixed by the template

Open aivantg opened this issue 7 months ago • 8 comments
trafficstars

I'm seeing the following error when trying to build the benchmark project on MacOS 15.4 on a M4 Macbook Air.

/XcodeBenchmark/Pods/gRPC-Core/src/core/lib/promise/detail/basic_seq.h:499:38: error: 
      a template argument list is expected after a name prefixed by the template
      keyword [-Wmissing-template-arg-list-after-template-kw]
  499 |                     Traits::template CallSeqFactory(f_, *cur_, std::move(arg)));
      |                                      ^
1 error generated.

...

The following build commands failed:
	CompileC /Users/aivant/Documents/XcodeBenchmark/DerivedData/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/gRPC-Core.build/Objects-normal/arm64/memory_quota.o /Users/aivant/Documents/XcodeBenchmark/Pods/gRPC-Core/src/core/lib/resource_quota/memory_quota.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'gRPC-Core' from project 'Pods')
	Building workspace XcodeBenchmark with scheme XcodeBenchmark
(2 failures)

I suspect this has to do with this issue and will require an update to Firebase 11

aivantg avatar Apr 09 '25 08:04 aivantg

I'm trying to put a PR up for bumping Firebase but got rate-limited by the github API 🙃

Also I'm not sure if updating Firebase effectively invalidates previous benchmarks, so curious if there are other ideas for getting around this issue

aivantg avatar Apr 09 '25 08:04 aivantg

Image

I'm on a brand new M4 Pro MBP with a fresh xcode install, fresh clone of the repo, and am having a build failure on the same file. I checked the Podfile.lock and it indeed has Firebase 10 instead of 11 as has been pointed out in the other thread is the issue; this is a problem that needs fixed in this project and the updated lock file pushed.

JRHeaton avatar Apr 10 '25 02:04 JRHeaton

This is causing a major delay in the development. Any workaround or any solution for this?

aurangblackbuck avatar Apr 19 '25 10:04 aurangblackbuck

Has someone a solution for this? There was a new benchmark submitted. So there may be.

xner avatar May 09 '25 14:05 xner

I've fixed the issue.

devMEremenko avatar May 09 '25 19:05 devMEremenko

Let me know if it works for you. I've tested with Xcode 16.3, 16.1, 16.0

devMEremenko avatar May 09 '25 20:05 devMEremenko

Let me know if it works for you. I've tested with Xcode 16.3, 16.1, 16.0

where is the solution?

EDIT: found the fix. you need to modify Traits::template CallSeqFactory(f_, *cur_, std::move(arg)) to Traits::template CallSeqFactory<>(f_, *cur_, std::move(arg)) XCode version 16.3

viktorvoltz avatar May 12 '25 10:05 viktorvoltz

@viktorvoltz, I've updated pods and the issue seems to be resolved. Is it still occurring for you?

devMEremenko avatar May 14 '25 15:05 devMEremenko