iOS simulator change devices not working - ios

So I'm working through the BNR iOS objective c book, and I want to run a project on the iPad simulator. according to the book, I change the deployment device in the general settings for the project target as "universal," which I did.
However when I run and switch to any iPad on the simulator I get drawn back to the main method of my project. The iPad does appear after a delay, but without the app I built. I've set all the views in my xibs to "inferred" but I still can't run my project on iPad.
Any help would be appreciated, thanks.

This is probably because the app is crashing. it's possible if you created the app without setting it to universal it is missing a storyboard for iPad which would cause a crash and take you to that area. You should look at the console logs and see what is happening. There should be good information in there as to what is missing or why it's crashing right away.

Related

Why does my swift project look different on my device vs. the simulator?

I am working on a xcode project and when I run the app on the simulator everything looks as it should but when I run it on my real device (iphone 7) the changes I made in the storyboard are not applied.
I changed the text on the tab bar on one of the tabs from "kort" to "favoritter" and on the simulator this applies but on my device the text is still "kort" as before.
I have tried to delete the app from my device and clean the build from xcode and then install it again but it did not help.
Does anyone know why this is happening and how to fix it?

Black bars on all sides when running iPhone app on iPad

I have an iPhone app and I am trying to run it on iPad. But when I run I see black bars on all the sides as shown below:
I am using a LaunchScreen.storyboard file. The LaunchScreen.storyboard is set as launch screen (checkmark is checked). In the target settings I have the following settings:
Any ideas?
Screenshot:
Edit: That apple tester got it wrong. your app is good !!!
I created a new project that only support an iphone and ran it on the ipad simulator. I calculated the ratio of the screen inside it is equal to 0.69. the same as the ratio of the screen inside the screen shot sent to you by apple.
Apple tester got it wrong. looks like that is the new behaviour on the
iOS 10 and that apple test does not know it. reply to them with this
they should accept your app without resubmitting new binary.
Original Answer:
Deleting DerivedData, Clean and remove app from simultator should solve the problem. Or maybe you didn't support iPad:
Its because of app is only for iphone, thats why if you are run in iPad it shows actually iphone's view, Enable for ipad and then check.
The Apple tester did not likely get it wrong. Check the following:
Go to your app's target. In the General tab, look at the Deployment section. What is listed for Devices? If it says Universal, change it to iPhone.
Go to your info.plist. Remove any keys pertaining to the iPad. (Supported interface orientations (iPad) may be there, for example.)
Now, your app should run correctly on an iPad, even though it was made for iPhone only.

Objects showing in iPhone Sim but not iPad sim

Full disclosure: I'm very new to iOS development.
Using Xcode Version 7.2.1, Swift programming language, targeting 9.0
I have a very simple app. Universal. When running in simulator mode it works fine for any iphone chosen in the simulator. Everything shows up where it's supposed to etc.
When running it in iPad simulators, any of them, the only thing showing up is the navigation bar. All objects that are supposed to show up on the screen, are gone.
When debugging, the objects seem to get created alright.
Maybe there's something to be done in AppDelegate?
As I imagine this is a really noob problem I again like to emphasise that I'm grateful for any suggestions you may have.

Xcode 6 app won't stop launching in zoom mode

I have an app that was created in a previous version of Xcode. It used to not be universal so it launched in 1x/2x mode on an iPad.
Now we want it to run with universal storyboards and size classes. We have converted the storyboards to size classes and changed the project setting to "Universal". We have set up the constraints and it runs fine on iPhone 6 and 5 flavors. But when we launch on an iPad is launches in 2x Mode automatically.
I can not figure out what is going on.
Can not find anything here or on the googles that speaks to this issue. Everyone seems to have success with the steps I enumerated. One post I found here talks about using a launch file, but I changed our launch file to our main storyboard and it still launches in 2x mode.
Appreciate the help. Let me know if there is any screen shots or more info that would help make things clearer.
EDIT
Adding screen shots for the first comment below.
Edit #2
I wonder if it has something to do with the xibs in the storyboard not updating in the newer Xcode. This project was started long ago and the days before storyboards. All I know is that with the latest update of the beta Xcode it just magically works. So strange.
Problems solved when the latest Xcode Beta came out. Possibly something weird with the xibs since this is an old/converted project that stated before storyboards.

Xcode 4 iPad simulator - changes not showing

When I run a basic HelloWorld app using iPad simulator, none of my GUI changes are showing up. For example, I added a label and a text field, and when I run using the iPhone 4.3 simulator, I see these changes. However, when I run using the iPad 4.3 simulator, I see the original "My Universal App on IPad" text that was part of the boiler plate xib that XCode generated when I created the project.
What am I doing wrong?
Sometimes there are issues with syncing resources - if you either delete the app from within the simulator, or just do a reset on the simulator all should be well.
If that (or possible a clean and re-build) doesn't sort it, then I suspect the problem lies within the resource handling code itself.
I tried using a different project type and it seemed to work ok on the iPad simulator. Not sure why though.

Resources