ios - React-native 升级相关类型错误

标签 ios swift xcode react-native

我升级了 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:
enter image description here

最佳答案

升级到 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/

相关文章:

iphone - 在 objective-c 中枚举具有固定长度的 nsstring 的所有子字符串

ios - 使用非可选对象,而 swift 认为它是可选的

swift - 不调用滑动手势 Action

ios - 如何在swift中比较两个字符串?

ios - 操作系统 X : Scene is unreachable due to lack of entry points

ios - 地理定位在 iOS 8 模拟器中不起作用

ios - 将重复消息存储在 XMPPMessageArchiving_Message_CoreDataObject 中(单聊)

ios - uitableview 中的 Uilabel 在调试模拟器颜色混合层中不显示不透明而不透明

ios - ITC.apps.validation.screenshot itunes 连接 iPhone 6 截图是必需的

objective-c - 通过另一个托管对象数组过滤一个托管对象数组