iOS 17/Xcode 15 build issues
Closed this issue ยท 29 comments
Has anyone tried building an app with this plugin for iOS 17 yet?
It seems that the plugin needs to be updated for iOS17. There are following problems within the Firebase Pods folder:
- In the xcconfig files, 'DT_TOOLCHAIN_DIR' needs to be replaced with 'TOOLCHAIN_DIR'
- I'm getting following error for the file 'Pods/FirebaseFirestore/Firestore/Source/API/FIRFirestoreSettings.mm' line 33: An attribute list cannot appear here
It can be fixed by replacing
ABSL_CONST_INIT extern "C" const int64_t kFIRFirestoreCacheSizeUnlimited = Settings::CacheSizeUnlimited;
with
const int64_t kFIRFirestoreCacheSizeUnlimited = Settings::CacheSizeUnlimited;
(But I do not know if this can result in any problems)
With the corresponding fixes, I'm able to build the app and push notifications are working.
I have the same issue
I have the same issue as well. @peterfriese
same issue
The issue isn't that this plugin doesn't support Xcode 15 / iOS 17, it's that the default pinned version (v10.10.0) of the Firebase SDK for iOS does not.
Try specifying the latest version (v10.15.0) of the Firebase SDK for iOS when installing the plugin into your project:
cordova plugin rm cordova-plugin-firebasex
cordova plugin add cordova-plugin-firebasex --variable IOS_FIREBASE_SDK_VERSION=10.15.0
If you get build errors with this, make sure your local Cocoapods repo is up-to-date
@dpa99c I am running the Flutter app this issue is occurring?
Do you have any idea?
The issue isn't that this plugin doesn't support Xcode 15 / iOS 17, it's that the default pinned version (v10.10.0) of the Firebase SDK for iOS does not.
Try specifying the latest version (v10.15.0) of the Firebase SDK for iOS when installing the plugin into your project:
cordova plugin rm cordova-plugin-firebasex cordova plugin add cordova-plugin-firebasex --variable IOS_FIREBASE_SDK_VERSION=10.15.0
If you get build errors with this, make sure your local Cocoapods repo is up-to-date
Thanks man.
I have the same issue
and i have the same issue
Please use the solution above to resolve this issue with the Firebase SDK for iOS.
@peterdsp you removed and re-added the plugin with the new SDK version specified?
If that doesn't resolve it, also remove and re-add the iOS platform project:
cordova platform rm ios --nosave && cordova platform add ios --nosave
pod install
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Firebase/Firestore":
In Podfile:
Firebase/Firestore (= 10.0.15)
@peterdsp did you run pod repo update
(as instructed above) to update your local Cocoapods repo with the latest pod versions?
but it keeps not running with the same error
Build is not failing only if I change in FIRFirestoneSettings.mm
ABSL_CONST_INIT extern "C" const int64_t kFIRFirestoreCacheSizeUnlimited =
Settings::CacheSizeUnlimited;
to
extern "C" const int64_t kFIRFirestoreCacheSizeUnlimited =
Settings::CacheSizeUnlimited;
If using Cordova, make sure you're use the latest Cordova iOS platform version:
cordova platform rm ios && cordova platform add ios@latest
I dont use flutter is a native swift project, the error appeared after ios 17 & xcode 15 update
I dont use flutter is a native swift project
So you have to install the latest copapods using this,
cordova platform rm ios && cordova platform add ios@latest
cordova platform rm ios && cordova platform add ios@latest
I get this: Current working directory is not a Cordova-based project.
@peterdsp Is it a Cordova project?
Did you use the Cordova CLI to create the Xcode project?
@peterdsp
Here are the latest release versions of Firebase.
Link:- https://firebase.google.com/support/release-notes/ios
You have to update your Fireastore version to "Version 10.15.0"
.
This issue has been solved in the official Firebase-IOS-SDK.
Here is the link,
firebase/firebase-ios-sdk#11408
Found the solution!
add on podfile
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.15.0'
same issue
Locking this issue now as the solution above is clear
Closing as resolved