# MobileRTCResources.bundle in Development pod

**URL:** <https://devforum.zoom.us/t/mobilertcresources-bundle-in-development-pod/71003>\
**Category:** iOS\
**Created:** [June 23, 2022, 11:27am UTC](https://devforum.zoom.us/t/mobilertcresources-bundle-in-development-pod/71003 "2022-06-23T11:27:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aralic](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@aralic](https://devforum.zoom.us/u/aralic)\
**Post date:** [June 23, 2022, 11:27am UTC](https://devforum.zoom.us/t/mobilertcresources-bundle-in-development-pod/71003/1 "2022-06-23T11:27:51Z")

</div>

**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’\*\*

\*\*\*\*\* First throw call stack:\*\*

**(0x180e1bd0c 0x19860cee4 0x18253cbe4 0x1825135e0 0x105a9b370 0x101fbdfc8 0x101fbf934 0x105a9b174 0x1065a0ba0 0x10759566c 0x10757f8d8 0x107731294 0x10772b2d4 0x10779d6bc 0x10779d234 0x106716698 0x105de925c 0x106625484 0x106685038 0x106684eec 0x10667e3a8 0x10667db04 0x106572d10 0x106572cdc 0x105ac735c 0x1824cdea8 0x180e30258 0x180db9af8 0x180db46b0 0x180d943a4 0x180da7240 0x1a1891988 0x1835a741c 0x183340b88 0x100fb4b58 0x1010483d0)**

**libc++abi: terminating with uncaught exception of type NSException**

dyld4 config: DYLD\_LIBRARY\_PATH=/usr/lib/system/introspection DYLD\_INSERT\_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib

terminating with uncaught exception of type NSException

\*\*\* Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘\*\*\* -[NSBundle initWithURL:]: nil URL argument’

**Which iOS Meeting SDK version?**  
zoom-sdk-ios-5.10.6.3611

**Smartphone (please complete the following information):**

- Device: iPhone 7
- OS: iOS 15.5

---

<div class="post-metadata">

**Author:** ![aralic](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@aralic](https://devforum.zoom.us/u/aralic)\
**Post date:** [June 23, 2022, 12:39pm UTC](https://devforum.zoom.us/t/mobilertcresources-bundle-in-development-pod/71003/2 "2022-06-23T12:39:18Z")

</div>

There is a post with the exact same issue [Including the MobileRTC.xcframework & MobileRTCResources.bundle in Development pod](https://devforum.zoom.us/t/including-the-mobilertc-xcframework-mobilertcresources-bundle-in-development-pod/63562)

@[sambasiva.r.dodigam](https://devforum.zoom.us/u/sambasiva.r.dodigam)

---

<div class="post-metadata">

**Author:** ![sambasiva.r.dodigam](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sambasiva.r.dodigam](https://devforum.zoom.us/u/sambasiva.r.dodigam)\
**Post date:** [June 23, 2022, 2:35pm UTC](https://devforum.zoom.us/t/mobilertcresources-bundle-in-development-pod/71003/3 "2022-06-23T14:35:55Z")

</div>

I was able to fix this issue with the help for Zoom iOS developers

Pod::Spec.new do |s|  
s.name = ‘ZoomMeetingSDK’  
s.version = ‘0.1.0’  
s.summary = ‘A short description of ZoomPod1.’

s.description = \<\<-DESC  
TODO: Add long description of the pod here.  
DESC

s.homepage = ‘[Sambsiva · GitHub](https://github.com/Sambsiva) Rao/ZoomPod1’

# s.screenshots = ‘[www.example.com/screenshots\_1](http://www.example.com/screenshots_1)’, ‘[www.example.com/screenshots\_2](http://www.example.com/screenshots_2)’

s.license = { :type =\> ‘MIT’, :file =\> ‘LICENSE’ }  
s.author = { ‘Sambsiva Rao’ =\> ‘’ }  
s.source = { :git =\> ‘[Sambsiva · GitHub](https://github.com/Sambsiva) Rao/ZoomPod1.git’, :tag =\> s.version.to\_s }

# s.social\_media\_url = ‘[https://twitter.com/](https://twitter.com/)\<TWITTER\_USERNAME\>’

s.ios.deployment\_target = ‘9.0’

s.source\_files = ‘ZoomPod1/Classes/\*\*/\*’

s.vendored\_frameworks = “lib/MobileRTC.xcframework”  
s.resources = ‘lib/MobileRTCResources.bundle’

s.pod\_target\_xcconfig = { ‘EXCLUDED\_ARCHS[sdk=iphonesimulator\*]’ =\> ‘arm64’ }  
s.user\_target\_xcconfig = { ‘EXCLUDED\_ARCHS[sdk=iphonesimulator\*]’ =\> ‘arm64’ }  
end

```
    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()
    }

```

 ![Screenshot 2022-06-23 at 7.35.02 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/6/967d54d9a45f9df49e2c74853ceb7c2aa15dbfae.png)

---

<div class="post-metadata">

**Author:** ![aralic](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@aralic](https://devforum.zoom.us/u/aralic)\
**Post date:** [June 23, 2022, 3:27pm UTC](https://devforum.zoom.us/t/mobilertcresources-bundle-in-development-pod/71003/4 "2022-06-23T15:27:26Z")

</div>

> [@sambasiva.r.dodigam](#):
>
> context.bundleResPath = bundle.privateFrameworksPath!+“/ZoomMeetingSDK.framework”

That worked for me! Thanks man!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 24, 2022, 1:28am UTC](https://devforum.zoom.us/t/mobilertcresources-bundle-in-development-pod/71003/5 "2022-07-24T01:28:17Z")

</div>

Closed on July 24, 2022, 1:28am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
