firebase / firebase-ios-sdk

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

Error showing @_implementationOnly import GoogleUtilities in HeartbeatsPayload #13655

Open SriAgrawal opened 3 days ago

SriAgrawal commented 3 days ago

Description

When try to run the application with updated version of firebase 11.2.0. Application showing error on one of the class of firebase package.

Screenshot 2024-09-17 at 3 30 30 PM

Reproducing the issue

Try to run the application with firebase version 11.2.0 in XCODE - 15.3. Event will occurred.

Firebase SDK Version

11.2.0

Xcode Version

15.3

Installation Method

Swift Package Manager

Firebase Product(s)

All

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 3 days ago

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

ncooke3 commented 3 days ago

Hi @SriAgrawal, this is unexpected since Xcode should be setting SWIFT_PACKAGE when building SPM libraries. Have you tried deleting derived data, the package cache, resolving package versions to ensure it's not some transient Xcode behavior?

SriAgrawal commented 2 days ago

Hi @ncooke3 As you suggested i tried to cleaned all the things like derived data, the package cache but still issue exists. I also observed one more thing that when i tried to installed pod, after installation i observed two instance of firebase and googleutilities pod is installing. Please find in the attached screenshot of pod file installation of terminal. I like to inform you, just i moved into new mac system which M3, previously in M1 it's working fine.

Screenshot 2024-09-18 at 11 08 51 AM
paulb777 commented 2 days ago

@SriAgrawal The two versions is definitely a problem. The Podfile.lock file should provide details about why the old versions are being installed and point to a resolution in the Podfile.