The app I am working on runs perfectly in the simulator, on an iPad, and on an iPhone. When I try to run it on my iPod Touch, NOTHING HAPPENS...
Xcode says "Building..."
and then it says "Finished running"
Nothing is written to the console and the app icon isn't installed on the iPod Touch and the app never even attempts to run.
Any ideas what could possibly be going wrong would be greatly appreciated. If there was some error that came up that would at least be helpful, but nothing happens whatsoever.
Thanks so much!
EDIT: I've gone back and opened some of my previously finished apps and all of them do this same thing when I try to run them on the iPod Touch...
Could this have anything to do with my having upgraded to XCode 4.2 and the iPod Touch still running OS 3.1.3? The deployment target in Build Settings is still 3.1.3 and up, so I don't think it should be an issue...
Does your scheme target dropdown list show "iOS Device" or does it show the "name" of your iPod Touch (something like "jons ipod touch"):
If it shows "iOS Device", that means your iPod isnt recognized by xcode and you may need to enable the device for developing by clicking "Use For Development" like so:
The armv6 architecture needed to be added to the build settings in order for me to build to the iPod Touch (OS 3.1.3).
In Xcode 4.2, in the Build Settings, under Architectures, armv6 wasn't an option for me in the dropdown menu. I had to select "Other...", then use the + sign to manually type in "armv6" NOT IN PLACE OF but IN ADDITION TO what was already entered there, which was "$(ARCHS_STANDARD_32_BIT)" and then I was able to build my app to the iPod Touch.
As a final note - while I got the app to run on my iPod Touch OS 3.1.3, it did not run as well as I wanted it to (as well as it runs on the iPad OS 5 and iPhone OS 4.2) so while I've previously always supported OS 3.1 in my apps, I sadly ended up NOT supporting armv6 for this one and setting the iOS Deployment Target for my app to iOS 3.2
Related
I can't debug any application on my iPhone. XCode compiles the application, deploys it to iPhone, says it is running the app, and immediately I see the message "Finished running x.app on iDevice". Although the app crashes, it is copied to the phone. After this crash I can start the application on the phone without problems but can't seem to debug any project on the phone. No old projects, no new projects, everything seems to be broken.
There are lots of advices to solve this problem on SO but none of them helped me a bit.
I use XCode 4.6 on Mac OSX 10.8.2.
had the same problem when i changed the project name and the app name.
i've done several times reset to the simulator 'ios simulator' --> 'reset....'.
try it, also try to delete old app in device and simulator, do 'product' --> 'clean', and then try again.
it sounds silly but its working for me when i has the same issue.
Try changing the Version number in 'deployment target' in your App's target in XCode to something else.
Does it run in your Simulator?
Try running in some other device (some other device version,like 4S or 4)
Is the issue with iPad or iPhone or both?
I can't execute an app i have developed for iOs 5.
It works fine on my iPhone 4, but not on my iPod Touch 4th Gen.
I added the iPod to the list of devices used for development in the Xcode Organizer.
But when i press the 'Run' button, Xcode compiles successfully (states 'Build succeeded' in the middle of the screen) and suddenly tells me 'Finished running MyApp on m's iPod'
i'm using Xcode 4.2, iOS is 5.01 on iPod and iPhone.
The App can be tested on the iPhone 4 or in the simulator, but not on the iPod. It's doesn't even start, so an immediate crash of the app is not the reason!
Who knows how to cope with this phenomenon?
the issue was very easy to solve, but hard to find (for me) as no error report nor any message from Xcode gave a hint:
In the Info.plist file, the section Required device capabilities contained gps and magnetometer.
Both aren't available on the iPod.
After removing those required device capabilites the App worked on the iPod
The iTunes AppStore auto generates some listings on its published pages. One of them is "Requirements:" and shows the devices that this app is compatible with. iPod, iPhone or iPad etc.
QUESTION: Where is this REQUIREMENTS listing set during the build process?
I have submitted an app that I 'thought' was properly configured because the Xcode settings for iPhone and NOT iPhone/iPad. But apparently this is either broken or I am totally confused as to where this is set and how its created on the AppStore.
Can someone enlighten me?
If you create an app that is iPod/iPhone only, it will still run on an iPad, just not as an iPad native app. That is to say, an iPhone/iPod-only app will run in an iPhone-sized window on an iPad. I do not think that you can say you want your iPhone app NOT to run on iPad.
When you select iPhone/iPad for your app type in Xcode, that is telling Apple and iTunes that your app binary is a universal app -- built for both platforms.
may be it's done by apple reviewers according to this guidelines limitation
App Store Review Guidelines:
2.10
iPhone apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution
... or else it will be rejected.
What's the problem? When you start a project you get to choose whether its for iPhone or iPad or both. When you submit it to apple this is also checked against your iOS build version and other things (normally though if there's a conflict it'll let you know before submission - eg: if you haven't included the iPad icons and your app says that its for iPad too).
In XCode4 theres a nice handy interface now that you can use. If you select your project in the left hand pane and click on your main target in the main window you can select the iOS application targets that your app is for.
In your Project settings Version, Device and Deployment Target are where the iTunes Requirements come from. If you choose only iPhone, then your requirements will inlcude iPod touch.
I believe this is the answer you are looking for:
http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/App-RelatedResources/App-RelatedResources.html
I installed iOS 4.2 on my 2nd-generation iPod Touch last week. I tried running my application on the device through Xcode, but it didn't work (because Xcode didn't yet support iOS 4). To solve that, I installed Xcode 3.2.5 and the iOS SDK 4.2. Now I can get the app to run in the iPhone/iPad Simulator just fine.
However, I can no longer select "Device" from the menu at the top of the screen. It's a choice, but when I try to click on it, it never actually gets a check mark.
Because of this, I can no longer run the app on my iPod. The other (related) problem is that I can't choose "Build and Archive" from the Build menu anymore because the target is not a device.
Why is this happening? Do I need to change some settings in my project, or something with my device itself?
EDIT: Upon closer investigation, it appears that I can't select anything but the iPhone Simulator 4.0. Maybe there's something wrong with the project file.
Check that the base SDK is set to Latest iOS (currently set to iOS 4.2) for your Xcode project and your target's product, then perform a rebuild and see if your iPod is recognized.
Also try visiting the Xcode Organizer and see if it's asking for anything from your iPod. Typically Xcode will want to collect some data from devices whose OS receive updates, so it can update itself and install your apps on the updated OS properly.
I want to prepare my App for the IPad, but what ever I do I can not get this to work. Without any changes to the project, the Active Executable says "xxx - IPhone Simulator".
So what do I have to do to make my app run in the Ipad Simulator ?!
Thx
Change the target version to iPhone OS 3.2. (The simulator currently only allows iPhone on 4.0 and only iPad on 3.2.)