# Sdk authorized but getMeetingService return nil

**URL:** <https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293>\
**Category:** macOS\
**Created:** [December 10, 2021, 7:54am UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293 "2021-12-10T07:54:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![beah\_s1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/beah_s1/32/33227_2.png) [@beah\_s1](https://devforum.zoom.us/u/beah_s1)\
**Post date:** [December 10, 2021, 7:54am UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293/1 "2021-12-10T07:54:04Z")

</div>

**Description**  
Zoom Meeting SDK is authorized but getMeetingService return nil  
why return nil even though isAuthorized return true??

**Which macOS Meeting SDK version?**  
zoom-sdk-macos-5.7.6.1340

**Screenshots**

 ![スクリーンショット 2021-12-10 16.47.20](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/5/754222a1f1c5f2282c353367bd2ae5caa2f0e352.jpeg)

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

- Device: Apple MacBook Pro (2020, Intel)
- OS: macOS Monterey 12.0.1

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 10, 2021, 6:52pm UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293/2 "2021-12-10T18:52:21Z")

</div>

Hi @beah_s1, thanks for using the dev forum.

When you receive the `onZoomSDKAuthReturn` callback, you need to check the value of the `ZoomSDKAuthError` param. If it is `ZoomSDKAuthError_Success`, then the the SDK has successfully authorized with your developer credentials. Let me know which value you are seeing and we can look into this further.

I also noticed that you are passing in empty strings to the `sdkAuth` method. Were these just removed for the screenshot, or are you running the code as it is pictured? Those params would need to be set to your developer credentials obtained through the Marketplace.

Thanks!

---

<div class="post-metadata">

**Author:** ![beah\_s1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/beah_s1/32/33227_2.png) [@beah\_s1](https://devforum.zoom.us/u/beah_s1)\
**Post date:** [December 10, 2021, 7:12pm UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293/3 "2021-12-10T19:12:03Z")

</div>

Thanks!

When I receive the `onZoomSDKAuthReturn` callback, returnValue is 0 and it is true equal to `ZoomSDKAuthError_Success`.  
and I was remove credentials in sdkAuth for take a screenshot.  
in running, credential includes in my code.

 ![スクリーンショット 2021-12-11 4.08.50](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/2/62f0bc15c724b2ebc8edfd30eb9e5252521f9a78.png)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 13, 2021, 10:17pm UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293/4 "2021-12-13T22:17:43Z")

</div>

Hi @beah_s1 ,

Thanks for confirming that you have successfully authorized the SDK before calling this. Another possible cause of this returning nil is if the SDK was not correctly added to your project. Can you please confirm how exactly the SDK files were added to your project, including any relevant build phases information?

Thanks!

---

<div class="post-metadata">

**Author:** ![beah\_s1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/beah_s1/32/33227_2.png) [@beah\_s1](https://devforum.zoom.us/u/beah_s1)\
**Post date:** [December 14, 2021, 4:57am UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293/5 "2021-12-14T04:57:21Z")

</div>

Thanks @jon.zoom

I added frameworks in `Copy files` excepting app files

 ![スクリーンショット 2021-12-14 13.50.41](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/8/58919da4a08e3c9d4ebe4e65b23c625ef5525842.png)

and some files also added to `Link Binary With Files`

 ![スクリーンショット 2021-12-14 13.50.54](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/f/0f2427c34e5db597f50a2842b288dedb2c036432.png)

file hierarchy is this

 ![スクリーンショット 2021-12-14 13.51.03](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/c/4c090c171310aa8f5399a9cf07eee7f90aa11cb1.png)

---

<div class="post-metadata">

**Author:** ![beah\_s1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/beah_s1/32/33227_2.png) [@beah\_s1](https://devforum.zoom.us/u/beah_s1)\
**Post date:** [December 14, 2021, 5:00am UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293/6 "2021-12-14T05:00:45Z")

</div>

and I’ve just uploaded project files excepting credentials to Google Drive.

> **[SimuCon.zip](https://drive.google.com/file/d/1EBAr1Y5Ut-IH36Nim-GgDP6-TZyvQHZh/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 14, 2021, 10:58pm UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293/7 "2021-12-14T22:58:45Z")

</div>

Hi @beah_s1,

Thanks for including those screenshots and your project as a whole. It does seem that some of the files from the SDK package were not properly added to the project. Can you please ensure that the `.app` files are being added correctly in addition to what you’ve already included? They’re present in the `ZoomSDK` directory, but aren’t showing up in XCode.

Thanks!

---

<div class="post-metadata">

**Author:** ![beah\_s1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/beah_s1/32/33227_2.png) [@beah\_s1](https://devforum.zoom.us/u/beah_s1)\
**Post date:** [December 15, 2021, 2:17am UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293/8 "2021-12-15T02:17:58Z")

</div>

I was added `.app` files, but build error has occurred.  
I understand `.app` files include in `ZoomSDK` is signed by Zoom.Inc.  
How I change signing settings?

 ![スクリーンショット 2021-12-15 11.12.17](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/0/60f3b35995b1162f70c913a2cbd09cf41e72ff19.png)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 15, 2021, 11:24pm UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293/9 "2021-12-15T23:24:22Z")

</div>

Hi @beah_s1,

In order to resolve this error, you would need to sign all of the `.app` files being included with the same certificate you are using to sign your application as a whole. For more specific information on how to manage code signing in your application, [Apple’s documentation](https://developer.apple.com/support/code-signing/) would be a good place to start. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![beah\_s1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/beah_s1/32/33227_2.png) [@beah\_s1](https://devforum.zoom.us/u/beah_s1)\
**Post date:** [December 16, 2021, 2:27am UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293/10 "2021-12-16T02:27:11Z")

</div>

I did successful for add `.app` files. used `codesign` tool and sign `.app` files by my certificate.  
but `getMeetingService()` still return nil  
Have you idea for fix this?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 16, 2021, 8:21pm UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293/11 "2021-12-16T20:21:11Z")

</div>

Hi @beah_s1,

Can you please provide the SDK logs so that we can investigate further? It will be an encrypted file available in `~/Library/Logs/${PACKAGE_NAME}`. Please ensure that you have set `ZoomSDKInitParams.enableLog` to true when initializing the SDK.

Once you have the logs, you can send them over by opening a ticket on our [developer support site](https://zoomdevelopersupport.zendesk.com/hc/en-us).

Thanks!

---

<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:** [January 16, 2022, 6:21am UTC](https://devforum.zoom.us/t/sdk-authorized-but-getmeetingservice-return-nil/61293/12 "2022-01-16T06:21:42Z")

</div>

Closed on January 16, 2022, 6:21am UTC

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