I'm trying to test my phonegap app on my ipod touch 2nd gen. I have the latest xcode on lion 10.7.1. There were no errors when I ran the code and even the console(in the organizer) showed nothing. Even though xcode says that the code built successfully and ran, it doesn't show up on my ipod at all.
My ipod is provisioned and I also ran the code directed to the ipod, not to a simulator.
What could this mean?
Is the ipod outdated?
note: This answer assumes you will be able to run your app on an iPod touch. If you are using a resource not available on an iPod touch, like GPS for example, you may be being prevented from running your app by a GPS device requirement(see required device capabilities).
This sounds like a classic example of trying to run on an iPod touch 1st or 2nd gen without jumping through the apple imposed hoops. (Says finished running but never runs, logs are just spinning indicators.)
To build for these older devices, you must jump through these hoops:
How to add support for iOS 4.2, armv6 in Xcode 4.2 and up:
Set your deployment target to 4.2 or earlier:
Modify Architectures to include armv6 like so:
1)Select Other,
2) Click on the "+" button,
3) Type in "armv6",
4) Click done.
Then remove armv7 from required device capabilities by clicking the "-" button in that row.
I personally use this method constantly to run apps on my iPod touch 2nd gen with the newest Xcode.
In fact the project that I used for this example now runs on that iPod.
Related
I'm working on an app which works fine in an iPhone4. I'm trying to run it in a 2nd generation iPod Touch, but doesn't work, xCode shows a message of "Finished running appName on iPodTouch2" after compilation without errors and warnings.
How can I know the reason it's not working or which framework (AVFoundation, CoreVideo, CoreMedia, AudioToolbox, MediaPlayer, CoreLocation, etc...) is not compatible with it?
This has been answered many times on this site. But to sum-up: Add armv6 to device architectures and remove armv7 from the required device capabilities.
Here is a link to an answer with screenshots of the steps.
I've been having trouble getting my app to run in this configuration. Has anyone figured out how to do this? Currently, my app doesn't even show up when I try to run on the device.
iOS5 is not supported by iPod Touch 2nd Gen.
No wonder why you're having trouble ;)
You should set Deployment target of your Project to lower firmware version (f.e. 4.3), because iOS 5 is still beta, we are not allowed to run the aps on it.
I'm starting to send out a beta version of my app for users to test. One came back and told me that the app crashes on her iPod Touch (2nd Gen). How do I debug for this considering I don't own one. All I have is the iPhone 4, yet there 9 other devices (each generation of iPhone, iPod Touch and iPad) that I would like my app to run on. Any advice?
EDIT 1
There is no iPod Touch hardware option in the simulator. Should I just assume that it is treated as an iPhone?
Hoptoad App is great for this. You can sign up for free for up to 1 project, and the implementation is very easy.
http://hoptoadapp.com/pages/home
For starters get the crash logs from your users' devices and try to debug based on those. Not a big help in testing on devices you don't have, I know, but at least you'll be able to figure out what crashed on each device your beta testers have...
You could try Apple's IOS simulator.
http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/iphone_development/125-Using_iOS_Simulator/ios_simulator_application.html
To set the iOS release used in the
simulation environment, choose
Hardware > Version, and choose the
version you want to test on.
I have a project in XCode with two targets. One target is for the iPhone only and the other is for iPad only.
The iPad target works as expected, but the iPhone target does not.
If I try to run it in the simulator, it starts the iPad simulator every time, but in iPhone compatibility mode with the 2x button.
If I try to run in on my iPhone 4 device, I get this message:
Can’t install application. The application at /Users/jacob/Documents/code/Projects/TVGuide/build/Debug-iphoneos/TVGuidePlus.app can only be installed on iPads.
This is XCode 3.2.6 and the iOS 4.3 SDK.
I have TARGETED_DEVICE_FAMILY defined at the target level and it looks like it is set correctly. The problem is the same for debug/release/...
have you selected the simulator as iphone?
most iphone apps are supposed to work on ipad too.
otherwise you may need to go to the project tab and go to project settings. there are some setting involving the choice of ios. i have not tried this since i havent recieved the error but i hope that it works.
Actually it turned out that I had Armv7 selected as architecture for my iPhone build. After changing that to armv6, I can now install and run the build on my device.
I'm fixing my app to be a universal binary. Testing on the simulator seems to default to the iPad. For small corrections like checking orientations and small UI updates, the only way I can find to get the iPhone version is to plug in my iPhone and build and run on device.
Loading the debugger takes valuable time, when running on simulator is so much faster for this kind of work. Can I set the simulator to default to iPhone for this? Setting it to 3.1.3 doesn't work because of the 3.2 code I have in the binary for the iPad.
EDIT:
The Hardware -> Device, and ->Version menu choices in the simulator quits my app. When I relaunch, it goes back to the iPad. The app is not installed in the simulator
If you don't have the latest xcode, get it.
Set the project info to build for 3.2, but in the build drop down pick iPhone Simulator 4.0 and it will open in the iPhone simulator instead of the iPad simulator.
That is the dilemma: if you want to use OS 4 on the iPhone, you have to use iPhone SDK 4, which comes with XCode 3.2.3.
Previously I used iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a, where the simulator was fine, but now after I update the iPhone to OS 4 (which is by iTunes), I cannot use the SDK 3.1.3 any more, and the simulator 3.2 which comes with SDK 4 actually does not work for iPhone at all!
Even when you specify the "iPhone OS Deployment Target" to "OS 3.1.3", and an iPhone-frame shows up in the iPad simulator, many functions are not responding at all.
Does Apple have an official answer to this dilemma?
I finally solved this problem myself.
First, install new version of xCode, which is xCode 4.
Then set project scheme to iphone simulator and run app in xCode several times.
And re-install xCode 3 and the problem will be gone away!