# Cannot find scope

**URL:** <https://devforum.zoom.us/t/cannot-find-scope/58600>\
**Category:** iOS\
**Created:** [October 8, 2021, 5:34pm UTC](https://devforum.zoom.us/t/cannot-find-scope/58600 "2021-10-08T17:34:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [October 8, 2021, 5:34pm UTC](https://devforum.zoom.us/t/cannot-find-scope/58600/1 "2021-10-08T17:34:15Z")

</div>

**Description**  
ZoomSDK for iOS 5.7.6 shows “Cannot find ‘MobileRTCMeetingState\_InMeeting’ in scope”

```auto
func onMeetingStateChange(_ state: MobileRTCMeetingState) {
switch state {
        case MobileRTCMeetingState_InMeeting:
            print("Meeting state: inMeeting")
            break
  default:
            print(" ****DEFAULT***")
        }
}

```

I get an error in the code, is this the correct behavior?

I also get “Cannot find ‘XXXXXXXXXX’ in scope” and cannot compile. I created a new one, so I don’t think there are many other effects.

Thanks.

**Which Mobile Meeting SDK version?**  
CustomUI  
SDK Version 5.7.6

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [October 8, 2021, 6:38pm UTC](https://devforum.zoom.us/t/cannot-find-scope/58600/2 "2021-10-08T18:38:26Z")

</div>

Hey @KAZUMA87,

Thanks for using the dev forum!

Can you try `.inMeeting` instead of `MobileRTCMeetingState_InMeeting`?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![KAZUMA87](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazuma87/32/37556_2.png) [@KAZUMA87](https://devforum.zoom.us/u/KAZUMA87)\
**Post date:** [October 9, 2021, 2:09pm UTC](https://devforum.zoom.us/t/cannot-find-scope/58600/3 "2021-10-09T14:09:28Z")

</div>

Hello , Micheal.

Thanks for the advice. The problem is solved.

Thanks

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [October 11, 2021, 8:43pm UTC](https://devforum.zoom.us/t/cannot-find-scope/58600/4 "2021-10-11T20:43:06Z")

</div>

Hey @KAZUMA87,

Awesome! I am super happy to hear 🙂

Please let us know if you have any other questions.

Thanks!  
Michael

---

<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 11, 2021, 6:43am UTC](https://devforum.zoom.us/t/cannot-find-scope/58600/5 "2021-11-11T06:43:31Z")

</div>

Closed on November 11, 2021, 6:43am UTC

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