Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

[solved] IOS Missing deps - atomic_notify_one<unsigned long> is unavailable #2281

@iddar

Description

@iddar

Solution

Remove Pods folder and Pods.lock file reinstall all dependencies and use lastest versions.

use_flipper!({ 'Flipper-Folly' => '2.6.7', 'Flipper-RSocket' => '1.4.3' , 'Flipper' => '0.88.0' })

and then make this changes use a script from here https://stackoverflow.com/a/67336115/10660145

# add before target 'xxxx' do
def find_and_replace(dir, findstr, replacestr)
  Dir[dir].each do |name|
      text = File.read(name)
      replace = text.gsub(findstr,replacestr)

      if text != replace
          puts "Fix: " + name
          system("chmod +w " + name)
          File.open(name, "w") { |file| file.puts replace }
          STDOUT.flush
      end
  end
  Dir[dir + '*/'].each(&method(:find_and_replace))
end

# ....
# ....

    flipper_post_install(installer)

   # add this line into post_install do |installer|
    find_and_replace("Pods/RCT-Folly/folly/synchronization/DistributedMutex-inl.h",
          "  atomic_notify_one(state);", "  folly::atomic_notify_one(state);")

🐛 Bug Report

I have a react native 0.64.0 project with fipper 0.88.0 if try build show this compile error

I follow steps in #2215 but don't resolve

▸ Compiling DistributedMutex.cpp

❌  /Volumes/disk/app/ios/Pods/Headers/Private/RCT-Folly/folly/synchronization/DistributedMutex-inl.h:1051:5: 
'atomic_notify_one<unsigned long>' is unavailable

    atomic_notify_one(state);
                   ^~~~~~~


▸ Compiling Demangle.cpp
** ARCHIVE FAILED **


The following build commands failed:
        CompileC /Users/user/Library/Developer/Xcode/DerivedData/aymbdgipiyzikgcwjklokmljfxvv/Build/Intermediates.noindex/ArchiveIntermediates/app/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RCT-Folly.build/Objects-normal/arm64/DistributedMutex.o /Volumes/disk/app/ios/Pods/RCT-Folly/folly/synchronization/DistributedMutex.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
[12:23:33]: Exit status: 65

To Reproduce

Run Build

Environment

  • IOS target version 12.0
  • Mac OS 11.3 (20E232) (M1)
  • Xcode 12.5 (12E262)
  • react 17.0.1
  • react-native 0.64.0
  • Cocoa pods 1.10.1
  • Fastlane 2.182.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions