"Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteral" issue while installing react native on macOS Big Sur "Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteral" issue while installing react native on macOS Big Sur xcode xcode

"Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteral" issue while installing react native on macOS Big Sur


You need to exclude architecture arm64 if you are using M1 mac.Please check this image

Also add this code at the end of the pod file

post_install do |installer|    installer.pods_project.targets.each do |target|      target.build_configurations.each do |config|        config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"      end    end  end

Do pod install, Clean the build folder and restart the build it will resolve the issue.


What really worked for me, only add this Excluded Architectures and you will be fine, if you are using a Mac with M1 of course

enter image description here


I managed to resolve this issue by adding an empty swift file to the project in Xcode. This had the side effect of creating a bridging header file which (for me at least) got my project to compile.