firebase / firebase-ios-sdk

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

Xcode 15.3 & 15.4 compilation issue with v10.29.0 using Carthage #13718

Open henry42 opened 2 weeks ago

henry42 commented 2 weeks ago

Description

I believe the issue is similar to the one described in https://github.com/firebase/firebase-ios-sdk/issues/12800. The binary seems to be built using Swift 5.9, while Xcode 15.3+ uses Swift 5.10.

I hope that the Firebase SDK without the Swift-suffixed binary should not be impacted by the Swift language version in Xcode.

At least, version 10.29.0 should broadly support the current Xcode version, especially since it is the last version that supports iOS 12.

Thank you so much for this project; I truly depend on it.

Reproducing the issue

binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 10.29.0 binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseCrashlyticsBinary.json" == 10.29.0 binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseInAppMessagingBinary.json" == 10.29.0 binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseMessagingBinary.json" == 10.29.0 binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseRemoteConfigBinary.json" == 10.29.0

Firebase SDK Version

10.29.0

Xcode Version

15.4

Installation Method

Carthage

Firebase Product(s)

Remote Config

Targeted Platforms

iOS

Relevant Log Output

Failed to build module 'FirebaseRemoteConfig'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.9... while this compiler is 'Apple Swift version 5.10.... Please select a toolchain which matches the SDK.

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 2 weeks 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 1 week ago

This may be related to https://github.com/firebase/firebase-ios-sdk/issues/12877. Please make sure you delete all old Firebase libraries and follow all the Carthage instructions.

Since we're not able to reproduce with our testing, we'll need a full reproducible example.

google-oss-bot commented 5 days ago

Hey @henry42. 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!

henry42 commented 3 days ago

Yes, I deleted all old Firebase libraries and clean the building folder. And I am sure that it is easy to reproduce, just use Xcode 15.3 or 15.4 and Carthage with Firebase 10.29.0