Xcode 6 iPhone simulator running in the wrong resolution - sprite-kit

I am currently working on a spritekit project for school, and the resources we've got handed out, are made for the iPhone 4s resolution. I used my physical iPad mini retina, for the previous exercises, and it seems that after I did that, the resolution of the simulator has changed to the iPad resolution.
I've asked my classmates, and teacher and none of us cannot figure out why.
Rep too low for image. When I run the iPhone simulator for the iPhone 4S, the resolution displayed is 1024x768.

If closing the Simulator and Xcode doesn't fix it, try changing the simulated device type manually from the Simulator menu.

Try setting iOS Simulator Window->Scale to 50%, this seems to have fixed the issue for me for almost all my simulators. Preview of iOS 6 Simulator below.

Related

Iphone only app cuts of the bottom of the screen when viewed in Ipad mode (2x)

my app is very basic and looks great on the iphone but in compatability mode 2x on the ipad it does not show the same screen as on the iphone. it was built as an iphone only app and has no major graphs. this is what Apple told me. 2.10: iPhone apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution
I've had the same behavior on a physical iPad 2 for an existing working iPhone-only app.
In fact, after adding for each Retina images (suffixed by #2x) a corresponding non-Retina version in the project, my app launched successfully on the iPad, without any modifications...
I'm not sure it will work for you, but might worth to try ?

Iphone resolution on an Ipad

We have an app that has been rejected in the review process by the Apple app review people. The cause for the rejection is that the app is not scaling properly when run on an Ipad.
The app was never meant to be run on an Ipad, but there seems to be no point in arguing with them about that.
Apple sent us a couple of screenshots that show our app being run on an Ipad with the top portion of the view cut off. Notice how the app is run in some mode where it looks like an Iphone app and does not fill out the entire display area. When we bring up the app on an Ipad, it fills out the screen and does so without any edges cut off.
Can anyone please tell me how to run the app on an Ipad the way the Apple guys have - Iphone-sized? We believe we have a fix for the issue but we need to reproduce the error and then be able to verify that the fix solves the issue.
(the logotypes in the images are intentionally blurred)
I just went through this myself and here is how I resolved it:
Go into info.plist and see if any of the supported interface orientations are set for iPad. Despite selecting iPhone only, I had iPad supported orientations for four (portrait, portrait upside down, landscape left, landscape right). I deleted those.
I also deleted any reference to the launch screen in the info.plist. My app is pretty simple and there's no preloading of data so I don't really need a launch screen. If you do, you could go old school and make your first VC the launch screen.
I then made these changes in Target-->General-->App Icons and Launch Images
That was the only way I could get it in the sim to run the app at iPhone resolution while running an iPad (iPad2, iPad Air).
If Apple is going to force developers to ensure an app runs on an iPad even if it is made just for iPhone, they should eliminate the iPhone Only and Universal options and just have iPad Only as an option.
To run an iPhone app on an iPad, you just need to:
Acquire an iPad (you can also use the simulator)
Set the target device family in Xcode (it's under your target) to iPhone
Connect your iPad, perform any necessary certificate dances
Run the app on the iPad.
As long as the target device family is set to iPhone, the iPad will show your app in this mode.
Apple is likely running your app on a simulator, not on a real device. Notice the "2X" on the top right. In XCode - you should run the app on iPad Retina Simulator. On the bottom right you will see a button that you can toggle from 1X to 2X.
If you place the simulator in "2X" mode, you will see what Apple is seeing.
What OS are you running on your iPad? Things have changed in iOS 8 - and that's likely why you're not seeing what Apple is seeing. My guess is that your are running an app that was initially developed for iOS 7 or earlier - which means that you need to upgrade from scaled resolution to native resolutions to resolve this issue. Here is how you do it:
How to enable native resolution for apps on iPhone 6 and 6 Plus?

iPhone Simulator no longer running app at 4inch resolution

All throughout development my app has been running fine in the simulator on both the 3.5 and 4 inch screens. However, when I finally added Icons and Launch Images to the app the 4inch simulator no longer works. It runs the app in 3.5inch res with black bars at the top and bottom. It works fine running on my actual iPhone 5 so I think this is a bug with the simulator. Anyone else experienced this, and know a fix?
Regards,
Mike
You are missing the Default-568h#2x.png Launch Image, if it is included in your project make sure that it is also included in you target.

Why my Xcode4.5 doesnt have a iphoneretinasimulator with 4 inch?

I have downloaded xcode 4.5 from ios dev center.(dnt know is it the way).I got a dmg file.when i clicked on it to install it has only one xcode setup is there(nothing like samples,simulator folders which normally has).i inatalled it run my application .but when i got the simulator it has hardware options as ipad,ipad retina,iphone,iphone retina3.5,iphone retina 4 inch.only.the normal iphone simulator has the same screen reselution as 320,480.so the retina display has only the changed reselution screen.Is it correct.Can any body used this can guide me?
If you mean that there is no low resolution Simulator, thats right. If you want a smaller Simulator, you can type CMD-3.

How to turn on iPhone Retina in iOS Simulator?

I built and ran an iOS 4.3 app in Simulator. It initially brings up an iPhone 4 shell. Although all real iPhone 4s have retina display, this simulated iPhone 4 only has a resolution of 320x480.
I look in Hardware > Device. There's a checkmark next to the normal iPhone. So I'm using an iPhone 4 case but displaying normal iPhone resolution? I'm already confused!
iPad
✔ iPhone
iPhone (Retina)
I then switch over to iPhone (Retina). Strangely, it opens iPad with the same 320x480 resolution. Both the shell and the resolution are wrong here!
How am I supposed to turn Retina on and off and show it in the right shell?
iPhone (Retina) is the correct device to be choosing, but I'm not sure why Apple decided to use the iPad shell for that one. To enter 640x960 mode, go to Window > Scale and set it to 100%.
The iOS Simulator does indeed scale. I have no real reason to present on why it would choose the iPad shell, but the purpose of the scaling is to make sure it fits on your screen and stays (relatively) close to handset sizes. Be sure to check Window -> Scale and set it to whatever you find appropriate.