ad-hoc deployment with xcode 4.5 - iphone

i want to test my own app on my iphone. I saw a video tutorial in youtube and so i shared my app to my device. But however, it doesnt work. The app is running correctly in the simulator (version 5.0,5.1,6). But on my device, it is crashing and the app terminates.
i have done the following steps:
creating .ipa:
Product -> Archive -> Distribute -> Enterprise & Ad-hic deployment -> dont re-sign
sync in itunes:
after saving the ipa, i drag it into itunes to sync. Then im draging it out of itunes.
ssh with cyberduck:
i can connect correctly with cyberduck. i share the ipa file in the "downloads" folder from installous and after sharing, i am installing it manually (from the iphone). (appsync 5.0+ is installed)
But then, when i want to start the app, it is starting for a second and then it crashes. The app terminate and kicks me to the home screen.
did i missed something?
i am using:
xcode 4.5.2
cyberduck
itunes 11.0.1
note: excuse my english please :)

Don't use Don't Resign use your valid adhoc profile same as below image:
& then check.

Related

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 install project ipa file on iPhone query?

I have created Map application for iPhone using xcode 3.2 and sdk 4.3.2. I have created
ipa file and send it to my client. But he is unable to run my project on his iPod. What are
the steps to follow for my client to run an project ipa file. Do my client need to jailbroke his device????
Open iTunes, drag the ipa to the library and then sync the device. Make sure the app is selected to be installed on the device.
The only other thing I can think of, is that his device is not provisioned to run the application. Have him give you the UDID, add him to the provisioning profile and then make another build if the first solution does not work.
And no he doesn't need to jail break his device.
don't jailbreak!
use testflightapp.com :)
follow their directions, and make sure you register your client's device and update your provisioning profiles when building your app.
good luck!
if you have a developper licence, you should try TestFlightApp.com.
I've just explained what's this tool there: How do install iPhone application from Xcode to a remote iPhone

How can I create a Installer package for iPhone?

How can I create a Installer package for iPhone ?
You should expose your question in a detailed and better way. Are you using xcode? It has everything you need to build your app for the iPhone.
You just code the app, and hit the button "build" or "build and run" and the .app file is automatically generated.
There is no such thing as an "installer package" for iPhone. As a developer, you create an app bundle, containing the executable and all resources, and just zip that and upload it to the App Store via iTunes Connect.
Detailed instructions for uploading an app to the App Store are available in the iPhone program portal.
Installation of an app on the device is handled by the iPhone OS and the App Store or iTunes (or by Xcode during development).