Question: iOS - background mode with Xcode connected in debug mode

Question

iOS - background mode with Xcode connected in debug mode

Answers 1
Added at 2016-12-25 20:12
Tags
Question

I'm using background audio mode in my app to play music, but when the track list skips between tracks the app is shut down. My problem with tracking this bug is that when I run the app in debug mode with Xcode connected the app will stay in foreground forever! Is there a way to tell Xcode to let the app enter it's background mode with Xcode connected in debug mode?

Answers
nr: #1 dodano: 2016-12-26 07:12

To simulate a background fetch, launch your app and then go to Xcode and choose Debug > Simulate Background Fetch.

enter image description here

You can also configure a scheme to control how Xcode launches your app. To enable your app to be launched directly into a suspended state, choose Product > Scheme > Edit Scheme and select the Background Fetch checkbox.

Source Show
◀ Wstecz