Xcode 4 iPad simulator - changes not showing - ipad

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.

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?

Launch Images not displaying after updating to Xcode 8.2.1

I downloaded Xcode 8.2.1 as I had updated my iphone to the latest version. I ran xcode and updated the current app I'm working on to the project recommended settings upon first opening of my project (This pops up after new version of xcode). After this I tried to run the project on my device (iPhone 6) and it simply loads an enlarged app icon instead of the iphone 6 size launch screen which I have in the Images.xcassets folder. Annoyingly I tested the app on the simulator (iphone 6, 10.2) and it works completely as it had been doing prior to xcode 8.2.1.
I'm at a complete loss as to what could be the problem: ive tried everything from restarting xcode, cleaning project, deleting and re-adding launch images, and made sure the launch screen entry was empty as I don't use them (removed the option from the plist as well).
Everytime I run the app on my own device, it crashes and is looking for a completely different storyboard (I use multiple storyboards for different screen sizes, which is a lot of work but works for me) and thus its telling me that there isn't a launch screen for the iPhone 6 screen size it has detected. But obviously there is as it works on the simulator.
Anybody have any reasons as to why this might be? I'm thinking it could be a bug on behalf of xcode 8.2.1, a lot of other users seem to be having odd problems as well with this version. For further clarity, I opened up another project but didnt update it to the recommended project settings that xcode displayed again, I ran the app on my device and hey presto! It worked with no issues.
Is there any way of reversing the update to the recommended project settings?
Here also Same Issue, i upgraded to 8.3:
Ans: remove "Launch Screen Interface file base name" from plist. it will work.
Solved: The solution was simple and I wasted 5 hours on it. All I had to do was (1) remove the launch images from the xcassets folder, (2) rename launch images without .png extension and (3) I simply added them back into the Images.xcassets folder and ran the app again, this time it worked and showed the launch image correctly.
This might save someone hours of agony as I didn't think Xcode would be funny with a file extension such as .png

iOS simulator change devices not working

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.

Why does simply looking at my Storyboard in XCode 5 ruin my app?

I have an app built in XCode 4 against iOS6. If I open that workspace in XCode 5, clean and build my project, and run it in the simulator, it works (looks a bit different and needs some work, but it works). If I the simply navigate to my Storyboard and do absolutely nothing else, running the app in the simulator again results in my Photo Slideshow showing up black rather than showing pictures properly. A diff reveals it made some changes to the story board file when I looked at it. Rolling back the changes pertaining to my slideshow only is not effective. Rolling back all the changes works until I look at the Storyboard again.
It's obviously capable of working properly - why does it have to ruin everything just because I look at the Storyboard? Now I have to rebuild this part of the app, which is painful because I didn't build this part of the app to start with. This is not great for maintainability.
OK I have been messing with this all day.
In a nut shell keep or install Xcode 4.6 to deploy iOS 6.1 and before apps.
So for Xcode 5 messing stuff up, yes it's not working as expected.
I would expect to set the target
And have it look like an ios 6.1 app but it does not it looks ok in the viewer but both on the simulator and a iPad it looks bad. I have already filed a bug report.
ALSO if you have Autolayout checked in your 4.6 project and then try to look at it in Xcode 5.0 be prepared to kill Xcode as it tries to move everything around. In my case many table views got stuck in an endless loop and finally got a warning that tables can not exceed 10,000 :)

iOS simulator issue

I downloaded xcode 4 and created a single view application with storyboard.
I added two views to the segue and tied them back to the home screen. After that I must have done something weird. The only thing I can think of is that I put the iOS simulator on the dock. I've updated the project and the changes are not being reflected on the simulator.
What I think is the issue is that I have two iOS simulators on the computer. For some reason whenever I try to find one in spotlight or in the applications it only shows one. When I click on it it is the old iOS simulator from Xcode 3. So what I did was I looked at stackoverflow and it suggested cleaning and running the project. That did not work.
After that I looked harder and found that I should reset content and settings on my new iOS simulator. That's what I did and now when I build and run it it is saying that it can't find my storyboard.
Generally you don't run simulator separately, but let Xcode fire it up for you. So, in Xcode, in the upper left corner you can select your scheme (and you select whether you want it on the simulator or the device). You can then select the simulator and then press the "Run" button and it should fire up the simulator for you. No need to fire the simulator up separately.
If Xcode is not behaving well (i.e. there are no error messages but the simulator never comes up automatically when you tell Xcode to run it on you simulator), I'd suggest (a) quitting and restarting Xcode (sometimes it gets in a weird state); (b) cleaning your project; and (c) try running it again.
In terms of not finding the simulator in Spotlight, it's now part of the Xcode.app bundle, so Spotlight won't find it. But if you want to dock it (not sure why, but feel free), just fire it up from Xcode by running an app on the simulator and when it appears in your dock, control-click on it and select "Options > Keep in Dock".

Resources