# Issues with IOS SDK Screen SHare

**URL:** <https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841>\
**Category:** iOS\
**Created:** [July 11, 2020, 6:27am UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841 "2020-07-11T06:27:31Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![helloparent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/helloparent/32/16775_2.png) [@helloparent](https://devforum.zoom.us/u/helloparent)\
**Post date:** [July 11, 2020, 6:27am UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/1 "2020-07-11T06:27:31Z")

</div>

Hi Team…  
I am getting errors when integrating zoom SDK for integrating screen share functionality. Especially I am getting an error when converting your Objective-C code to swift as guided through this link [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share). I followed till step 4 and did not get any error but when proceed further steps not able to go smooth. Mainly, I could not found an equivalent code for step 5 and step 7 in swift. Please help me with detailed guidance or through some swift sample app. Thanks in advance.

Info:  
1.Xcode version - 11.3.1  
2. iOS version - iOS 13  
3. Is removed scene delegate - yes. removed

Screenshots below:

 ![WhatsApp Image 2020-07-11 at 11.32.13 AM (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/f/fd3d779e184c37ead280872f5eb579f403ade7b7.jpeg) ![WhatsApp Image 2020-07-11 at 11.32.13 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/3d2f6e3317d017c40f658257d400dbf067b3566b.jpeg) ![WhatsApp Image 2020-07-11 at 11.32.12 AM (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/3ae41e88c4429177881050e29c5caff206676445.jpeg) ![WhatsApp Image 2020-07-11 at 11.32.12 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/87a2eab41b99aaa1dfafc8b5a5263510e72b1b54.jpeg) ![WhatsApp Image 2020-07-11 at 11.31.27 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/101c9cb3828158de3fd9e814ba77831fe72c13dd.jpeg)

---

<div class="post-metadata">

**Author:** ![IOSDev](https://avatars.discourse-cdn.com/v4/letter/i/a3d4f5/32.png) [@IOSDev](https://devforum.zoom.us/u/IOSDev)\
**Post date:** [July 14, 2020, 5:25pm UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/3 "2020-07-14T17:25:29Z")

</div>

Remove MobileRTCScreenShare.framework and add it again to your project When adding the MobileRTCScreenShare.framework only select **Your Broadcast Upload Extension** as Add to target. Make sure your checked Copy items if needed.

For the Step 5 Code you do not need swift code.  
When you create your Broadcast Upload extension, choose language as **Objective-C** and **uncheck Include UI Extension** Then you can simple copy and replace the code in the SampleHandler.m file which has automatically been created for you when adding your Broadcast Upload Extension.

Make sure inside SampleHandler.m you replace **self.screenShareService.appGroup = @“Your group id”;**

Then, In your AppDelegate. swift file just before your call  
let initialise: MobileRTCSDKInitContext = MobileRTCSDKInitContext.init()  
// add this :  
initialise.appGroupId = “_ **Your group id** _”  
MobileRTC.shared().initialize(initialise)

For Step 7:  
import ReplayKit

extension ViewController: MobileRTCMeetingServiceDelegate{  
func onClickShareScreen(\_ parentVC: UIViewController) {  
print(“Share Screen”)  
let broadcastView = RPSystemBroadcastPickerView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.size.width / 2, height: UIScreen.main.bounds.size.height / 2))  
broadcastView.preferredExtension = “_ **Replace Your Broadcast Extension Bundle ID** _”  
let buttonPressed = NSSelectorFromString(“buttonPressed:”)  
if broadcastView.responds(to: buttonPressed) {  
broadcastView.perform(buttonPressed, with: nil)  
}  
}  
}  
I hope this helps.

---

<div class="post-metadata">

**Author:** ![helloparent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/helloparent/32/16775_2.png) [@helloparent](https://devforum.zoom.us/u/helloparent)\
**Post date:** [July 15, 2020, 4:23pm UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/4 "2020-07-15T16:23:02Z")

</div>

Hi @IOSDev

Thank you for the response. We implemented these steps and we did not get any error.

however, the share screen option is still not visible.

> Blockquote

extension ViewController: MobileRTCMeetingServiceDelegate{  
func onClickShareScreen(\_ parentVC: UIViewController) {  
print(“Share Screen”)  
let broadcastView = RPSystemBroadcastPickerView(frame: CGRect(x: 0, y: 0, width:

> Blockquote

Is the line "print (“Share Screen”) critical to show?

Please find attached screenshots. Are we missing anything?

 ![WhatsApp Image 2020-07-15 at 9.45.22 PM (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1e8ec548b9f41d4abc6f0485fd21e582047cc00b.jpeg) ![WhatsApp Image 2020-07-15 at 9.45.22 PM (2)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/105386242de51d42a5c45a4086ba3aa0f7628e58.jpeg) ![WhatsApp Image 2020-07-15 at 9.45.22 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/342c4b4b797e33b173b85403a9b9bb9cbca77bec.jpeg) ![WhatsApp Image 2020-07-15 at 9.45.23 PM (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/3cac225a4c606f8f20bf90cc4af2125f031593fc.jpeg) ![WhatsApp Image 2020-07-15 at 9.45.23 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/3b64530436ff2ea873d55f1f7d4d9f3b2af3aa90.jpeg) ![WhatsApp Image 2020-07-15 at 9.45.24 PM (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/95e064beb5617c14f4d633c80890745bcf585f4f.jpeg) ![WhatsApp Image 2020-07-15 at 9.45.24 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/78d0187367338b063e6eb0ec778d932ea5489188.jpeg) ![WhatsApp Image 2020-07-15 at 9.45.25 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/30f36cb354be014c2e7f6fd474992502c92b800c.jpeg) ![WhatsApp Image 2020-07-15 at 9.44.37 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/d4132dcc9c7e8d3469f01bceb33cbae8b9d99d66.jpeg)

---

<div class="post-metadata">

**Author:** ![IOSDev](https://avatars.discourse-cdn.com/v4/letter/i/a3d4f5/32.png) [@IOSDev](https://devforum.zoom.us/u/IOSDev)\
**Post date:** [July 15, 2020, 5:14pm UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/5 "2020-07-15T17:14:36Z")

</div>

No the line "print (“Share Screen”) is not critical.

Can you share screenshots for your build phases for App Target and Extension both.

Also Make sure you have added Permissions in Info.plist.

---

<div class="post-metadata">

**Author:** ![IOSDev](https://avatars.discourse-cdn.com/v4/letter/i/a3d4f5/32.png) [@IOSDev](https://devforum.zoom.us/u/IOSDev)\
**Post date:** [July 15, 2020, 5:16pm UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/6 "2020-07-15T17:16:15Z")

</div>

Also screen shot for General Tabs for both targets.

---

<div class="post-metadata">

**Author:** ![helloparent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/helloparent/32/16775_2.png) [@helloparent](https://devforum.zoom.us/u/helloparent)\
**Post date:** [July 16, 2020, 6:48am UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/7 "2020-07-16T06:48:48Z")

</div>

Hi @IOSDev

Thank you for the quick response. Please find attached the screenshots:

 ![WhatsApp Image 2020-07-16 at 12.15.11 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/d1627155b6aa7ae820f1724c59b2f2f49e023d02.jpeg) ![WhatsApp Image 2020-07-16 at 12.15.12 PM (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1c70735932baf36176c08b031c9b933b2927a272.jpeg) ![WhatsApp Image 2020-07-16 at 12.15.12 PM (2)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/dbd912e084de168f1f6e6441e0ef6b21829a5bec.jpeg) ![WhatsApp Image 2020-07-16 at 12.15.12 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/51ddaff9fa280808fba1c22338d23563f7fe05dd.jpeg) ![WhatsApp Image 2020-07-16 at 12.15.13 PM (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/a15fddfc7fbf188d25fa510d7bcab3cfb6d0239a.jpeg) ![WhatsApp Image 2020-07-16 at 12.15.13 PM (2)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/e39e22aa38e881770234aeb83cfef7ede3014932.jpeg) ![WhatsApp Image 2020-07-16 at 12.15.13 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1ff1ca4234fb035fb85c7dd5d40b43d7804f88f1.jpeg) ![WhatsApp Image 2020-07-16 at 12.15.11 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/5979799d4bdf48b922d608f01efe282c2a2cd759.jpeg)

---

<div class="post-metadata">

**Author:** ![pandiyaraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pandiyaraj/32/7093_2.png) [@pandiyaraj](https://devforum.zoom.us/u/pandiyaraj)\
**Post date:** [July 16, 2020, 11:21am UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/8 "2020-07-16T11:21:37Z")

</div>

Hi Team,

We have integrated ZOOM iOS SDK for connecting with friends. We were able to Start / Join meetings with connecting audio, video, and screen share.

Our app has a sequence of images to be shown with animation on it. In iOS Zoom SDK, this animation is displayed on the guest side when screen sharing is on. It looks choppy and some animations were skipped to the guest.

After analyzed, there is no choppiness if we start meeting with Default UI. But in our case, we need custom UI because we have seen there is no way to present any other app screens on top of Default UI.

But in Customized UI we are facing that choppiness regularly.

FYI, I have attached both video reference links.

Default UI: [https://drive.google.com/file/d/1yZlcoy5us8dJKBvWrIDd-saR1QseXo4q/view?usp=sharing](https://drive.google.com/file/d/1yZlcoy5us8dJKBvWrIDd-saR1QseXo4q/view?usp=sharing)

Custom UI: [https://drive.google.com/file/d/10xwiMdP\_HcmIg\_uUuOL9QfXqfnUDXj53/view?usp=sharing](https://drive.google.com/file/d/10xwiMdP_HcmIg_uUuOL9QfXqfnUDXj53/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![pandiyaraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pandiyaraj/32/7093_2.png) [@pandiyaraj](https://devforum.zoom.us/u/pandiyaraj)\
**Post date:** [July 16, 2020, 11:22am UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/9 "2020-07-16T11:22:38Z")

</div>

Hi @IOSDev,

Could you please help out this for me. I was struggled in last couple of weeks regarding this issue.

Please give your suggestions on it

---

<div class="post-metadata">

**Author:** ![IOSDev](https://avatars.discourse-cdn.com/v4/letter/i/a3d4f5/32.png) [@IOSDev](https://devforum.zoom.us/u/IOSDev)\
**Post date:** [July 16, 2020, 1:51pm UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/10 "2020-07-16T13:51:39Z")

</div>

Can you try this:  
Select your Zoom\_Share\_Screen extension\> General \> Frameworks and Libraries \> For MobileRTCScreenShare.framework change it from Embed Without Signing to Embed & Sign.

 ![Screen Shot 2020-07-16 at 9.49.24 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/7da97984027f4c1ca7a4d29b3d5a01c596d4a3cd.png)

Also make sure you have implemented func onClickShareScreen(\_ parentVC: UIViewController) {}

---

<div class="post-metadata">

**Author:** ![IOSDev](https://avatars.discourse-cdn.com/v4/letter/i/a3d4f5/32.png) [@IOSDev](https://devforum.zoom.us/u/IOSDev)\
**Post date:** [July 16, 2020, 1:54pm UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/11 "2020-07-16T13:54:52Z")

</div>

Hi Pandiyaraj,  
I don’t work for zoom, I am just trying to help people who are facing similar issues as I did. However I would be happy to help you but please start a new Topic so that Zoom’s support team can also help you.

---

<div class="post-metadata">

**Author:** ![pandiyaraj](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pandiyaraj/32/7093_2.png) [@pandiyaraj](https://devforum.zoom.us/u/pandiyaraj)\
**Post date:** [July 17, 2020, 4:36am UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/12 "2020-07-17T04:36:22Z")

</div>

Hi @IOSDev

Thanks for the quick reply. Yes I able to share screen, the problem is my screen looks choppiness to the participant’s side while screen sharing.

I am using the Custom UI meeting, because while in meeting users can allow navigating in my app. But in iOS Zoom client and Default UI meeting don’t have that choppiness.

FYI, I have attached both video reference links.

Default UI: [https://drive.google.com/file/d/1yZlcoy5us8dJKBvWrIDd-saR1QseXo4q/view?usp=sharing](https://drive.google.com/file/d/1yZlcoy5us8dJKBvWrIDd-saR1QseXo4q/view?usp=sharing)

Custom UI: [https://drive.google.com/file/d/10xwiMdP\_HcmIg\_uUuOL9QfXqfnUDXj53/view?usp=sharing](https://drive.google.com/file/d/10xwiMdP_HcmIg_uUuOL9QfXqfnUDXj53/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![helloparent](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/helloparent/32/16775_2.png) [@helloparent](https://devforum.zoom.us/u/helloparent)\
**Post date:** [July 17, 2020, 7:26am UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/13 "2020-07-17T07:26:58Z")

</div>

Hi @IOSDev

Thank you for the response

Tried this but still not able to see the option.

Attached screenshots :

 ![WhatsApp Image 2020-07-15 at 9.44.37 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/d4132dcc9c7e8d3469f01bceb33cbae8b9d99d66.jpeg) ![WhatsApp Image 2020-07-16 at 9.11.13 PM (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/c/cd95ee2d126cd5bb49cdecc64bb347ff5a284ac4.jpeg) ![WhatsApp Image 2020-07-16 at 9.11.13 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/24fdc2d9d6a129beab087b922b15916bd92939d8.jpeg)

---

<div class="post-metadata">

**Author:** ![IOSDev](https://avatars.discourse-cdn.com/v4/letter/i/a3d4f5/32.png) [@IOSDev](https://devforum.zoom.us/u/IOSDev)\
**Post date:** [July 17, 2020, 2:01pm UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/14 "2020-07-17T14:01:02Z")

</div>

Everything looks fine from what I can see. Can you try to remove the SDK and try adding the sdk again. Use the all version which supports both Simulator and Devices

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [July 29, 2020, 11:39am UTC](https://devforum.zoom.us/t/issues-with-ios-sdk-screen-share/23841/15 "2020-07-29T11:39:15Z")

</div>


