ViroReact 2.9.0 Xcode build failed

Environment

Please provide the following information about your environment:

  1. OS: Mac
  2. Platform: iOS
  3. Version: ViroReact version: 2.9.0 and React Native version: 0.55.1
  4. Device(s): iPhone 7s

Description

After upgrading from ViroReact 2.8.1 to 2.9.0 I get this error while building during link process with Xcode:

Undefined symbols for architecture arm64:
“VROText::VROText(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, int, VROFontStyle, VROFontWeight, VROVector4f, float, VROTextOuterStroke, int, VROVector4f, float, float, VROTextHorizontalAlignment, VROTextVerticalAlignment, VROLineBreakMode, VROTextClipMode, int, std::__1::shared_ptr)”, referenced from:
std::__1::shared_ptr std::__1::shared_ptr::make_shared<std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&, int&, VROFontStyle, VROFontWeight, VROVector4f&, float, VROTextOuterStroke, int, VROVector4f&, float&, float&, VROTextHorizontalAlignment, VROTextVerticalAlignment, VROLineBreakMode, VROTextClipMode, int, std::__1::shared_ptr >(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> >&&&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >&&&, int&&&, VROFontStyle&&, VROFontWeight&&, VROVector4f&&&, float&&, VROTextOuterStroke&&, int&&, VROVector4f&&&, float&&&, float&&&, VROTextHorizontalAlignment&&, VROTextVerticalAlignment&&, VROLineBreakMode&&, VROTextClipMode&&, int&&, std::__1::shared_ptr&&) in libViroReact.a(VRTText.o)
“VRONodeCamera::setRefNodeToCopyRotation(std::__1::shared_ptr)”, referenced from:
-[VRTCamera initWithBridge:] in libViroReact.a(VRTCamera.o)
“VRONode::setHighAccuracyEvents(bool)”, referenced from:
-[VRTNode setHighAccuracyEvents:] in libViroReact.a(VRTNode.o)
“VROPolygon::createPolygon(std::__1::vector<VROVector3f, std::__1::allocator >, std::__1::vector<std::__1::vector<VROVector3f, std::__1::allocator >, std::__1::allocator<std::__1::vector<VROVector3f, std::__1::allocator > > >, float, float, float, float)”, referenced from:
-[VRTPolygon updateGeometry] in libViroReact.a(VRTPolygon.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I also did a Clean Build Folder....
After downgrading to ViroReact 2.8.1 the build succeeded.

1 possible answer(s) on “ViroReact 2.9.0 Xcode build failed