Description
I created a custom capacitor plugin for zoom and I’m not able to include MobileRTCResources.bundle in Development pod.
In my podspec file, I added below line, this successfully added MobileRTC into my pod code
s.vendored_frameworks = “MobileRTC.xcframework”
But for including MobileRTCResources.bundle, I tried different podspec like .resource, resources, resource_bundles, etc. Nothing working
It is visible in xCode, however I’m getting below error when I try to initialise meeting SDK
2022-06-23 11:08:31.005900+0200 App[18225:552596] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: '* -[NSBundle initWithURL:]: nil URL argument’**
let context = MobileRTCSDKInitContext()
context.domain = "zoom.us"
context.enableLog = true
// context.bundleResPath = bundle.privateFrameworksPath!+“/ZoomMeetingSDK.framework” // If the ZoomManager is in the ZoomPod1 project, use this path. context.bundleResPath = bundle.bundlePath // If the Zoommanager is in the DevelopmentPod, use this path.
let sdkInitializedSuccessfully = MobileRTC.shared().initialize(context)
print ("SDK init: " + String(sdkInitializedSuccessfully))
if sdkInitializedSuccessfully == true, let authorizationService = MobileRTC.shared().getAuthService() {
print("Going to do SDK Auth ---> ")
//Set the delegate
authorizationService.delegate = self
authorizationService.jwtToken = sdkToken
authorizationService.sdkAuth()
}