Skip to content

XCode 15.0 Release - firebase-ios-sdk bug: An attribute list cannot appear here #11840

Closed
@dsert1

Description

@dsert1

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!

Activity

google-oss-bot

google-oss-bot commented on Sep 23, 2023

@google-oss-bot

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

self-assigned this
on Sep 24, 2023
dconeybe

dconeybe commented on Sep 24, 2023

@dconeybe
Contributor

@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:

  1. Try to compile the "quickstart" Firestore application using your Xcode 15 setup. To do this, clone the https://github.com/firebase/quickstart-ios repository and attempt to compile and build the application in the "firestore" subidrectory.
  2. Provide a screenshot or full log of the compilation error.
  3. Try to figure out which version of the Firebase iOS SDK that you are using (e.g. the latest at the time of writing is 10.15.0).

Thank you.

rharshaw

rharshaw commented on Sep 24, 2023

@rharshaw

@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

kemalekren commented on Sep 24, 2023

@kemalekren

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

dconeybe commented on Sep 25, 2023

@dconeybe
Contributor

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

Resource-2 commented on Sep 26, 2023

@Resource-2

any update for this bug.

dconeybe

dconeybe commented on Sep 26, 2023

@dconeybe
Contributor

@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

Marvelousy20 commented on Sep 26, 2023

@Marvelousy20

@rharshaw solution worked for me.

dconeybe

dconeybe commented on Sep 26, 2023

@dconeybe
Contributor

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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @paulb777@nillbiplob@ozgurshn@kemalekren@aslamanver

      Issue actions

        XCode 15.0 Release - firebase-ios-sdk bug: An attribute list cannot appear here · Issue #11840 · firebase/firebase-ios-sdk