Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An attribute list cannot appear here firebase-ios-sdk, Xcode 15.0 Error

I have updated my Xcode to 15.0 and now it's giving me this error:

ABSL_CONST_INIT extern "C" const int64_t kFIRFirestoreCacheSizeUnlimited =
            Settings::CacheSizeUnlimited;
   // An attribute list cannot appear here

I have gone through XCode 15.0 Release - firebase-ios-sdk bug: An attribute list cannot appear here issue on github but it does't provide support for swiftPackage manger.

Xcode 15.0 Error

like image 583
Qazi Ammar Avatar asked Mar 03 '26 04:03

Qazi Ammar


2 Answers

update Firebase to v10 or change the line to

extern "C" const int64_t kFIRFirestoreCacheSizeUnlimited = Settings::CacheSizeUnlimited;
like image 111
Asmaa Tarek Avatar answered Mar 05 '26 17:03

Asmaa Tarek


I was facing the same issue. I managed to fixed it by replacing this:

ABSL_CONST_INIT extern "C" const int64_t kFIRFirestoreCacheSizeUnlimited =
Settings::CacheSizeUnlimited; 

with this:

extern "C" const int64_t kFIRFirestoreCacheSizeUnlimited = Settings::CacheSizeUnlimited;
like image 38
Ayush Sharma Avatar answered Mar 05 '26 16:03

Ayush Sharma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!