firebase / quickstart-unity

Firebase Quickstart Samples for Unity
https://firebase.google.com/games
Apache License 2.0
819 stars 424 forks source link

Firebase Storage Error with SDK 9.0.0 and Xcode 13.0- "Concurrency is only available in ios 15.0.0" #1282

Closed shlighter closed 2 years ago

shlighter commented 2 years ago

[READ] For Firebase Unity SDK issues, please report to Firebase Unity open-source

Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.

[REQUIRED] Please fill in the following fields:

[REQUIRED] Please describe the issue here:

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

Steps to reproduce:

I update Firebase SDK to 9.0.0, and tried to build my project on Xcode 13.0 and I'm getting 10 errors about Firebase Storage- "Concurrency is only available in ios 15.0.0 or newer" It seems like the Firebase already had a fix for it for ios users, but what about Unity users? Here- https://github.com/firebase/firebase-ios-sdk/issues/8685

Relevant Code:

// TODO(you): code here to reproduce the problem
paulinon commented 2 years ago

Hi @shlighter,

Thanks for reporting this. I was able to reproduce this behavior on my end using the quickstart, and I'll relay my observations to the team.

I'll be marking this as a bug for now. You may refer to this thread for updates.

DellaBitta commented 2 years ago

We've had similar issues in the past with version previous to Xcode 13.4 13.3.1. Currently the SDK requires XCode 13.4 13.3.1 as a minimum.

Could you check if this issue goes away if you update your Xcode version?

Thanks!

chkuang-g commented 2 years ago

@shlighter https://github.com/firebase/firebase-ios-sdk/issues/8685 should definitely be included in the latest release: It's been fixed in Sep 2021 and staged in 8.8.0. The latest Unity SDK is using pod 9.1.0. So you issue might not related to that.

I am able to reproduce the same thing by just adding Storage pod. My current Xcode version is 13.1

According to this post, this seems requires Xcode 13.2 and above. Could you try and see if upgrading Xcode works for you? https://stackoverflow.com/questions/69284960/ios-concurrency-is-only-available-in-ios-15-0-0-or-newer-in-protocol

shlighter commented 2 years ago

My issue is regarding XCODE 13.0, not XCODE 13.2. (I can't update it because of other reasons) Does firebase stop supporting XCODE 13.0?

chkuang-g commented 2 years ago

@paulb777 Do you have some insight about this?

paulb777 commented 2 years ago

Yes. It's an Xcode 13.2 issue. Firebase Apple SDK 9.x requires at least 13.3.1. See the release notes: https://firebase.google.com/support/release-notes/ios

chkuang-g commented 2 years ago

@paulb777 Thank you for the response.

@shlighter Unity SDK 9.0.0 is considered as a breaking change release. We also documented this in Unity release note. Unfortunately if you need to use Xcode 13.0, the best solution is to downgrade Unity SDK to 8.10.1.

You should be able to find the older version here. https://developers.google.com/unity/archive#firebase

Make sure you remove ALL Firebase libraries in your project before importing the older version.

Let me know if this answer your question.

google-oss-bot commented 2 years ago

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

google-oss-bot commented 2 years ago

Since there haven't been any recent updates here, I am going to close this issue.

@shlighter if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.