# didFinishShutdown not called on only macOS, it works on iOS

**URL:** https://forum.deepar.ai/t/didfinishshutdown-not-called-on-only-macos-it-works-on-ios/335
**Category:** SDK
**Tags:** effect-help
**Created:** [June 8, 2023, 7:07am UTC](https://forum.deepar.ai/t/didfinishshutdown-not-called-on-only-macos-it-works-on-ios/335 "2023-06-08T07:07:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![user5](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.deepar.ai/user5/32/487_2.png) [@user5](https://forum.deepar.ai/u/user5)
#### Post date: [June 8, 2023, 7:07am UTC](https://forum.deepar.ai/t/didfinishshutdown-not-called-on-only-macos-it-works-on-ios/335/1 "2023-06-08T07:07:44Z")

</div>

@jelena  
Hello~  
didFinishShutdown not called on only macOS after call shutdown. it works well on iOS.  
i called shutdown after below code run.

i wonder why not called on only macOS

#if TARGET\_OS\_IPHONE  
[\_deepAR setLicenseKey:@“ioskey”];  
#else  
[\_deepAR setLicenseKey:@“mackey”];  
#endif  
\_deepAR.delegate = self;  
[\_deepAR changeLiveMode:NO];  
[\_deepAR initializeOffscreenWithWidth:640 height:480];  
//\_arview = (ARView\*)[\_deepAR createARViewWithFrame:CGRectMake(0.0, 0.0, 1.0, 1.0)];  
\_deepAREffectString = [[NSBundle mainBundle] pathForResource:@“galaxy\_background.deepar” ofType:@“”];  
#endif
