-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cloud_firestore: No member named 'memory_order_relaxed' #13564
Comments
Same issue |
Hey @alistair-riskmemo - try dropping Cocoapods. See this comment: #13563 (comment) Next, you will want to ensure you're pulling latest level-db Pod. Try the following:
You're aiming for level-db 1.22.6 which is a transitive dependency that you can see in your ios/Podfile.lock. Let me know if this resolves your issue 👍 |
Hi @russellwheatley, thanks for your help. After doing that it's started throwing different errors. I tried removing the test project and starting again from scratch as well. I'm getting this a lot now: Either way, I think the original error will still remain. 1.22.6 is elsewhere in the Podfile.lock, but it's FirebaseFirestoreInternal depending on 1.22 which is causing the original error:
|
It's issue #13563 I'm getting now. I just updated to the latest cocoapods 1.16.1 |
@alistair-riskmemo drop cocoapods down to v1.15.2 |
@russellwheatley with an update to leveldb-library and this below, things are fine on full-current stuff. Exciting times when the build toolchains update! [note: this was edited to be Add this to your Podfile if you want a workaround, note you may already have a post_install section, so you would just use the inner part(s): post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'abseil'
Pod::UI.puts "Workaround: Configuring abseil to use gnu++14 language standard for cocoapods 1.16+ compatibility".yellow
Pod::UI.puts " Remove workaround when upstream issue fixed https://github.com/firebase/firebase-ios-sdk/issues/13996".yellow
target.build_configurations.each do |config|
config.build_settings['CLANG_CXX_LANGUAGE_STANDARD'] = 'gnu++14'
end
end You will need to run |
Hey @alistair-riskmemo. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 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! |
Is there an existing issue for this?
Which plugins are affected?
Database
Which platforms are affected?
iOS
Description
What I expected to happen:
Run a test project on my iOS device
What actually happened:
Failed to build iOS app
Semantic Issue (Xcode): No member named 'memory_order_relaxed' in 'std::memory_order'; did you mean 'std::memory_order_relaxed'?
Pod FirebaseFirestoreInternal uses Leveldb-library 1.22 which has a semantics error in leveldb-library/util/env_posix.cc:839:33
Reproducing the issue
flutter create test_project
cd test_project
flutter pub add firebase_core
flutter pub add cloud_firestore
flutter run
Firebase Core version
3.6.0
Flutter Version
3.24.3
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
alistairscott@Alistairs-Mac-mini test_project % flutter doctor -v
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.1 24B83 darwin-arm64, locale en-IN)
• Flutter version 3.24.3 on channel stable at /Users/alistairscott/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2663184aa7 (7 weeks ago), 2024-09-11 16:27:48 -0500
• Engine revision 36335019a8
• Dart version 3.5.3
• DevTools version 2.37.3
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/alistairscott/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /opt/homebrew/opt/openjdk@17/bin/java
• Java version OpenJDK Runtime Environment Homebrew (build 17.0.13+0)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16B40
• CocoaPods version 1.16.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
[✓] VS Code (version 1.95.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.98.0
[✓] Connected device (4 available)
• Alistair’s iPhone (mobile) • 00008110-001C481A1147801E • ios • iOS 18.0.1 22A3370
• macOS (desktop) • macos • darwin-arm64 • macOS 15.1 24B83 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.1 24B83 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 130.0.6723.70
[✓] Network resources
• All expected network resources are available.
• No issues found!
The text was updated successfully, but these errors were encountered: