我升级了 react-native
"react": "16.9.0",
"react-native": "0.61.4",
到"react": "16.11.0",
"react-native": "0.62.2",
我做了一切都 react 原生升级帮助文件https://react-native-community.github.io/upgrade-helper/?from=0.61.4&to=0.62.2
但我遇到了这些错误
"associated type descriptor for Swift.ExpressibleByFloatLiteral.FloatLiteralType", referenced from:
"associated type descriptor for Swift.ExpressibleByIntegerLiteral.IntegerLiteralType", referenced from:
"value witness table for Builtin.Int32", referenced from:
最佳答案
升级到 react-native 0.63.3 后出现同样的错误。
根本原因是我的项目只有 objective-c 文件。
解决方案只是在 xcode 中的项目下添加一个空的 swift 文件,您的所有链接错误都将得到解决。
File -> New -> File
Select Swift File
关于ios - React-native 升级相关类型错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62635565/