# Zoom SDK Crash in ios swift

**URL:** <https://devforum.zoom.us/t/zoom-sdk-crash-in-ios-swift/5275>\
**Category:** iOS\
**Created:** [July 31, 2019, 6:56am UTC](https://devforum.zoom.us/t/zoom-sdk-crash-in-ios-swift/5275 "2019-07-31T06:56:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![premium](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/premium/32/1302_2.png) [@premium](https://devforum.zoom.us/u/premium)\
**Post date:** [July 31, 2019, 6:56am UTC](https://devforum.zoom.us/t/zoom-sdk-crash-in-ios-swift/5275/1 "2019-07-31T06:56:48Z")

</div>

libGPUSupportMercury.dylib`gpus\_ReturnNotPermittedKillClient:

crashes when app is in background

implemented these methods in the notification

```auto
@objc func controllerwillEnterForeground() {
		self.joinMeeting()
}
	
	@objc func willResignActive() {
		MobileRTC.shared().getMeetingService().delegate = nil
	}
	
	@objc func controllerDidGoesBackground() {
		glFinish()
	}

	func joinMeeting() {
		guard let meetingService = MobileRTC.shared().getMeetingService() else { return }
		meetingService.delegate = self
		
		let paramDict: [String : Any] = [
			kMeetingParam_Username : "Test",
			kMeetingParam_MeetingNumber : " *******"
		]
		let returnValue = meetingService.joinMeeting(with: paramDict)
		
		guard returnValue == MobileRTCMeetError_Success else {
			print("Zoom: Join meeting task failed, error code: \(returnValue.rawValue)")
			return
		}
		
		print("Zoom: Join meeting task completed. \(returnValue.rawValue)")
	}

```

---

<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 31, 2019, 5:36pm UTC](https://devforum.zoom.us/t/zoom-sdk-crash-in-ios-swift/5275/2 "2019-07-31T17:36:43Z")

</div>

Hi premium,

Thanks for the post and providing the code snippet. Would you mind filling out the following contents so that we can look into the crashing issue you are facing? I have already filled out some part for you. Besides the contents, could you also provide:

- Can you provide the .crash log? – Ways to retrieve: [https://developer.apple.com/library/archive/technotes/tn2151/\_index.html#//apple\_ref/doc/uid/DTS40008184-CH1-SYMBOLICATEWITHXCODE](https://developer.apple.com/library/archive/technotes/tn2151/_index.html#//apple_ref/doc/uid/DTS40008184-CH1-SYMBOLICATEWITHXCODE)
- Can you provide the SDK log? – Ways to retrieve: [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization#2-log-feature](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization#2-log-feature)

Contents need:

**Description**  
An app that is developed with Swift and using Zoom iOS SDK crashes when the app is in the background(And the meeting is on?).

**Which version?**  
Knowing the version can help us to identify your issue faster.

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

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

**Screenshots**  
If applicable, add screenshots to help explain your problem.

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

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Version [e.g. 22]

**Additional context**  
Add any other context about the problem here.

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:36pm UTC](https://devforum.zoom.us/t/zoom-sdk-crash-in-ios-swift/5275/3 "2020-08-21T18:36:51Z")

</div>

Closed on August 21, 2020, 6:36pm UTC


