Metal view's currentDrawable is nil in iOS simulator - ios-simulator

CAMetalDrawable in MTKView is nil in when running on the iOS simulator. So I can't render on screen...
Using Xcode 11 GM, with Metal support in the simulator.
Any idea why metalView.currentDrawable would be nil?
Update:
Solved, using macOS Catalina with the new iOS 13 simulator.

Related

Xcode 13 vs iOS 14.4 simulator

I updated my Xcode to Xcode 13, I can able to run the app on iOS 15 simulators and everything working fine
But when I run the app on iOS 14.4 simulator , text in the textfields are cute off when typing and I unable to delete the entered text from textfield
I do see some animation issue on iOS 14.4 simulator
but everything is working fine on iOS 15 simulator , device and iOS 14 device
Only issue with iOS 14.4 simulator with Xcode 13 can anyone help me ?
Issue is resolved, problem is with Mac OS version
I was on Big Sur 11.5.2
After updating my Mac OS to Big Sur 11.6
App is working fine on simulator with iOS 14

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.

Background Audio not working in iOS10,iOS11 on 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).

where are my iOS simulators in xcode 6 after yosemite installation?

I upgrade to Yosemite my Mini Mac (yesterday) and after a long hours (almost a day) the installation was succeeded.
I enter in my source code in Xcode 6.0.1 and after automatically install several things (i just saw the message and wait) i can't see the iOS simulators just iOS Device.
I check in Preferences but i have iOS Simulator 7.1 checked but i don't have any other simulator and i can't see 7.1 simulator either.
Thanks for your help.
EDIT ****
After install Xcode 6.1 I saw my iOS simulators again in Xcode. I saw a message "installed required components" when first launched the new Xcode version, so I supposed that fix it.
Thanks for your help.
In Xcode 6.1 you can add simulators manually.
To do so go to Window -> Devices and press the + symbol left at the bottom.
Then you can choose a combination of device type and iOS version to create.
if the iOS version you wanted is not there you'll be ask to download more simulator and directed to Xcode->Preference->Downloads.
Note: you can directly go to Xcode->Preference->Downloads and download more simulators and it will automatically available in simulator list after download.

Running iPhone 5 Simulator on Snow Leopard

I am running the iOS6 SDK on my mac running Xcode 4.2 on Snow Leopard using steps from this Stack Overflow post.
I'm now trying to get the iPhone 4" screen to work. I have been able to get iOS 6 to show up in the iOS simulator under the Hardware > Version menu. When I try to load an iOS 6 device, I get the error: "The simulated application quit" - "Click Relaunch to try again". It then gives me an option to switch to a different SDK. If I choose iOS6, it again crashes. If I choose iOS 5, it loads correctly.
I also don't have an iPhone 4" screen option under the Hardware > Device menu.
I have copied the iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk folder from the Xcode Disk Image to my computer.
I'm not able to upgrade my computer past Snow Leopard.
So I need to be able to:
load iOS 6 in the iOS Simulator
load an iPhone 4" in the simulator
Problem is Xcode 4.5 on your mac.
The original post says how to run ios 5.1sdk on "Xcode 4.2 on Snow leopard".
Xcode 4.5 is not available on snowleopard.
Install Xcode 4.2 and follow the steps again.
Another idea is to use Virtual Box and run XCode in it. Of course, running OS X on virtual box is quite difficult and not entirely legal (although you do have a Mac, so it can be justified). You can follow this link if interested.
http://www.sysprobs.com/guide-mac-os-x-10-7-lion-on-virtualbox-with-windows-7-and-intel-pc
It's for windows 7, but you should be able to get it to work on OS X as well.
I VMware Fusion 5 (and maybe 4 also, I don't remember) allows Mac OS X Lion and Mountain Lion to run in a VM. So you could install VMware Fusion, and use it to run a virtualized instance of Mountain Lion. Since the hardware is virtualized, it shouldn't matter that your Mac doesn't support anything newer than Snow Leopard.
Performance will likely be poor, though - my experience is that you need at least 4 gigs of RAM for VMware Fusion to run smoothly. If your Mac is too old for Lion and Moutain Lion, it'll probably won't have that amount of RAM installed.
It's said that Xcode 4.2 is the last supported version on Snow Leopard. So no it won't work and you'll have to get Lion.
I found the answer on another StackOverflow post
You would have to be under Lion in this case with both Xcode 4.2 and
4.5 installed. There should be no problem with this.
Don't forget...
As stated in a Stack Overflow post
"I installed Xcode 4.2 on a Snow Leopard and when iOS SDK was published I imported the iOS 5.1 SDK" Look at another Stack Overflow post
Use the 2nd post link. It works perfectly, just copy "6.0" instead of "5.1".
Don't forget that you could just use an external iOS device that can run iOS6
You could always ask for support from developer.apple technical support
Delete your simulator and re-download

Resources