firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.55k stars 1.45k forks source link

Implicit declaration of function 'pb_release' is invalid in C99 - GDTCCTUploader #12699

Closed ykhandelwal913 closed 5 months ago

ykhandelwal913 commented 5 months ago

Description

error: call to undeclared function 'pb_release'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] pb_release(gdt_client_metrics_ClientMetrics_fields, &clientMetricsProto);

The following build commands failed: CompileC /Users/xxxxx/test/iOS/output/aws/Build/Intermediates.noindex/GoogleDataTransport.build/Debug-iphoneos/GoogleDataTransport.build/Objects-normal/arm64/GDTCORMetrics+GDTCCTSupport.o /Users/xxxxx/test/iOS/output/aws/SourcePackages/checkouts/GoogleDataTransport/GoogleDataTransport/GDTCCTLibrary/GDTCORMetrics+GDTCCTSupport.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'GoogleDataTransport' from project 'GoogleDataTransport')

I see similar issue reported https://github.com/firebase/firebase-ios-sdk/issues/6741.

@chanuuuu how did you resolve this issue with fastlane?

Reproducing the issue

No response

Firebase SDK Version

10.23.1

Xcode Version

15.1

Installation Method

Swift Package Manager

Firebase Product(s)

Crashlytics

Targeted Platforms

iOS

Relevant Log Output

No response

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

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

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
```yml Replace this line with the contents of your Podfile.lock! ```
google-oss-bot commented 5 months ago

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

paulb777 commented 5 months ago

As discussed in #6741 and stackoverflow, this is an issue with fastlane and not Firebase. If the answers on those links don't help you, please follow up on stackoverflow or with fastlane.