Background Audio not working in iOS10,iOS11 on simulator - ios-simulator

App is not playing audio in background mode in ios simulator, it is working fine for device. But I need to test on iPhone X.

This is a known issue in the iOS 11 simulator. Apps which support background audio are getting incorrectly suspended.
This is not an issue in earlier simulators as they do not support suspending the iOS applications when backgrounded.

This issue is now fixed in iOS 11.2 simulator, available since Xcode 9.2 (currently beta).

Related

VS2019 Xamarin Forms Remote IOS simulator Black screen - How to fix?

Xamarin Forms Project
Microsoft Visual Studio 2019 Version 16.9
Xcode on Mac version 12.4
Using IPad Pro 11 inch running 14.4 as the simulated device and IOS version.
( I tried other simulators )
If I build and run Simulation on the Mac, it works. So i believe it is a remote simulation issue.
If you set IOS simulator to remote it starts and appears to run the simulation
in the simulator but it just shows a black screen.
Ive updated everything I can think of. Mac OS, XCODE on latest available.
Visual Studio, W10, all latest available and everything restarted...
Still it doesnt work. You do see brief at time of deployment dots spinner that reminds of the spinner when shutting down.
How do I fix the back screen simulation. ?
EDIT: With Latest Updates, it works again.
After upgrading to VS2022, upgrading Xcode on the mac.
Even the simulators are now ios15.x
Somewhere is all those updates the problem is gone.
You could have a try with Forget the Device first:
Next step, better need to reboot Mac .
Last, Pair to Mac again with Add Mac manually:
If it also can not work, maybe need to check the quality of network whether is well.

iOS 13 push-notifications delegate methods are not called

In my existing applications I am not able to receive delegate methods:
Xcode 11 & iOS 12.3.1 - Working
Xcode 11 & iOS 13 - Not Working
yes building the code base with XCode 11 and iOS 13 seemed to fix this for me.
built app with Xcode 10 + iOS 12.
installed on iOS12
installed on iOS13.0
send push
only appearing on iOS12
Rebuilt the app with XCode 11 and iOS 13.0
Send push
appears on iOS 12.4 + iOS 13.0
Restarting device seems to fix it. Happened a couple of times.
I Changed the network from wifi to cellular data and it started working again. I even tested it with the old wifi network & it works
Also, if you used your internet connection in the MAC to share using USB. Turn it off & connect your IPhone with a normal wifi or mobile data.
So I created IPA from XCODE 10 and it's working fine in even iOS 13.

Where can I download the iOS 10 simulator runtime file?

I want to test my apps in the iOS 10 simulator, but I'm not sure where to get the .runtime file for iOS 10. I don't see a download for it under Components in Xcode 8. Where can I download the .runtime file for iOS 10 (if it exists)?
Thanks in advance!
EDIT: I forgot to mention: As I was trying to fix another problem (before I asked this question), I ended up deleting all of my runtimes and redownloading them (except for iOS 10).
I ran into this issue earlier today. After installing Xcode - beta, my simulator was still only displaying iOS simulators 9.3 and below. What eventually ended up working for me was:
Killing the currently running simulator with cmd-Q
Control clicking (right click) on the Xcode - beta icon in my dock
Hovering over "Open Developer Tool"
Selecting Simulator from this menu
Once the simulator launched, I began to see iOS 10 in the Hardware -> Device drop down. Hope that helps.
Xcode > Open Developer Tool > Simulator
close And re-open Xcode again
All ios 10 simulator are already downloaded with xcode8 - beta it self. You can download additional simulators from preference -> Components.
And
You can get data for you app in those simulators at following path.
/Users/User_ACC_Name/Library/Developer/CoreSimulator
Ensure existing simulators are closed. Then open XCode 8 (beta):
Go to menu XCode -> Open Developer Tools -> Simulator.
This worked for me:
Go to App Store and Make Xcode Update 8.0
Open Xcode and it installs the components
Go to Menu "Window" > "Devices"
Add A New Device (Important one that supports iOS 10))
At the end the devices list is updated, and you can run the devices that can run iOS 10 in the simulator
Steps 1 to 5 Screenshots
The iOS 10 Beta Simulator is shipped inside of Xcode 8.0 Beta. You do not need to download anything extra. The primary reason for the large size of the Xcode download is for the three simulator runtimes that it contains.
OK, this has been open for long enough and Xcode 8/iOS 10 are out of beta, plus I solved this problem a week after this was asked, so I'll post my own answer. I ended up redownloading and reinstalling the entire Xcode 8 beta which includes the .runtime file in itself. Bit of an overkill, but I didn't have any other options at the time.
Nothing already mentioned worked for me. I was missing iOS 10.3 simulators in Xcode 8.3.3. What worked for me was to reset the simulators using fastlane snapshot tool:
sudo gem install snapshot
snapshot reset_simulators
Source: https://stackoverflow.com/a/37814682/1318739

Xcode 6.1 and iOS Simulator 8.1 very slow to run

I'm using Xcode 6.1 and iOS Simulator 8.1. It takes a long time to run the simple apps that I've written using the iOS Simulator. Build process was ok but then the iOS Simulator will show the black blank launch screen then the app screen for like 5 minutes before the app launch. Many times it shows error "Lost connection to iPhone 6(/5/4s)". Tried to re-start Xcode and iOS Simulator, and MacBook Pro multiple times already. Tried to reset "Content and Settings" in the iOS Stimulator, but doesn't help.
What could be the possible causes? Any advice/solution? Thank you.
I suggest that you boot up the device that you want to use prior to the Build&Run in Xcode. If you hit Build&Run in Xcode while the device is not booted, you will need to wait for the device to boot. This can take a long time depending on your I/O load (eg: if Spotlight is indexing at the same time you are trying to boot, or if your home directory is on a slow volume like a network mount).
Just open up iOS Simulator.app ahead of time and select the device you want to test on from the Hardware->Devices menu. Then it will be ready when you need it.
Make sure 'slow animations' is not selected under the Debug tab in the iOS Simulator. That fixed the issue for me.
Googled on this issue and some said it's a Xcode bug with the 6.1 beta, but I had the 6.1 release version installed alreadt. I even try the 6.2 beta, hoping Apple has a fix for this, but no luck, still the same.
So desperate that I decided to upgrade my 3 years old MacBook Pro RAM and harddisk to SSD. Problem solved with the upgrade! The iOS Simulator runs normally now.

Issues connection safari inspector with ios simular while on VPN

I've been having issues getting inspector to connect to the simulator. The issue happens all the time only when I'm connected into my work VPN from my mac.
Safari 6.0.5.
Xcode 4.6.2
ios simulator 6.0 and 6.1
Basically what I see happening is most of the time the IOS simulator will appear in the safari menu however when it tries to load the inspectable applications it crashes. When safari restarts the menu is gone. It takes a restart to get the menu back but it quickly crashes again.
It appears to be an issue with however these applications share information.
Any ideas?
I have ran into a similar issue:
Every time I tried to inspect/debug my App (ionic App) in the iOS Simulator it crashed!
My temporary solutions was to install Safari Technology preview
Now I can inspect my app and debug without any issue.
I hope it helps somebody else struggling to debug come code lol as I was...

Resources