iPad App Keeps Running as an iPhone App? - iphone

I recently upgraded XCode to run iOS 4.2 from iOS 3.2. However, now, when I try to run my iPad app, it appears as an iPhone app in the simulator! It appears as the smaller box with the option to expand 2x. Does anyone know why this would be so?
In addition, although the application builds and runs (albeit incorrectly), XCode still says that the Base SDK is missing. I have gone into the Build Info for the target and the project and set the following:
Base SDK: Latest iOS (currently set to iOS 4.2)
Targeted Device Family: iPad
iOS Deployment Target: iOS 3.2
Edit Thanks a lot for the comments; now there is no longer a Base SDK missing, but unfortunately, the app still runs as an iPhone app...
When I load a UISplitViewController, I get an exception 'UISplitViewController is only supported when running under UIUserInterfaceIdiomPad'.
This all seems very strange to me. Any help is greatly appreciated.
Thanks

The installed app could be broken.
What happens when you delete the app from the Simulator and do a clean build and run?
The Simulator could be broken.
What happens when you create a new different iPad app from an Xcode template?
You configuration could be broken, or you could have different settings for different targets and builds than you want, or the wrong plist or plist keys, or the wrong xib. If the new template app works, compare these one by one.

I eventually was able to fix this problem. I attempted all the methods outlined by the other answerers, but none of them worked. However, when I upgraded to XCode 4, the problem fixed itself.
I honestly don't know what changes to my app were made by this upgrade, and I am still baffled at why the project was not compiling before. I suppose upgrading your environment is one (somewhat unsatisfying) way to fix this sort of bug....

Check that you have set the appropriate settings for the current build target as well as the base project. So from the project menu:
Edit Project Settings
Edit Active Target blah
I have often forgotten to check the settings for the current target and had a similar experience.

Related

App runs on iphone only once then xcode cannot find the Iphone anymore

So this is the issue I am having. When I plug in my iphone xcode recognizes the iphone and everything checks out fine. I can then build my project and run it on the device. It works fine, for the first time. If I build the project again and try to run it again xcode gives this error:
No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.
Also instead of my phone name in the top left it changes to iOS device.
Any ideas?
thanks
This is caused by your versionnumber of your iPhone/iPod/iPad. If you've set up the Deploeyment target to high like if you have an iPhone with IOS5 and the target is IOS6 this error occurs. You may had simply to decrease the value to something under your device IOS versionnumber or the same BUT not above the value otherwise it won't work.
Go to your project > traget> deployment target > set to something that you want.
Thats all you need to do.
I figured out my issue. It turns out that my Cord was bad. Once I switched out the cord everything worked great.
Thanks for any help anyone gave.

Why does Xcode 4.1 say my iPad only app can run in the iPhone Simulator?

I have an iPad-only app (targeted device family is iPad, architecture is armv7), but Xcode offers both iPhone & iPad simulators to deploy to in the scheme/device dropdown. If I create a new iPad-only project from scratch, only iPad Simulator is available as a deployment target.
Why does my iPad-only project show iPhone Simulator as a device option?
Just resolved this in our app; it was due to a sub-project being set to target iPhone. If you have any sub-projects, do check their target settings as well; because apparently it can affect your top-level scheme selections.
In case you have a tests target too, make sure in its build settings that the Targeted Device Family is set to iPad as in your app's target. This might sound silly, but I have seen it before.
Then, as stated in the other answers, check the same option for any sub-project's target you may have included in your app's project.
Do a quick search of your target's build settings for "Universal" and change this to iPad if necessary. That's the ONLY reason why this would be happening. The only other thing I can suggest is restarting your computer. Sometimes Xcode has even given me Mac build options for iOS apps! If none of that works, well, if it ain't broke don't fix it, as in if you can build and test it in the iPad Simulator, what's the problem??
This might be occurring if you have initially started a universal app, and changed it at a later time without readjusting the settings. Just change the settings (click on the main project folder and update the settings) and there should be no problem. You can also simply create a new iPad app and copy all your files there. You can select the iPad device family to deploy your app on, and it should remember that setting every time you run it, so don't bother changing it or figuring out why it allows you to deploy on both devices; as long as it's working, keep on programming and testing.

