Application failed to install in iPad2 - ios5

My Application runs fine in iPad simulator, but when i try to install it in iPad 2.. It throws me Application Name Failed to install.
iOS version is 5.0.
I am using Titanium Mobile for development. The same Application works fine in Android emulator and device.

You need to have a developer certificate before you can deploy the application in iPad2.
https://developer.apple.com/programs/ios/
Once you have got the certificate, you can right click on your project and select install on IOS device. It would ask to upload your dev certificate which you have got for your iPad. From there i see no problem in deploying your app.
This would generate an .ipa file.
Note: for iOS 5.0, you need to have 1.8 and above to make it work properly.

Related

How to debug real iOS device from windows machine in Ionic

I am working on ionic application. I am able to debug app in real android device.
So, is it possible to debug ionic app in iPhone by connecting it through USB cable from CPU?
You require an iPhone and a mac with XCode installed.
If you are building for iOS, you’ll need to sign up for an Apple
Developer account to test as a native app on an iPhone or iPad.
Unfortunately, this costs $99 per year (don’t blame us!). Once you
have an account and you have set up Xcode with your certificates to
enable device testing, you’ll want to open the Xcode project from
platforms/ios/ and do your testing from Xcode.
Source
As you have mentioned you do have an iPhone and Mac with XCode, see the steps below:
Run ionic cordova prepare ios
Copy across your platform/ios folder to your Mac
Open the XCode project on your Mac that is located in the platform/ios folder.
Select a device or target simulator in XCode and then click on the play button to start debugging.

Installing a TestFlight app on iOS iPhone Simulator - Registration Failed

I'm attempting to install a TestFlight app on XCode's iOS simulator using the iPhone simulator. The link to the TestFlight app takes me to a page that says "This device will need to be registered before it can install betas."
There is a friendly Register button. When I click the register button, it says "Registering Device" and then it takes me to the iPhone's General settings page. If I navigate back to the TestFlight page, it says "Registration Failed."
Does anyone know of a way to install a TestFlight app on the iPhone Simulator? Thanks.
The app you are trying to install is an app compiled for arm architecture, which is different from the simulator (the simulator is not an emulator). The simulator only runs x86 apps compiled for it. You will need to contact the developer of the application to send you the x86 binaries, and add them directly to the application directory of the iOS simulator. The directory (on Xcode 4.5 beta 4) is /Applications/Xcode45-DP4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/Applications. Note that the simulator's sdk version has to match the version of iOS you are trying to use the simulator with.
If you need test your Release application
you can run your on a release build go to
->Product->Scheme -> Edit scheme-> in Run change debug to Release
in this you can check your release build in simulator
If I had to guess, I would presume that since the Simulator is not a valid device, it is not able to install the TestFlight Profiles onto the device, and therefore failing registration process (when you are directed to the iPhone's Settings, it tries to install a profile on your device).
May I ask why you are trying to install the app via the iPhone Simulator? If the app's code exists on GitHub, you can use the GitHub for Mac app to checkout the code, and XCode to compile the project and build it to the iOS Simulator. There should not really be any reason to have to install TestFlight on the iOS Simulator.

App builds & runs in iPhone Simulator, but doesn't deploy to iPhone

The app I'm working on builds & runs just fine in the iPhone Simulator, but, when I try to test it on an iPhone 4S, XCode says, "Finished running ..." immediately after I click "Run", and, when I look at the iPhone, there's no icon for the app at all. It's as though XCode doesn't detect that XCode isn't deploying the app to the device.
I've got a signed certificate, a developer profile, and a valid provisioning profile (XCode's Organizer says so). The provisioning profile is present on the iPhone.
I've tried restoring the iPhone, and I still get the same error.
How do I successfully deploy my app to the iPhone?
Edit:
It's deep in the comments of the below answer, but the problem was that I had a misspelled within Info.plist's required Required device capabilities section. I solved it by deleting that row.
few things to check:
clean your build folders and rebuild. In Xcode project navigator, under products folder, is your app present?
open iTunes and try dragging this app into iTunes. Will it show up in iTunes or do you get an error? if it shows up, can you install it to iPhone via iTunes?
Is you iPhone iOS version and Xcode version and build settings all in sync? I know some version of Xcode 4.x have issues build and running apps on iOS 4.x.

iOS app won't run until device reboot after ad hoc install

Every time I install my app to an iDevice using the ad hoc distribution method (e.g. archive, create an .ipa file and let my testers download it), the app will not run until the device is rebooted. Much like the second link posted below, I did not have this problem before upgrading to iOS 5 and XCode 4.3.1 -- currently running iOS 5.1 / XCode 4.3.2 and still having the same problem. If I connect the iPhone / iPad using USB (and run directly from xcode), the app installs normally and runs fine.
Currently, when installing ad hoc, one of two things happens:
1: The app installs "normally" and the icon is visible -- but pressing it brings up the launch image, then the app fails to black screen -- then back to springboard. App never gets any further.
• or •
2: App installation seems to proceed normally, then when the "Installing..." phase is complete, the app icon simply vanishes. Reboot the iPhone and the app icon is exactly where it is supposed to be.
In either case, after a reboot of the iPhone it runs fine.
Any suggestions??
This is the closest issue I could find, but I have this problem on iOS 5.0 / 5.1 and even when installing my app to devices for the first time:
iPhone app fails to launch after install on iOS 4, works after device reboot
I also found this article, so I checked my Entitlements setting (in Targets) -- Not enabled: ad hoc app failed to install on real iPad
I've had this exact problem before when I have a different 'Bundle Identifier' set in the Info.plist to the App Id you set up in the provisioning portal.
If that doesn't work, you might try checking the log of your device when attempting to install the ad hoc ipa.
XCode -> Window -> Organizer -> Devices -> Your device -> Console

how to run project in iphone mobile

hi i am new to iPhone application development. i developed a simple project on xcode now i check it in mobile. how can i done this ,means need to create exe file or any thing else
pls help me
The first step is to join the iPhone development program. Once you that and follow the instructions of createing a developer certificate you can run your code on a physical device. If you're using the latest version if Xcode just connect your device - choose device in the build settings and build & run. It will install the app on your device and run it.
iPhone developer program
Obtaining your iPhone Development Certificate - Requires login to apple dev center