Ios build fails with symbol(s) not found for architecture x86_64 while integrating flipper
I am trying to integrate flipper with my react native app. Although the integration is successful for android the build but it fails for ios with below error. I am using react native 0.62.2
Undefined symbols for architecture x86_64: "associated type descriptor for Swift.ExpressibleByFloatLiteral.FloatLiteralType", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByFloatLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "associated type descriptor for Swift.ExpressibleByIntegerLiteral.IntegerLiteralType", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByIntegerLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "value witness table for Builtin.Int32", referenced from: full type metadata for __C.YGUnit in libYogaKit.a(YGLayoutExtensions.o) "protocol witness table for Swift.Float : Swift._ExpressibleByBuiltinFloatLiteral in Swift", referenced from: associated type witness table accessor for Swift.ExpressibleByFloatLiteral.FloatLiteralType : Swift._ExpressibleByBuiltinFloatLiteral in __C.YGValue : Swift.ExpressibleByFloatLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "Swift.Float.init(Swift.Double) -> Swift.Float", referenced from: static (extension in YogaKit):CoreGraphics.CGFloat.% postfix(CoreGraphics.CGFloat) -> __C.YGValue in libYogaKit.a(YGLayoutExtensions.o) (extension in YogaKit):__C.YGValue.init(CoreGraphics.CGFloat) -> __C.YGValue in libYogaKit.a(YGLayoutExtensions.o) "protocol witness table for Swift.Int : Swift._ExpressibleByBuiltinIntegerLiteral in Swift", referenced from: associated type witness table accessor for Swift.ExpressibleByIntegerLiteral.IntegerLiteralType : Swift._ExpressibleByBuiltinIntegerLiteral in __C.YGValue : Swift.ExpressibleByIntegerLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "protocol descriptor for Swift.ExpressibleByFloatLiteral", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByFloatLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "method descriptor for Swift.ExpressibleByFloatLiteral.init(floatLiteral: A.FloatLiteralType) -> A", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByFloatLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "associated conformance descriptor for Swift.ExpressibleByFloatLiteral.Swift.ExpressibleByFloatLiteral.FloatLiteralType: Swift._ExpressibleByBuiltinFloatLiteral", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByFloatLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "protocol descriptor for Swift.ExpressibleByIntegerLiteral", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByIntegerLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "method descriptor for Swift.ExpressibleByIntegerLiteral.init(integerLiteral: A.IntegerLiteralType) -> A", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByIntegerLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "associated conformance descriptor for Swift.ExpressibleByIntegerLiteral.Swift.ExpressibleByIntegerLiteral.IntegerLiteralType: Swift._ExpressibleByBuiltinIntegerLiteral", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByIntegerLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "_swift_FORCE_LOAD$_swiftCompatibility50", referenced from: _swift_FORCE_LOAD$swiftCompatibility50$_YogaKit in libYogaKit.a(YGLayoutExtensions.o) (maybe you meant: _swift_FORCE_LOAD$swiftCompatibility50$_YogaKit) "_swift_FORCE_LOAD$_swiftCompatibilityDynamicReplacements", referenced from: _swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_YogaKit in libYogaKit.a(YGLayoutExtensions.o) (maybe you meant: _swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_YogaKit) "_swift_getForeignTypeMetadata", referenced from: type metadata accessor for __C.YGValue in libYogaKit.a(YGLayoutExtensions.o) type metadata accessor for __C.YGUnit in libYogaKit.a(YGLayoutExtensions.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I believe Flipper is integrated out of the box if you have RN 0.62, but I may misunderstand something
cc. @mweststrate
Correct, you should need to install anything. If you are upgrading a project make sure to use the react native upgrade helper to get the correct configs
On Thu, 21 May 2020, 15:52 Chaiwat Ekkaewnumchai, [email protected] wrote:
I believe Flipper is integrated out of the box if you have RN 0.62, but I may misunderstand something
cc. @mweststrate https://github.com/mweststrate
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/facebook/flipper/issues/1178#issuecomment-632130121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4NBEUKDZ3W4MGZQUMP2TRSU5ZXANCNFSM4NGEUBAA .
Make sure to upgrade to [email protected], as it contains some fixes regarding ios builds.
Closing for now, feel free to comment if the issue couldn't be solved with the latest version.
I am trying to integrate flipper with my react native app. Although the integration is successful for android the build but it fails for ios with below error. I am using react native 0.62.2
Undefined symbols for architecture x86_64: "associated type descriptor for Swift.ExpressibleByFloatLiteral.FloatLiteralType", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByFloatLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "associated type descriptor for Swift.ExpressibleByIntegerLiteral.IntegerLiteralType", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByIntegerLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "value witness table for Builtin.Int32", referenced from: full type metadata for __C.YGUnit in libYogaKit.a(YGLayoutExtensions.o) "protocol witness table for Swift.Float : Swift._ExpressibleByBuiltinFloatLiteral in Swift", referenced from: associated type witness table accessor for Swift.ExpressibleByFloatLiteral.FloatLiteralType : Swift._ExpressibleByBuiltinFloatLiteral in __C.YGValue : Swift.ExpressibleByFloatLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "Swift.Float.init(Swift.Double) -> Swift.Float", referenced from: static (extension in YogaKit):CoreGraphics.CGFloat.% postfix(CoreGraphics.CGFloat) -> __C.YGValue in libYogaKit.a(YGLayoutExtensions.o) (extension in YogaKit):__C.YGValue.init(CoreGraphics.CGFloat) -> __C.YGValue in libYogaKit.a(YGLayoutExtensions.o) "protocol witness table for Swift.Int : Swift._ExpressibleByBuiltinIntegerLiteral in Swift", referenced from: associated type witness table accessor for Swift.ExpressibleByIntegerLiteral.IntegerLiteralType : Swift._ExpressibleByBuiltinIntegerLiteral in __C.YGValue : Swift.ExpressibleByIntegerLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "protocol descriptor for Swift.ExpressibleByFloatLiteral", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByFloatLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "method descriptor for Swift.ExpressibleByFloatLiteral.init(floatLiteral: A.FloatLiteralType) -> A", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByFloatLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "associated conformance descriptor for Swift.ExpressibleByFloatLiteral.Swift.ExpressibleByFloatLiteral.FloatLiteralType: Swift._ExpressibleByBuiltinFloatLiteral", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByFloatLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "protocol descriptor for Swift.ExpressibleByIntegerLiteral", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByIntegerLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "method descriptor for Swift.ExpressibleByIntegerLiteral.init(integerLiteral: A.IntegerLiteralType) -> A", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByIntegerLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "associated conformance descriptor for Swift.ExpressibleByIntegerLiteral.Swift.ExpressibleByIntegerLiteral.IntegerLiteralType: Swift._ExpressibleByBuiltinIntegerLiteral", referenced from: protocol conformance descriptor for __C.YGValue : Swift.ExpressibleByIntegerLiteral in YogaKit in libYogaKit.a(YGLayoutExtensions.o) "_swift_FORCE_LOAD$_swiftCompatibility50", referenced from: _swift_FORCE_LOAD$swiftCompatibility50$_YogaKit in libYogaKit.a(YGLayoutExtensions.o) (maybe you meant: _swift_FORCE_LOAD$swiftCompatibility50$_YogaKit) "_swift_FORCE_LOAD$_swiftCompatibilityDynamicReplacements", referenced from: _swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_YogaKit in libYogaKit.a(YGLayoutExtensions.o) (maybe you meant: _swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_YogaKit) "_swift_getForeignTypeMetadata", referenced from: type metadata accessor for __C.YGValue in libYogaKit.a(YGLayoutExtensions.o) type metadata accessor for __C.YGUnit in libYogaKit.a(YGLayoutExtensions.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
hello! did you find a solution?
For future readers: please don't comment on closed issues as they offer limited exposure. Rather open new issues detailing dependency versions and build setup after checking our troubleshooting guide: https://fbflipper.com/docs/troubleshooting/#react-native
Hey Me too getting this issue. Can you please help us!
Following the instructions in this thread fixed the issue for me: https://developer.apple.com/forums/thread/655438