Continuing the discussion from Undefined symbols for architecture x86_64 React Native Video SDK in iOS with @zoom/react-native-videosdk:
Description
I’m running into a similar issue. I can build and run the react-native-zoom-video-sdk example. To do that, I downloaded the latest SDK (zoom-video-sdk-iOS-1.6.2) and paired it with the react-native-zoom-video-sdk-1.5.3 example.
I then followed the steps, ran arch -x86_64 pod install
and arch -x86_64 yarn ios --simulator "iPhone 14"
, and it built properly.
However, when I try to follow the steps in my own app, it does not work.
- Install
@zoom/react-native-videosdk: "^1.5.3"
- Copy over the ZoomVideoSDK.xcframework and ZoomVideoSDKScreenShare.xcframework to ios/
- Run
arch -x86_64 pod install
← Successful. - Run
arch -x86_64 yarn ios --simulator "iPhone 14"
← Fails with the following error.
Errors
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ZoomVideoSDK", referenced from:
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomView.o)
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomVideoSdkChatHelper.o)
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomVideoSdkCmdChannel.o)
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomVideoSdkUser.o)
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomVideoSdkShareHelper.o)
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomVideoSdkLiveStreamHelper.o)
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomVideoSdkTestAudioDeviceHelper.o)
...
"_OBJC_CLASS_$_ZoomVideoSDKAudioOptions", referenced from:
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomVideoSdk.o)
"_OBJC_CLASS_$_ZoomVideoSDKExtendParams", referenced from:
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomVideoSdk.o)
"_OBJC_CLASS_$_ZoomVideoSDKInitParams", referenced from:
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomVideoSdk.o)
"_OBJC_CLASS_$_ZoomVideoSDKSessionContext", referenced from:
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomVideoSdk.o)
"_OBJC_CLASS_$_ZoomVideoSDKVideoOptions", referenced from:
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomVideoSdk.o)
"_OBJC_CLASS_$_ZoomVideoSDKVideoPreferenceSetting", referenced from:
objc-class-ref in libreact-native-zoom-video-sdk.a(RNZoomVideoSdkVideoHelper.o)
ld: symbol(s) not found for architecture x86_64
Which React Native Video SDK version?
1.5.3
Smartphone (please complete the following information):
- Device: Simulated iPhone 14
- OS: This is on a Mac M1 running 12.6