React-native upgrade associated type errors

Viewed 2700

I upgraded react-native

"react": "16.9.0",
"react-native": "0.61.4",

to

"react": "16.11.0",
"react-native": "0.62.2",

I did ala everything react native upgrade helper documents

https://react-native-community.github.io/upgrade-helper/?from=0.61.4&to=0.62.2

but I encountered these errors

"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

1 Answers

After upgrading to react-native 0.63.3 took the same error.

The root cause of this was my project only had objective-C files.

The solution is just to add an empty swift file under your project in xcode and all of your linking errors will be solved.

File -> New -> File

Select Swift File
Related