# Build error after upgrade SDK

**URL:** <https://devforum.zoom.us/t/build-error-after-upgrade-sdk/44068>\
**Category:** iOS\
**Created:** [February 23, 2021, 4:41pm UTC](https://devforum.zoom.us/t/build-error-after-upgrade-sdk/44068 "2021-02-23T16:41:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shpy2001](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shpy2001/32/3536_2.png) [@shpy2001](https://devforum.zoom.us/u/shpy2001)\
**Post date:** [February 23, 2021, 4:41pm UTC](https://devforum.zoom.us/t/build-error-after-upgrade-sdk/44068/1 "2021-02-23T16:41:01Z")

</div>

**Description**  
Build error after upgrade SDK from 4.6.xxx to 5.4.54802.0124

**Which Client iOS SDK version?**  
5.4.54802.0124.

> Command CompileSwift failed with a nonzero exit code  
> /Users/lequochung/flutter\_zoom\_plugin/ios/Classes/SwiftFlutterZoomPlugin.swift:43:27: error: cannot find ‘MobileRTCAuthError\_Success’ in scope  
> if returnValue == MobileRTCAuthError\_Success {  
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~  
> /Users/lequochung/flutter\_zoom\_plugin/ios/Classes/SwiftFlutterZoomPlugin.swift:281:44: warning: ‘joinMeeting(with:)’ is deprecated: Will be deleted in the next release. Please use joinMeetingWithJoinParam instead  
> let response = meetingService?.joinMeeting(with: params)  
> ^  
> /Users/lequochung/flutter\_zoom\_plugin/ios/Classes/SwiftFlutterZoomPlugin.swift:335:29: error: cannot find ‘MobileRTCUserType\_APIUser’ in scope  
> user.userType = MobileRTCUserType\_APIUser  
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~  
> /Users/lequochung/flutter\_zoom\_plugin/ios/Classes/SwiftFlutterZoomPlugin.swift:338:18: error: value of type ‘MobileRTCMeetingStartParam4WithoutLoginUser’ has no member ‘userToken’  
> user.userToken = arguments[“zoomToken”]!!  
> ~~~~^~~~~~~~~  
> /Users/lequochung/flutter\_zoom\_plugin/ios/Classes/SwiftFlutterZoomPlugin.swift:433:14: error: cannot find ‘MobileRTCMeetingState\_Idle’ in scope  
> case MobileRTCMeetingState\_Idle:  
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~  
> /Users/lequochung/flutter\_zoom\_plugin/ios/Classes/SwiftFlutterZoomPlugin.swift:436:14: error: cannot find ‘MobileRTCMeetingState\_Connecting’ in scope  
> case MobileRTCMeetingState\_Connecting:  
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
> /Users/lequochung/flutter\_zoom\_plugin/ios/Classes/SwiftFlutterZoomPlugin.swift:439:14: error: cannot find ‘MobileRTCMeetingState\_InMeeting’ in scope  
> case MobileRTCMeetingState\_InMeeting:  
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
> /Users/lequochung/flutter\_zoom\_plugin/ios/Classes/SwiftFlutterZoomPlugin.swift:442:14: error: cannot find ‘MobileRTCMeetingState\_WebinarPromote’ in scope  
> case MobileRTCMeetingState\_WebinarPromote:  
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
> /Users/lequochung/flutter\_zoom\_plugin/ios/Classes/SwiftFlutterZoomPlugin.swift:445:14: error: cannot find ‘MobileRTCMeetingState\_WebinarDePromote’ in scope  
> case MobileRTCMeetingState\_WebinarDePromote:  
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---

<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 23, 2021, 7:10pm UTC](https://devforum.zoom.us/t/build-error-after-upgrade-sdk/44068/2 "2021-02-23T19:10:19Z")

</div>

Hi @shpy2001, thanks for the post.

Sorry to hear you are running into this issue after updating to the latest SDK version. I can assure you that this enum still exists in the version you have upgraded to. There may be something wrong with how the SDK was added to your project. Can you please try completely removing the SDK from your project and re-adding it?

Thanks!

---

<div class="post-metadata">

**Author:** ![shpy2001](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shpy2001/32/3536_2.png) [@shpy2001](https://devforum.zoom.us/u/shpy2001)\
**Post date:** [February 24, 2021, 3:32pm UTC](https://devforum.zoom.us/t/build-error-after-upgrade-sdk/44068/3 "2021-02-24T15:32:03Z")

</div>

Thank for your support. After read step by step version changelog from 4.6 to 5.2.xxx . I found that contants has changed to NS\_ENUM . So , problem solved.

Thank you so much.

---

<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:** [February 24, 2021, 7:40pm UTC](https://devforum.zoom.us/t/build-error-after-upgrade-sdk/44068/4 "2021-02-24T19:40:31Z")

</div>

Hey @shpy2001,

Awesome! I am glad to hear your issue was resolved. For others who may find this post: In older versions of the SDK, a lot of the SDK’s enums were standard objective-c style enums, but in more recent versions the enums are now NS\_ENUM’s. Meaning instead of this:  
`case MobileRTCAuthError_Success:`  
Swift developers need to do this:  
`case .success`

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:** [March 27, 2021, 5:41am UTC](https://devforum.zoom.us/t/build-error-after-upgrade-sdk/44068/5 "2021-03-27T05:41:25Z")

</div>

Closed on March 27, 2021, 5:41am UTC

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