?升級(jí)Xcode13遇到的坑 解決記錄
1.Pods/Headers/Private/Flipper-Folly/folly/synchronization/DistributedMutex-inl.h:1051:5: 'atomic_notify_one<unsigned long>' is unavailable?
之前在Xcode12上也遇到過類似的問題
解決辦法,在podfile文件中進(jìn)行重寫和替換
de ffind_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
通過chmod 增加寫權(quán)限
然后進(jìn)行查找替換
?find_and_replace("Pods/Flipper-Folly/folly/synchronization/DistributedMutex-inl.h",
?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "atomic_notify_one(state)", "folly::atomic_notify_one(state)")