rollbar/rollbar-react-native

iOS Build Errors

Closed this issue · 2 comments

Does this library support RN 0.67.2? App can't build on Xcode after:

yarn add rollbar-react-native
pod install

RN version: 0.67.2 (using an M1 Mac).

Error:
Undefined symbols for architecture x86_64:
"OBJC_CLASS$_FlipperKitNetworkPlugin", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_SKIOSNetworkAdapter", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_FlipperKitReactPlugin", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_FlipperClient", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_SKDescriptorMapper", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_FlipperKitLayoutPlugin", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_RCTBridge", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_RCTBundleURLProvider", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_FKUserDefaultsPlugin", referenced from:
objc-class-ref in AppDelegate.o
"OBJC_CLASS$_RCTRootView", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Undefined symbol: OBJC_CLASS$_FlipperKitNetworkPlugin

Undefined symbol: OBJC_CLASS$_SKIOSNetworkAdapter

Undefined symbol: OBJC_CLASS$_FlipperKitReactPlugin

Undefined symbol: OBJC_CLASS$_FlipperClient

Undefined symbol: OBJC_CLASS$_SKDescriptorMapper

Undefined symbol: OBJC_CLASS$_FlipperKitLayoutPlugin

Undefined symbol: OBJC_CLASS$_RCTBridge

Undefined symbol: OBJC_CLASS$_RCTBundleURLProvider

Undefined symbol: OBJC_CLASS$_FKUserDefaultsPlugin

Undefined symbol: OBJC_CLASS$_RCTRootView

Removing Rollbar fixes the build.

yarn remove rollbar-react-native
pod install

v1.0.0-beta.0 is now available. https://github.com/rollbar/rollbar-react-native/releases/tag/v1.0.0-beta.0

This is expected to be fully compatible with iOS build targets, as well as web-only targets and @rollbar/react. Please report any issues. Note that there are breaking changes between v0.9.3 and this 1.0.0 beta. See the updated SDK guide and the migration guide for details.