Sample app not working

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

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.

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

Thanks!
Michael

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

MobileRTC.shared().initialize(mainSDK)

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

print(MobileRTC.shared().mobileRTCVersion)

authService?.delegate = self

authService?.clientKey = “sdkKey”

authService?.clientSecret = “sdkSecret”

authService?.sdkAuth()

I downloaded swift demo app form GitHub Link (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

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