# Can't start screen/window sharing with new SDK 5.11.1.8413

**URL:** <https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672>\
**Category:** macOS\
**Created:** [July 5, 2022, 12:36pm UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672 "2022-07-05T12:36:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [July 5, 2022, 12:36pm UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/1 "2022-07-05T12:36:41Z")

</div>

**Description**  
I have updated Zoom SDK version and noticed that screen/window sharing doesn’t work.  
After some checks I have figured out that starts from 5.11.0.8370  
`startMonitorShare` and `startAppShare` methods return **Failed** status.  
But if I switch to 5.10.6.7530 sharing works again.

**Which macOS Meeting SDK version?**  
Starts in [5.11.0.8370](https://devsupport.zoom.us/hc/en-us/sections/9481918285581-macOS).  
Still have in [5.11.1.8413][https://devsupport.zoom.us/hc/en-us/sections/9481918285581-macOS](https://devsupport.zoom.us/hc/en-us/sections/9481918285581-macOS)).

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

1. Start or Join to the meeting.
2. Initiate screen/window sharing.

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

- Device: iMac (Retina 5K, 27-inch, 2017)
- OS: macOS Monterey 12.4

**Additional context**  
Unfortunately, I can’t reproduce it in the demo app, but do you know what is changed? Maybe I should do some additional settings?

**Thank you!**

---

<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 5, 2022, 6:09pm UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/2 "2022-07-05T18:09:43Z")

</div>

Hi @anton.yereshchenko ,

Thanks for using the SDK and sorry to hear that the screen sharing is not working as expected on your end.

As you have already tried, we are not observing the same issue on our end with the sample app, so we might need additional information from you in order to further investigate this issue. Could you share the following info:

1. What is your Xcode version? Are you using the legacy build system or the new build system?
2. Could you share some code snippets of how you use these 2 interfaces `startMonitorShare` and `startAppShare`?
3. Could you share the SDK log so that we could further investigate?

Looking forward to hearing from you.

Thank you!

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [July 6, 2022, 9:40am UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/3 "2022-07-06T09:40:46Z")

</div>

Hi, @anton.yereshchenko,

Sorry for the behavior you are seeing with screen sharing. We’d like to get a better understanding of what may be happening but we’ll need your help. Can you open a support ticket [here](https://zoom.us/zendesk/sso?return_to=https://support.zoom.us/hc/requests/new?ticket_form_id=360000996591) and share the logs? Please include a link to this thread and direct message the ticket number.

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [July 6, 2022, 9:42am UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/4 "2022-07-06T09:42:56Z")

</div>

Hi @carson.zoom , thank you for your replay

1. Xcode Version 13.3.1 with the new build system.
2. Nothing strange:

```auto
    private var shareController: ZoomSDKASController? {
        return ZoomSDK.shared()?.getMeetingService()?.getASController()
    }
    
    func startScreenShare(with displayId: CGDirectDisplayID) -> ZoomSDKError? {
        return shareController?.startMonitorShare(displayId)
    }
    
    func startWindowShare(with windowId: CGWindowID) -> ZoomSDKError? {
        return shareController?.startAppShare(windowId)
    }

```

1. Yeah, sure, I have attached it [REDACTED}

Thank you!

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [July 6, 2022, 9:46am UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/5 "2022-07-06T09:46:40Z")

</div>

@anton.yereshchenkom,

Thanks! I will share the logs with our SDK team and provide an update once more information is available.

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [July 6, 2022, 9:51am UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/6 "2022-07-06T09:51:29Z")

</div>

@donte.zoom , Hi thank you too!  
I have opened a support ticket with the log and topic link.  
🙏

---

<div class="post-metadata">

**Author:** ![BrobaFett](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/brobafett/32/33319_2.png) [@BrobaFett](https://devforum.zoom.us/u/BrobaFett)\
**Post date:** [July 6, 2022, 8:03pm UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/7 "2022-07-06T20:03:43Z")

</div>

Hey @carson.zoom,

If it helps, we are seeing a similar issue. Previous version works, we change nothing except the sdk version, receiving screen sharing shows blank view. I cant seem to reproduce in the sample application though.

Thanks!  
Michael

---

<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 7, 2022, 4:45am UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/8 "2022-07-07T04:45:21Z")

</div>

Thanks @anton.yereshchenko and @BrobaFett for the replies! Are you experiencing this issue in default UI or Custom UI?

---

<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 7, 2022, 5:47am UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/9 "2022-07-07T05:47:26Z")

</div>

@anton.yereshchenko @BrobaFett One additional question: Have you re-signed the libraries and frameworks in the SDK? If the share module(CptHost.app) is not signed, the share interface will return fail.

Once the SDK is re-signed, please also make sure you pass in the teamIdentifier in the initSDK interface.

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [July 7, 2022, 6:28am UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/10 "2022-07-07T06:28:54Z")

</div>

@carson.zoom hi!  
I have this issue in Custom UI

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [July 7, 2022, 8:13am UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/11 "2022-07-07T08:13:47Z")

</div>

should I re-sign all sdk files?  
I mean _ **.app** _, _ **.bundle** _, _ **.dylib** _, _ **.framework** _?

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [July 7, 2022, 3:33pm UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/12 "2022-07-07T15:33:24Z")

</div>

@carson.zoom I have some news!

Just two steps almost help me

1. Re-sign `.app` files using `Run script phase`:

```auto
DIR="ZoomSDK"
IDENTITY=${EXPANDED_CODE_SIGN_IDENTITY_NAME}

echo "Re-signing *.app files in directory \"$DIR\" with Authority: \"$IDENTITY\""

for file in $DIR/*; do
  if ["${file: -4}" == ".app"]; then
  
    if codesign -dvv --deep "$file" 2>&1 | grep -qF "$IDENTITY"
    then
        echo "File \"$file\" has been already signed."
    else
        echo "File \"$file\" is not signed correctly."  
        echo "File \"$file\" will sign with \"$IDENTITY\"..."  
        codesign --force --verify --timestamp --verbose --options=runtime --sign "$IDENTITY" "$file"
        echo "File \"$file\" has been signed with \"$IDENTITY\"."  
    fi    
  fi
done

```

`$IDENTITY` is equal to string (for debug): _**“Apple Development: USERNAME (ID)”**_

1. Check that `teamIdentifier` in `ZoomSDKInitParams` is equal to Team ID from developer Apple portal.

And finally screen/window sharing works for debug.  
**BUT** after archiving and notarising the app sharing doesn’t want to work again:(

And result of `codesign -dv --verbose=4 <FILENAME.app>` is shown that main app and Zoom apps have the same `Authority` and is equal to string (for release): _**“Developer ID Application: COMPANY\_NAME (ID)”**_

Should I do some additional step to make it works in the build after archiving and notarising?

Thank you for helping with re-singing and `teamIdentifier` 🙏

---

<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 8, 2022, 2:36am UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/13 "2022-07-08T02:36:06Z")

</div>

Hi @anton.yereshchenko ,

Glad to hear that the screen sharing feature is working for you in the debug mode. For the release build, you will need to re-sign everything in the folder ZoomSDK. Please double check the signatures after you re-sign everything and make sure everything has been re-signed.

Hope this helps! Thanks!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [July 8, 2022, 4:06pm UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/14 "2022-07-08T16:06:11Z")

</div>

@carson.zoom yes it is! thank you a lot, everything is work properly now 👌

---

<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 9, 2022, 1:31am UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/15 "2022-07-09T01:31:35Z")

</div>

Happy to help! Glad to hear that it is working as expected now. 🙂 Don’t hesitate to reach out to us if any other questions.

---

<div class="post-metadata">

**Author:** ![BrobaFett](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/brobafett/32/33319_2.png) [@BrobaFett](https://devforum.zoom.us/u/BrobaFett)\
**Post date:** [July 27, 2022, 2:42pm UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/16 "2022-07-27T14:42:45Z")

</div>

Hey @carson.zoom,

Sorry for the late response. We realized are issue was caused by something on our side.

Michael

---

<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 27, 2022, 8:33pm UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/17 "2022-07-27T20:33:39Z")

</div>

Hi @BrobaFett ,

Glad to hear that the issue is fixed on your end! Let us know if any other questions. Thank you!

---

<div class="post-metadata">

**Author:** ![JackX](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@JackX](https://devforum.zoom.us/u/JackX)\
**Post date:** [August 18, 2022, 2:58am UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/18 "2022-08-18T02:58:30Z")

</div>

I have the issuse, how can I get this IDENTITY ?

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [August 18, 2022, 6:09pm UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/19 "2022-08-18T18:09:39Z")

</div>

Hi @JackX , you could use `EXPANDED_CODE_SIGN_IDENTITY_NAME` for it.

---

<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:** [September 18, 2022, 4:10am UTC](https://devforum.zoom.us/t/cant-start-screen-window-sharing-with-new-sdk-5-11-1-8413/71672/20 "2022-09-18T04:10:24Z")

</div>

Closed on September 18, 2022, 4:10am UTC

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