skip to Main Content

while doing flutter build ios / run flutter application on iphone getting the error as

Semantic Issue (Xcode): No member named ‘memory_order_relaxed’ in ‘std::memory_order’; did you mean ‘std::memory_order_relaxed’?
/Users/aswanthr/Downloads/ar_cbt/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/aswanthr/Downloads/ar_cbt/ios/Pods/leveldb-library/util/env_posix.cc:856:34

Could not build the application for the simulator.
Error launching application on iPhone 16 Pro Max.

This bug issues comes after downloading emulator 18.1 version today for flutter project

  1. Clean prject
  2. Rebuild
  3. tried to fix bug

2

Answers


  1. Here is this problem. Wait new version. https://github.com/invertase/react-native-firebase/issues/8082

    UPDATE: Have a new version.

    Login or Signup to reply.
  2. CocoaPods leveldb-library Compatibility Issue with Custom Commit
    If you’re trying to use a specific commit for the leveldb-library CocoaPods dependency, you may encounter compatibility issues like this:

        [!] CocoaPods could not find compatible versions for pod "leveldb-library":
      In snapshot (Podfile.lock):
        leveldb-library (= 1.22.5, ~> 1.22)
    
      In Podfile:
        leveldb-library (from `https://github.com/firebase/leveldb.git`, commit `f6272399648046e31749d77e9c548712168afcf1`)
    

    Add Podfile

    target 'Runner' do
      use_frameworks!
      use_modular_headers!
    
      flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
      pod 'leveldb-library', :git => 'https://github.com/firebase/leveldb.git', :commit => 'f6272399648046e31749d77e9c548712168afcf1'
    end
    

    This error occurs because the specified commit conflicts with the current locked version (e.g., 1.22.5) in Podfile.lock. Here’s a quick solution:

    Update Source Repositories: Run the following command to ensure your source repos are up-to-date:

    pod repo update
    rm Podfile.lock
    pod install --repo-update
    

    This should download and integrate the specified commit of leveldb-library. According to the Firebase team, this issue is expected to be resolved with version 1.22.6 in a few days. After this version is released, you should be able to use the latest version without specifying a commit

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search