iOS Simulator "Inner" Resolution - react-native

I saw the resolution questions:
iOS simulator for iPhone 5- 1136 x 640 resolution
I have done
react-native run-ios --simulator 'iPad Pro (9.7 inch)'
I even went to "Hardware" menu and selected the device again.
My app launches in dimensions of tablet, however the contents within are not rightly sized, it is hugely zoomed. I fixed this accidentally before but I cannot figure it out now. Here is a screenshot of my situation:

It seems like you are running a zoomed in iPhone app (which is possible to do on iPad, so the simulator does what it's supposed to do). You need to set the app from iPhone to Universal in Xcode to tell it that your app is targeted for iPad as well.

Related

ios app lags and freezing iphone 6s/7/8 in iOS 13

We have an iOS native app developed with Objective C and using auto-layout with Storyboard for UIs.
It is working fine in iOS 12.4.1 in all devices and it is not
working now in the iOS 13 on iPhone 6s/7/8 only.
Only this screen size has the issue.
Other than that all other iphone screens are supporting upto to
iPhone 11 Pro Max.
And this issue is not there in the iPhone 6s/7/8 simulators. Only in
the real device.
When it is installed on iPhone 7 and run the app it lags very much
and freeze the app occasionally, I have to close it, But the iphone is also gets laggy.
I am not getting any errors.
I thought this is layout issue, so I've Removed constraints of all first showing screens and re-added the constraints. And tried to debug with XCode Instruments to test performance but that didnt show me any issue also(I am not much familiar with using XCode Instruments).
I am stuck with this issue for several days.
And I couldnt find anyone having the same issue.
I appreciate any help regarding this.
What could cause this?
I was facing a similar issue and found out that SearchDisplayController which is deprecated, was being used in the code and storyboard as well. That was causing my app to crash on real device, but not on simulator with iOS 13.1.2. After removing the SearchDisplayController, things worked fine for me.

How to debug iPhone X simulator from safari?

I'm trying to debug iPhone X simulator from safari, so that I can adjust my CSS. But it doesn't appear under Develop toolbar. Where on other hand iPhone 7 simulator appears. Web inspector is enabled on both devices. On Safari Technical Preview I have the same issue.
Perhaps anyone knows how can I make iPhone X simulator to appear in Develop toolbar?
Try restarting Safari while keeping your simulator open. That did the trick for me.
It appears that OSX version has to be updated to High Sierra Beta 10.31.1

Xcode 6.1 - Map View appears blank in iOS7 simulator or iPhone 4

Since I last updated to Xcode 6.1 and Yosemite, the map views in my app started to appear blank either in ios7.1 simulator or my iPhone4 (iOS7.1).
I could replicate the situation by creating a brand new single view application with just a MKMapView and although it appears correctly in iOS8 simulators, in the iOS7.1 simulators or my iPhone4 it shows only a blank screen. The iOS Deployment Target is set to iOS 7.1.
I tested this simple app in a friend's Mac with Mavericks but the same situation occurs.
Is this some bug of Xcode 6.1 or SDK, or do I have to add something to run maps on iOS7?
I faced the same problem. To fix it, you have to disable Size Classes. Go to Storyboard and in the right sidebar, you should see a check box saying 'Use Size Classes' under 'Interface builder document'. Untick it and you should see the map again.
Read this to find out why this happens:
iOS MkMapView blank after moving to Xcode 6

iOS app with iphone target only (non-universal) renders fine on ipad iOS7 but not on ipad iOS8

When I run my targeted iphone app on an ipad with iOS7, it renders in iphone mode and this is exactly what I want. In fact, when I print the size of the window bounds, it correctly prints out 320 x 480. However, when I run the same app on an ipad with iOS8, the app goes into full screen mode as the window bounds are now 1024 x 768.
Do you know how I can restrict the iOS8 ipad to render the app as an iphone only app and not a full screen ipad app?
NOTE: I did my testing on the same iPad device before and after the upgrade from iOS7 to iOS8. I'm also consistently able to repro this with the ipad simulators
This might be caused from a known bug in XCODE-6 that is fixed in XCODE-6.1 beta. If you are using the storyboard launch file, the iOS 8 iPad will not be scaled from iPhone mode, but will be treated as an actual iPad. To fix the bug, use static launch images by hitting use asset catalog on the following screen in the target options, general tab:
After this, make sure to have your static launch images uploaded to the .xcassets, or update to xcode 6.1 beta to fix the issue.

splashscreen is different in simulator and device

I got a splash screen as Default.png this works on the simulator but when i debug my app on the ipad device itself, i get an old Default.png which does not exist anymore.
why is the splash screen different in the simulator and the device?
I have had this problem before, the way i fixed it was cleaning the project, deleting the app off of the device, turn off the device, restart it and then try again.
If that doesnt work check all your images, it could still be holding a reference to the old one somewhere.