# Sharing screen fails the first time, works subsequent times

**URL:** <https://devforum.zoom.us/t/sharing-screen-fails-the-first-time-works-subsequent-times/95209>\
**Category:** iOS\
**Created:** [September 15, 2023, 9:08pm UTC](https://devforum.zoom.us/t/sharing-screen-fails-the-first-time-works-subsequent-times/95209 "2023-09-15T21:08:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisnocd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chrisnocd/32/17742_2.png) [@chrisnocd](https://devforum.zoom.us/u/chrisnocd)\
**Post date:** [September 15, 2023, 9:08pm UTC](https://devforum.zoom.us/t/sharing-screen-fails-the-first-time-works-subsequent-times/95209/1 "2023-09-15T21:08:52Z")

</div>

**Description**  
When performing screen share the first time, an error occurs. After exiting the app and trying screen share again, screen share works.

**Which iOS Meeting SDK version?**  
v5.15.12.10118

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Install my app that embeds the Zoom Meeting SDK.
2. Join Zoom meeting.
3. Attempt to share screen
4. Observe error in the screenshot
5. Leave meeting.
6. Close the app
7. Reopen the app  
8 Join Zoom meeting
8. Attempt to share screen
9. Observe that sharing the screen works

**Screenshots**

 ![IMG_0073.PNG](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/e/4e1e1cfce328e29ad19e99589d6fe2d87a3d3307.jpeg)

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

- Device: iPhone 11
- OS: iOS 16.6.1

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 22, 2023, 8:40pm UTC](https://devforum.zoom.us/t/sharing-screen-fails-the-first-time-works-subsequent-times/95209/2 "2023-09-22T20:40:08Z")

</div>

Hi @chrisnocd  
Thanks for reaching out to us.  
I am just checking on you to see if you were able to troubleshoot this error on your end?

---

<div class="post-metadata">

**Author:** ![chrisnocd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chrisnocd/32/17742_2.png) [@chrisnocd](https://devforum.zoom.us/u/chrisnocd)\
**Post date:** [September 25, 2023, 3:54pm UTC](https://devforum.zoom.us/t/sharing-screen-fails-the-first-time-works-subsequent-times/95209/3 "2023-09-25T15:54:26Z")

</div>

Hi Elisa,

Thanks for reaching out.

I’m currently working with someone at Zoom who is trying to debug this issue via email communication, but I haven’t heard back from them in 4 days.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 25, 2023, 6:31pm UTC](https://devforum.zoom.us/t/sharing-screen-fails-the-first-time-works-subsequent-times/95209/4 "2023-09-25T18:31:13Z")

</div>

@chrisnocd  
Thanks for confirming this with me.  
Let me know when you hear back from them

---

<div class="post-metadata">

**Author:** ![boonjun.tan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/boonjun.tan/32/38306_2.png) [@boonjun.tan](https://devforum.zoom.us/u/boonjun.tan)\
**Post date:** [October 13, 2023, 4:30am UTC](https://devforum.zoom.us/t/sharing-screen-fails-the-first-time-works-subsequent-times/95209/5 "2023-10-13T04:30:47Z")

</div>

Hi @chrisnocd,

This issue is usually caused by either:

1. The RPBroadcastSampleHandler extension crashes before the setup completes and is called to start broadcasting, or
2. Your AppGroupID is inconsistent across the application source code or the AppGroupID is not valid under your project “Signing & Capabilities” which I assume this cannot be the case since you mentioned that you manage to screen share.

As I am not able to run your sample app on my side, we will need you to debug this on your Xcode by following these steps as followed:

1. Use the menu “Debug”,
2. “Attach to Process by PID or Name…”, and enter the name of their extension process,
3. Wait for the debug attachment to be set up and should appear under the debug inspector,
4. Once ready, start their broadcast session. (You should find the crash in the debugger.)

Also since you mentioned that the screen sharing works after you closed and reopened your app on steps 5-6, does this mean you actually killed the app and restarted it? It would be great if you could send me a video recording of the whole process.

I have also received and looked through the 2 Xcode logs you sent to my colleague Binesh, can we also have the Zoom’s log? More information can be found [here](https://developers.zoom.us/docs/meeting-sdk/ios/use-meeting-sdk/sdk-initialization/#log-feature).

Thank you.

---

<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:** [November 12, 2023, 2:31pm UTC](https://devforum.zoom.us/t/sharing-screen-fails-the-first-time-works-subsequent-times/95209/6 "2023-11-12T14:31:17Z")

</div>

Closed on November 12, 2023, 2:31pm UTC

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