Closed
Description
Description
The FIRFirestoreSettings has an error after updating to XCode release version 15.0 on this line:
// Public constant ABSL_CONST_INIT extern "C" const int64_t kFIRFirestoreCacheSizeUnlimited = Settings::CacheSizeUnlimited;
Error: An attribute list cannot appear here
Reproducing the issue
Try to build an existing iOS app that was previously working that used the FirebaseFirestore
module. It no longer builds after the XCode update.
Firebase SDK Version
??
Xcode Version
15.0
Installation Method
Swift Package Manager
Firebase Product(s)
Firestore
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved
snippet
Replace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock
snippet
Replace this line with the contents of your Podfile.lock!
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
google-oss-bot commentedon Sep 23, 2023
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
dconeybe commentedon Sep 24, 2023
@dsert1 Thank you for reporting this issue. However, I am not seeing the same issue when I compile using Xcode 15. If possible, could you do the following:
Thank you.
rharshaw commentedon Sep 24, 2023
@dsert1 I had the same issue. I think you may be operating on Firebase 9.6.0 SDK version.
I fixed the issue by going into my Project - Package Dependencies.
I changed the range by changing the drop down from "Update to Next Major Version" to "Range of Versions" then changing it from 9.0.0 < 10.0.0 to 10.0.0 < 11.0.0
Then changed the drop down back to 'Update to Next Major Version'. Once that set in, the packages updated and my project ran fine.
Hope that helps.
kemalekren commentedon Sep 24, 2023
I got the same issue as well. Here is the details of my side:
I'm using SPM - Firebase 9.6.0
Error Line:
ABSL_CONST_INIT extern "C" const int64_t kFIRFirestoreCacheSizeUnlimited = Settings::CacheSizeUnlimited;
Error:
An attribute list cannot appear here
Error file path : Firebase -> Firestore -> API -> FIRFirestoreSettings / Line - 33
Running Device: Simulator 14 Pro / 16.4
dconeybe commentedon Sep 25, 2023
For anyone experiencing this issue, please attempt to reproduce in the latest version, which is 10.15.0 at the time of writing. If this is fixed in the latest version then the "fix" is to upgrade. Otherwise, we will fix it in the next version. So either way, an upgrade will be needed in order to get the fix. Thanks!
Resource-2 commentedon Sep 26, 2023
any update for this bug.
dconeybe commentedon Sep 26, 2023
@Resource-2 What version of the Firebase SDK are you using? It looks like this problem only occurs with old versions of the SDK. Does the problem go away when you upgrade to the latest version, which is 10.15.0 (at the time of writing)?
Marvelousy20 commentedon Sep 26, 2023
@rharshaw solution worked for me.
dconeybe commentedon Sep 26, 2023
I am going to close this issue since there have been several reports that upgrading to the latest version of the Firebase SDK has fixed the problem. If anyone experiences this issue with the latest version, which is 10.15.0 at the time of writing, or newer, then please leave a comment or open a new issue and we will investigate.
25 remaining items