No simulator option while running the code

I am not able to see Simulator option in my XCODE for one of my project (Only device is there) but it is coming for other one. What setting I need to do?
This was because I was trying to build the app on IOS 4.0 which was missing in my XCODE.

Updating iPhone application from 3.0 to iOS4

I was just wondering if anyone knows of any articles relating to upgrading an iPhone application from 3.0 to iOS4. (Thanks for this iWasRobbed).
While the application still runs on iOS4, it will not run on the iPhone 4, but does on my iPhone 3G.
When I deploy the app on the iPhone 4, the Default screen loads and it will sit there hanging. The only inclination towards a problem I get is this warning:
warning: UUID mismatch detected with the loaded library - on disk is:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/System/Library/Frameworks/UIKit.framework/UIKit
warning: UUID mismatch detected with the loaded library - on disk is:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress
Thanks
James
James,
Apple has provided this checklist: http://developer.apple.com/iphone/checklist/
It generally should not be that big of an issue. Typically, you just set the baseline SDK as 4.0 and the deployment target as either 4.0 or something 3.0+.
If it is not running on an iPhone 4, you may wish to explain further what specifically it is doing or not doing when you attempt to run it on that device. Keep in mind that all apps (for the most part) that were designed to run on 3.0 and above will typically run well on an iPhone 4.
There might be some issues with deprecated methods, so make sure you resolve those prior to installing and running the app. You should get a compiler warning for any of those, if not check your target settings and there should be a checkbox for it.
Other than that, I'm not sure what else would prevent you without understanding further details of your project.
As additional information, you should really look into the WWDC 2010 video called "Future Proofing Your Applications" (watching it now :)
That is most likely a mismatch between what iOS your iPhone 4 is running and what SDK you're using in Xcode. The UUIDs are mismatched because the iPhone 4 is using a different version SDK to what you've coded in.
Solution, install the latest SDK and make sure your iPhone matches this. The latest out is 4.1
I had the same problem and think I have solved it because the problem has gone away.
Firstly I deleted the build folder. Then I Installed the latest version of ios (4.1 in this case) onto my iphone through itunes. Afterwards i installed the latest xcode and iphone sdk package from the apple devlopers site.
This in itself probably fixed the problem but just to be sure I added a new provisioning profile for the phone on my computer and everything worked great afterwards.
Hope that helps

There is no SDK with the name or path 'iphoneos2.0'

I keep getting this error.
There is no SDK with the name or path 'iphoneos2.0'
I am running some templates at
http://appsamuck.com/day1.html
I'm running the latest sdk, in the pop up menu (simulator) there is an option iPhone Device 2.0 (missing) (Base SDK)
Then just select another SDK: 3, 3.2 or 4.
Most examples will work, even if they were prepared for SDK 2.
Oh, i have just met this problem last night :) I think your project write in xCode 3.2.2 or earlier but you try to run it on xCode 3.2.3. And you need to tell xCode to run your app in iPhone Simulator with iOS 4 (iPhone running iOS 4 can run iPhone's app write for iOS 3). If that's your problem do some step to slove it:
Select "Project" menu on xCode.
Select "Edit Project Settings" submenu.
Look at line "Base SDK for All Configurations", select iPhone Simulator 4.0 (May be it look like disable but you can select).
Run your project to compile your project.
Good luck :)
Looking at the code here, it's one of the very first iPhone dev tutorials written, and it's evidently not been updated to reflect the current SDK and Xcode versions.
I would suggest starting with a more modern tutorial, then coming back to this once you have the confidence to be able to understand and fix the code.
Go to the project
project> Edit project Setting
Change BASE SDK to the latest IOS
after that
Code Signing Identity: Change it to DON'T CODE SIGN
after doing this some of my applications was working fine but not all of them.