I’m encountering an issue after updating Xcode on my macOS system. Previously, I was able to run my Flutter application on the iOS simulator without any problems. However, after the update, running flutter run results in build failures with semantic issues related to memory_order_relaxed. Here’s the detailed error message:
Launching lib/main.dart on iPhone 15 in debug mode...
Running pod install... 12,5s
Running Xcode build...
Xcode build done. 15,4s
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'?
/Users/denizozaltay/Projects/Nocket/ios/Pods/leveldb-library/util/env_posix.cc:839:33
Semantic Issue (Xcode): No member named 'memory_order_relaxed' in 'std::memory_order'; did you mean 'std::memory_order_relaxed'?
/Users/denizozaltay/Projects/Nocket/ios/Pods/leveldb-library/util/env_posix.cc:856:34
Could not build the application for the simulator.
Error launching application on iPhone 15.
Environment:
Flutter Version: Flutter 3.24.4
Xcode Version: Xcode 16.1
macOS Version: macOS 15.1
Clean Build: Ran flutter clean and tried rebuilding the project.
Pod Installation: Deleted the Pods folder and Podfile.lock, then ran pod install again.
2
Answers
Try them in order;
The leveldb-library cocoapod version with the fix was just released.
you will want to remove your Podfile.lock and pod install again in order to get the fix
https://github.com/invertase/react-native-firebase/issues/8082