# scheduleMeeting error when I use Swift

**URL:** <https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643>\
**Category:** macOS\
**Created:** [February 5, 2021, 3:06pm UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643 "2021-02-05T15:06:01Z")\
**Posts on this page:** 13\
**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:** [February 5, 2021, 3:06pm UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/1 "2021-02-05T15:06:01Z")

</div>

I try to create the schedule meeting using Swift:

```
let scheduleMeetingItem = ZoomSDK.shared()?.getPremeetingService()?.createScheduleMeetingItem()
scheduleMeetingItem?.configOption.setMeetingTopic("Test Name")
ZoomSDK.shared()?.getPremeetingService()?.scheduleMeeting(scheduleMeetingItem)

```

And I got an error (**1: EXC\_BAD\_ACCESS (code=1, address=0x4203193d0f48)**) on this step:

`...scheduleMeeting(scheduleMeetingItem)`

The most interesting thing that when I created Objective-C class in the same project, and call the same chunk of code:

```
ZoomSDKScheduleMeetingItem *scheduleMeetingItem = [[[ZoomSDK sharedSDK] getPremeetingService] createScheduleMeetingItem];
[[scheduleMeetingItem1 configOption] setMeetingTopic:@"Test Name"];
[[[ZoomSDK sharedSDK] getPremeetingService] scheduleMeeting:scheduleMeetingItem];

```

My schedule meeting was created successfully.

---

<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:** [February 5, 2021, 6:13pm UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/2 "2021-02-05T18:13:20Z")

</div>

Hi @anton.yereshchenko, thanks for the post.

That is certainly strange that this is only an issue with Swift. Can you confirm that you are calling both of these code snippets at the same point in time?

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:** [February 8, 2021, 7:21am UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/3 "2021-02-08T07:21:41Z")

</div>

Hi @jon.zoom, thanks for the report.

Yes, I confirm it. I tried to call this chunk of code in identical similar situations. And the result you can see above.

Thanks!

---

<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:** [February 8, 2021, 7:05pm UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/4 "2021-02-08T19:05:33Z")

</div>

Hi @anton.yereshchenko, thanks for confirming.

Can you please provide the crash logs so that we may investigate this further?

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:** [February 10, 2021, 7:41am UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/5 "2021-02-10T07:41:46Z")

</div>

Hi @jon.zoom , do you mean ZoomSDK logs?

Xcode displays only this one: **1: EXC\_BAD\_ACCESS (code=1, address=0x4203193d0f48)**

---

<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:** [February 10, 2021, 5:59pm UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/6 "2021-02-10T17:59:23Z")

</div>

Hi @anton.yereshchenko,

Yes, the SDK logs. They should be located under `~/Library/Logs/${APP_NAME}`. Once we have these logs, we can investigate this further.

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:** [February 12, 2021, 8:21am UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/7 "2021-02-12T08:21:16Z")

</div>

Hi @jon.zoom,

Unfortunately, there aren’t any new logs after the crash.

Thank you!

---

<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:** [February 12, 2021, 6:04pm UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/8 "2021-02-12T18:04:40Z")

</div>

Hi @anton.yereshchenko,

There should be an encrypted log file at the location mentioned in my previous post. Can you please retrieve the log file from there so that we may investigate this further?

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:** [March 10, 2021, 1:24pm UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/9 "2021-03-10T13:24:28Z")

</div>

> [@jon.zoom](#):
>
> ~/Library/Logs/${APP\_NAME}

Hi @jon.zoom ,

Yeah, there aren’t any new log files at the mentioned location.  
The last _zoom\_memlog\_…macos.log.zip.zenc_ file was edited more than the month ago.

Logging have been enabled:

```
    let params = ZoomSDKInitParams()
    
    params.logFileSize = 5
    params.enableLog = true

```

Maybe I have missed something?

Thanks!

---

<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:** [March 10, 2021, 6:42pm UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/10 "2021-03-10T18:42:29Z")

</div>

Hi @anton.yereshchenko,

There may be something related to your environment changing the location of the logs. Can you also please check in `~/Library/Containers/${PACKAGE_NAME}/Data/Library/Logs/${APP_NAME}`?

Thanks!

---

<div class="post-metadata">

**Author:** ![xy\_joe](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/xy_joe/32/33431_2.png) [@xy\_joe](https://devforum.zoom.us/u/xy_joe)\
**Post date:** [December 19, 2021, 5:58am UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/11 "2021-12-19T05:58:51Z")

</div>

Hello , PLease I’m trying to know if the zoom android SDK allows for scheduling. It doesn’t talk about anything scheduling on the android documentation and the link there seems to be broken.  
[Here is the link](https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/other-features/schedule-meeting-for-login-user#schedule-me%5B%E2%80%A6%5D-login-user)

---

<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 20, 2021, 10:27pm UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/12 "2021-12-20T22:27:22Z")

</div>

Hi @xy_joe, thanks for using the dev forum.

Please be aware that the category you have posted in is for the macOS Meeting SDK. There is a separate #mobile-meeting-sdk:android category for future questions related to Android.

The Meeting SDK across all platforms no longer supports meeting management as of v5.7.1. For scheduling and managing meetings, please use the REST API. If you have any questions related to the usage of our REST API, you can post over in #api-and-webhooks. 🙂

Thanks!

---

<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 20, 2021, 10:27pm UTC](https://devforum.zoom.us/t/schedulemeeting-error-when-i-use-swift/42643/13 "2021-12-20T22:27:25Z")

</div>

Closed on December 20, 2021, 10:27pm UTC


