This repository was archived by the owner on Sep 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 978
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
Copy link
Copy link
Closed
Description
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
JuanpaG94, ivan-khr85, ruslan-rra, bonlemuel, jeff86400 and 7 moreJuanpaG94, ivan-khr85, ruslan-rra, khattab93 and Talhaasif95JuanpaG94, ivan-khr85, ruslan-rra, khattab93 and Talhaasif95JuanpaG94, ivan-khr85, ruslan-rra, khattab93 and Talhaasif95
Metadata
Metadata
Assignees
Labels
No labels