# Sample project not running in iOS

**URL:** <https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143>\
**Category:** iOS\
**Created:** [August 3, 2021, 9:20am UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143 "2021-08-03T09:20:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vp-ecommerce](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vp-ecommerce/32/17849_2.png) [@vp-ecommerce](https://devforum.zoom.us/u/vp-ecommerce)\
**Post date:** [August 3, 2021, 9:20am UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/1 "2021-08-03T09:20:50Z")

</div>

**Description**  
When I downloaded iOS client sdk version **v5.5.12511.0421**. Then I unzipped the file and open **MobileRTCSample.xcodeproj**. Then try to run in iOS version **13.6**. Then I am getting errors as:  
\*\* An empty identity is not valid when signing a binary for the product type ‘App Extension’. \*\*  
\*\* An empty identity is not valid when signing a binary for the product type ‘Application’.\*\*

So I am not able to even run the project. My xcode version is **12.4 (12D4e)**.

Please help me to get out of this problem.

---

<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:** [August 4, 2021, 7:32pm UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/2 "2021-08-04T19:32:09Z")

</div>

Hey @vp-ecommerce,

Thanks for using the dev forum!

This has to do with code signing. Navigate to the MobileRTCSample target → Code Signing & Capabilities, then provide a provisioning profile. I usually just use the “Automatically manage signing” button. Set the team to be your team/you. In the bundle identifier text field, provide a unique bundle ID. In that same page under App Groups → uncheck the currently selected app group ID and click your app group ID. Now do the same thing for the MobileRTCSampleScreenShare target (note these must have different bundle ID’s. I usually just append “.screenshare” to the end of the first bundleID for my screenshare bundle ID).

Next go to your build settings of the MobileRTCSample target and search “code signing”. Under “Code signing identity” each one of those options must be populated with a code signing identity. Since I use “automatically manage signing” and I have no intention of shipping this app, I set each one of these values to “Apple Development”. Repeat this process for the screenshare target as well.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![vp-ecommerce](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vp-ecommerce/32/17849_2.png) [@vp-ecommerce](https://devforum.zoom.us/u/vp-ecommerce)\
**Post date:** [August 9, 2021, 7:59am UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/3 "2021-08-09T07:59:16Z")

</div>

Hi Michael  
Thanks for the solution.

Can I got the sample project in swift?  
Or Can you please provide me the steps to run this sdk in a swift project.

Please help me.

---

<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:** [August 9, 2021, 7:49pm UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/4 "2021-08-09T19:49:58Z")

</div>

Hey @vp-ecommerce,

We do not yet have a swift version of that application quite yet. However, if there are any features in the sample application you would like swift code for, I am more than happy to translate it for you.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![vp-ecommerce](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vp-ecommerce/32/17849_2.png) [@vp-ecommerce](https://devforum.zoom.us/u/vp-ecommerce)\
**Post date:** [August 10, 2021, 5:13am UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/5 "2021-08-10T05:13:56Z")

</div>

Hi Michael  
My use case is to join a meeting in my own ViewController. So that I can add more views in my ViewController.

**meetingService.joinMeeting(with: joinMeetingParameters)** When I join meeting using this, it opens meeting in some anonymous ViewController(or screen). I am unable to add any view in this.

Please provide me a way to open meeting in a ViewController in which I can add any view through storyboard.

Please provide me a simple solution that would be very great.

---

<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:** [August 10, 2021, 9:01pm UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/6 "2021-08-10T21:01:24Z")

</div>

Hey @vp-ecommerce,

If you chose to keep the defaultUI and not create a custom UI, it will handle presentation for you. However, you can get the UIView for the meeting by grabbing the meetingView property: [iOS API: MobileRTCMeetingService Class Reference](https://marketplacefront.zoom.us/sdk/meeting/ios/interface_mobile_r_t_c_meeting_service.html#aed67c6f05fc61f8b4b64be4c161b4934)

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![vp-ecommerce](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vp-ecommerce/32/17849_2.png) [@vp-ecommerce](https://devforum.zoom.us/u/vp-ecommerce)\
**Post date:** [August 11, 2021, 6:32am UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/7 "2021-08-11T06:32:16Z")

</div>

How to add meeting ui in my viewcontroller ?

We have already implemented **jitsi** for meeting in our application. Now we are planning to integrate **Zoom**.  
Below is the video link of demo of our application (See video from **3:35** minute):  
In video, we can see that there is lots of UI in top of meeting. Here what we have done that In a viewController, we add a **jitsi** view and some more view according to our need.

[![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/e/2e41231e225b3dc1218d4f51014fb2cbf4face68.jpeg "Demonstration of doctor app") ](https://www.youtube.com/watch?v=wvnyRCCzOD4)

How to achieve this using zoom ? Please help me.

---

<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:** [August 11, 2021, 6:12pm UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/8 "2021-08-11T18:12:57Z")

</div>

Hey @vp-ecommerce,

Do you want the UI to look like the Zoom iOS application UI or to look like the UI above?  
The SDK provides two options for UI, one that is default and will look and feel like the Zoom iOS app. Then one that is custom where you can build the entire UI yourself.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![vp-ecommerce](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vp-ecommerce/32/17849_2.png) [@vp-ecommerce](https://devforum.zoom.us/u/vp-ecommerce)\
**Post date:** [August 12, 2021, 7:26am UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/9 "2021-08-12T07:26:21Z")

</div>

Yes I want the UI look like the UI above. Please provide me a small documentation (step by step). So that I can achieve my use case. Please help me.

---

<div class="post-metadata">

**Author:** ![vp-ecommerce](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vp-ecommerce/32/17849_2.png) [@vp-ecommerce](https://devforum.zoom.us/u/vp-ecommerce)\
**Post date:** [August 12, 2021, 8:25am UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/10 "2021-08-12T08:25:08Z")

</div>

And also I don’t want to just customized the meeting UI. I want to add meeting UI in my own ViewController. So that I could do lots of stuff in my ViewController.

Please tell me how to achieve this??

---

<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:** [August 12, 2021, 6:37pm UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/11 "2021-08-12T18:37:25Z")

</div>

Hey @vp-ecommerce,

I do not believe it is possible to keep the default UI and also embed it in another ViewController.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![vp-ecommerce](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vp-ecommerce/32/17849_2.png) [@vp-ecommerce](https://devforum.zoom.us/u/vp-ecommerce)\
**Post date:** [August 13, 2021, 5:48am UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/12 "2021-08-13T05:48:45Z")

</div>

Can I achieve my use case using custom UI or anything?. If yes, please give me a proper documentation of this. This would be very great.

---

<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:** [August 13, 2021, 9:33pm UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/13 "2021-08-13T21:33:52Z")

</div>

Hey @vp-ecommerce,

Yes this can be achieved using Custom UI. The documentation for this can be found here: [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/customized-in-meeting-ui/overview](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/customized-in-meeting-ui/overview)

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![vp-ecommerce](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vp-ecommerce/32/17849_2.png) [@vp-ecommerce](https://devforum.zoom.us/u/vp-ecommerce)\
**Post date:** [August 14, 2021, 5:23am UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/14 "2021-08-14T05:23:09Z")

</div>

Means it’s possible to embed the meeting UI in my own ViewController while using custom UI ?

And also can you please provide me any github link or tutorial of **Custom UI**. It’s very difficult to follow the **marketplace documentation**.

---

<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:** [August 17, 2021, 7:16pm UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/15 "2021-08-17T19:16:36Z")

</div>

Hey @vp-ecommerce,

Yes, with a custom UI you build out the meeting UI however/wherever you would like. We are aware the custom ui docs are in need of an update and we are trying to provide that soon. In the meantime, here is a thread where I walked through how to set it up using Swift:

> [@I want to add a custom button in the meeting option toolbar in my zoom app in ios. I see there are provisions to hide or show the toolbar or even specific buttons. But is there any way to add a custom button in the toolbar under more in IOS?](https://devforum.zoom.us/t/i-want-to-add-a-custom-button-in-the-meeting-option-toolbar-in-my-zoom-app-in-ios-i-see-there-are-provisions-to-hide-or-show-the-toolbar-or-even-specific-buttons-but-is-there-any-way-to-add-a-custom-button-in-the-toolbar-under-more-in-ios/50662/11):
>
> Hey @zacob, My storyboard is a little complicated because it has lots of buttons and other views, but I basically have 2 UIViews that have a hardcoded size. One view is for rendering the local user’s view, and one is for rendering the remote user’s view. static func localUserVideoView(\_ videoAspect: MobileRTCVideoAspect, frame: CGRect) -\> MobileRTCVideoView? { guard let meetingService = MobileRTC.shared().getMeetingService() else { return nil } let localUserID = meetingSer…

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![vp-ecommerce](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vp-ecommerce/32/17849_2.png) [@vp-ecommerce](https://devforum.zoom.us/u/vp-ecommerce)\
**Post date:** [August 18, 2021, 5:05pm UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/16 "2021-08-18T17:05:31Z")

</div>

Hi @Michael_Condon  
Thanks for your reply. I have implemented custom UI as explained in the last link you sent. I faced two problems-

1. When try to show remote person video, I got **Started showing remote user video.** But remote side person is not visible. I have attached a photo of this.

2. When try to show local person video, I got **Failed to show local user video.**

Below is my some code of **CustomMeetingUIViewController**

private func updateViews(userId: UInt) {  
let dd = CustomMeetingUIViewController.remoteUserVideoView(userID: userId, videoAspect: MobileRTCVideoAspect\_PanAndScan, frame: CGRect(x: 0.0, y: 0.0, width: 300.0, height: 500.0))  
self.videoView.addSubview(dd!)  
}

Here **videoView** is a UIView placed in storyboard.

I called **updateViews** in a method of **MobileRTCUserServiceDelegate** like:

extension CustomMeetingUIViewController: MobileRTCUserServiceDelegate {  
func onSinkMeetingUserJoin(\_ userID: UInt) {  
updateViews(userId: userID)  
}  
}

Note - this **onSinkMeetingUserJoin** called two times in my case. I don’t know why. I made some logic inside this method so that only **first** time updateViews method get called. And again made some logic inside this method so that only **second** time updateViews method get called. But it’s not working in any case.

---

<div class="post-metadata">

**Author:** ![eberhardttameka](https://avatars.discourse-cdn.com/v4/letter/e/87869e/32.png) [@eberhardttameka](https://devforum.zoom.us/u/eberhardttameka)\
**Post date:** [August 18, 2021, 5:19pm UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/17 "2021-08-18T17:19:59Z")

</div>

> [@vp-ecommerce](#):
>
> Hi Michael  
> Thanks for the solution.
> 
> Can I [got](https://www.thechillpillcompany.com/Maximum-Strength-CBD-Oil-drops-5000-mg-30ml-Full-Spectrum-p356178001) the sample project in swift?  
> Or Can you please provide me the steps to run this sdk in a swift project.
> 
> Please help me.

Did you got the solution? I want to integrate in my website. And also iOS app.

---

<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:** [August 18, 2021, 7:57pm UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/18 "2021-08-18T19:57:32Z")

</div>

Hey @vp-ecommerce,

When trying to show the local user view are you passing in the userID of the local user or zero?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![vp-ecommerce](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vp-ecommerce/32/17849_2.png) [@vp-ecommerce](https://devforum.zoom.us/u/vp-ecommerce)\
**Post date:** [August 19, 2021, 5:39am UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/19 "2021-08-19T05:39:44Z")

</div>

Hi @Michael_Condon

You have given method for local user video view (which takes **meetingService.activeUserID()** as userId) like:

```auto
static func localUserVideoView(_ videoAspect: MobileRTCVideoAspect, frame: CGRect) -> MobileRTCVideoView? {
            guard let meetingService = MobileRTC.shared().getMeetingService() else { return nil }

            let localUserID = meetingService.activeUserID()
            let localUserVideoView = MobileRTCVideoView(frame: frame)
            localUserVideoView.setVideoAspect(videoAspect)
            let showAttendeeVideoSuccessful = localUserVideoView.showAttendeeVideo(withUserID: localUserID)

            if showAttendeeVideoSuccessful {
                print("Started showing local user video.")
            } else {
                print("Failed to show local user video.")
            }

            return localUserVideoView
        }

```

Note - It always gives **Failed to show local user video**. This problem happens for local user.

One problem is happening for remote user which I explained in above message. Method for remote user video view is as follow:

```auto
static func remoteUserVideoView(userID: UInt, videoAspect: MobileRTCVideoAspect, frame: CGRect) -> MobileRTCVideoView? {
            let remoteUserVideoView = MobileRTCVideoView(frame: frame)
            remoteUserVideoView.setVideoAspect(videoAspect)
            let showAttendeeVideoSuccessful = remoteUserVideoView.showAttendeeVideo(withUserID: userID)

            if showAttendeeVideoSuccessful {
                print("Started showing remote user video.")
            } else {
                print("Failed to show remote user video.")
            }

            return remoteUserVideoView
        }

```

I am getting userId from the following method:

```auto
extension CustomMeetingUIViewController: MobileRTCUserServiceDelegate {
func onSinkMeetingUserJoin(_ userID: UInt) {
updateViews(userId: userID). // I am getting userId here and call the updateViews function
}
}

```

After called the function, we get **Started showing remote user video.** But still video is **not visible**. I also attached a screenshot in last message.

Please provide me solution of both problem. Please help me @Michael_Condon

---

<div class="post-metadata">

**Author:** ![vp-ecommerce](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vp-ecommerce/32/17849_2.png) [@vp-ecommerce](https://devforum.zoom.us/u/vp-ecommerce)\
**Post date:** [August 20, 2021, 6:54am UTC](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143/20 "2021-08-20T06:54:52Z")

</div>

Hi @Michael_Condon  
Actually the remote video is visible sometimes. But it takes too long time to get the video visible. It seems like no one is on another side.

Please help me to get out of this.

[Next page](https://devforum.zoom.us/t/sample-project-not-running-in-ios/55143.md?page=2)
