# Sample app not working

**URL:** <https://devforum.zoom.us/t/sample-app-not-working/30544>\
**Category:** iOS\
**Created:** [September 17, 2020, 9:12am UTC](https://devforum.zoom.us/t/sample-app-not-working/30544 "2020-09-17T09:12:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![virtualblessing](https://avatars.discourse-cdn.com/v4/letter/v/8baadc/32.png) [@virtualblessing](https://devforum.zoom.us/u/virtualblessing)\
**Post date:** [September 17, 2020, 9:12am UTC](https://devforum.zoom.us/t/sample-app-not-working/30544/1 "2020-09-17T09:12:16Z")

</div>

**Description**  
Hi,  
just download SDK and run sample app to my device, it shows **Unable to install "MobileRTCSample"**

sdk Latest : v5.0.24433.0616

Xcode : 11.6 (11E708)

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

- iPhone 6s

 ![Screenshot 2020-09-17 at 2.32.09 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8fc5b8bbd17aea8149184b2b4af070915b00aa19.png)

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 18, 2020, 6:04pm UTC](https://devforum.zoom.us/t/sample-app-not-working/30544/2 "2020-09-18T18:04:04Z")

</div>

Hey @virtualblessing

Thanks for using the dev forum!

Normally this happens because Xcode cannot find the framework at run time.

Make sure you select “Embed and Sign” next to MobileRTC.framework in the “Frameworks, Libraries, and Embedded Content” section of MobileRTCSample -\> General.

 ![Screen Shot 2020-09-18 at 12.02.53 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/b3061e4ba42a1e2cd5e84e6c170d438043903f4e.png)

If the problem persists with these settings, let me know and we can debug together 🙂

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![virtualblessing](https://avatars.discourse-cdn.com/v4/letter/v/8baadc/32.png) [@virtualblessing](https://devforum.zoom.us/u/virtualblessing)\
**Post date:** [September 19, 2020, 7:33am UTC](https://devforum.zoom.us/t/sample-app-not-working/30544/3 "2020-09-19T07:33:57Z")

</div>

Thanks It’s work. but i have another issue while auth verification.  
issue : “ **reason: '** \* -[NSBundle initWithURL:]: nil URL argument’\*\*”  
My code : **let** mainSDK = MobileRTCSDKInitContext()

mainSDK.domain = “[zoom.us](http://zoom.us)”

MobileRTC.shared().initialize(mainSDK)

**let** authService = MobileRTC.shared().getAuthService()

print(MobileRTC.shared().mobileRTCVersion)

authService?.delegate = **self**

authService?.clientKey = “sdkKey”

authService?.clientSecret = “sdkSecret”

authService?.sdkAuth()

---

<div class="post-metadata">

**Author:** ![virtualblessing](https://avatars.discourse-cdn.com/v4/letter/v/8baadc/32.png) [@virtualblessing](https://devforum.zoom.us/u/virtualblessing)\
**Post date:** [September 21, 2020, 6:52am UTC](https://devforum.zoom.us/t/sample-app-not-working/30544/4 "2020-09-21T06:52:14Z")

</div>

I downloaded swift demo app form GitHub Link ([https://github.com/zoom/client-sdk-iOS-getting-started](https://github.com/zoom/client-sdk-iOS-getting-started)). I run both demo app objectC and swift i got this errors

**Showing Recent Issues**

Undefined symbol: _OBJC\_CLASS_$\_MobileRTCSDKInitContext

Undefined symbol: _OBJC\_CLASS_$\_MobileRTCMeetingStartParam4LoginlUser

Undefined symbol: _OBJC\_CLASS_$\_MobileRTCMeetingJoinParam

Undefined symbol: _OBJC\_CLASS_$\_MobileRTC

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 24, 2020, 4:07pm UTC](https://devforum.zoom.us/t/sample-app-not-working/30544/5 "2020-09-24T16:07:47Z")

</div>

Hey @virtualblessing

For your first question, I do not advice using optionals for the initialization process. A race condition is possible when not unwrapping during the initialization process. Instead, you should do the following:

```
    let context = MobileRTCSDKInitContext()
    context.domain = "zoom.us"
    context.enableLog = true

    let sdkInitializedSuccessfully = MobileRTC.shared().initialize(context)

    if sdkInitializedSuccessfully == true, let authorizationService = MobileRTC.shared().getAuthService() {
        print(MobileRTC.shared().mobileRTCVersion)
        authorizationService.clientKey = sdkKey
        authorizationService.clientSecret = sdkSecret

        authorizationService.delegate = self
        authorizationService.sdkAuth()
    }

```

For your second error: Did you modify anything within the repo before running? You should be able to clone the repo and run either project without modification. Usually, when those errors happen, the framework is not embedded correctly or is expected to be in a different location.

Thanks!  
Michael
