Running on Device - xcode

On Xcode 4.2, I am trying to run my app on my iTouch (jailbroken on 4.2). The build succeeds however it ends automatically right after it succeeds without ever showing up on my device. I have already wen threw the prerequisites to run apps on my idevice without a dev account.

Devices left behind at 4.2.1 (armv6) are no longer supported in Xcode templates by default. There are a few hoops to jump through. This answer from MattyG sums it up nicely.

You didn't have an Apple Developer Account? You have to register for it and get the provisioning profile for development.
Pay the US$99 .

Related

Apple Health (HealthKit) Request

I am making an app that collects information from Apple Health (HealthKit). When the application is installed for the first time, the apple screen appears with the permissions that will be used, but when it is in Testflight that screen never appears, is there any extra configuration that has to be done when it is released to production?
if the app is installed from xcode, it works correctly
I had two different bundles, one both in the card of my app and another service that I have OneSignalNotificationServiceExtension. Within both they must point to release and not to debug. that's what i did and it worked in testFlight

Installing provisioning profile on iOS 8.0.2

I'm trying to install my prov. profile via email,itunes. When I try to tap the prov. profile in email it just directs me to settings. I believe that there should be a pop up that ask to install the prov. profile but I see none. Did I forget any important parts that cause this trouble or maybe its a bug from new iOS 8 update?
"It's not a bug, it's a feature". Apple has purposely made it so that they can no longer be installed manually by a user and must be installed by dev tools such as Xcode or device management systems such as MDM. Additionally, they are no longer shown in Profiles & Device Management and are not removable by the everyday user either.
With iOS 8, Apple has moved to the model that any flow that requires the everyday user to install, remove, or even think about provisioning profiles is flawed and that iOS should handle this automatically on the user's behalf. If the provisioning profile is expired, iOS should get rid of it automatically. As apps are deleted, iOS should properly deal with the provisioning aspects automatically. This philosophy is mentioned in WWDC 2014's talk on Managing Apple Devices around ~42 minutes in.
I guess it's a bug. I'm having the same issue with Testflight.
As a workaround install the profile using Xcode's 'Devices' view.

Xcode 4.3.2 and iOS 5.1.1 + jailbreak: App installs but crash on launch

I don't have the Apple 79€/year account. In iOS 5.0 and Xcode 4.2.1 I changed SDKSettings.plist ecc... And it works. In iOS 5.1.1 and Xcode 4.3.2 no, I already changed settings ecc but don't work, the app installs on device but crash on launch... How can I run my app on device without crashes? Thanks, and sorry for my english.
I have had this issue before on a jailbroken device. You have a few solutions depending on the exact issue. First you can install app sync in order to allow unsigned code to work on your device if you are not using a valid code signing identity. The second option is to actually get a valid code signing identity along with the provision profile so you can run the application correctly. This involves paying for the developer program so this may not be the best option.
Last is a very common issue with jailbroken devices. Which is that you will receive an error such as "failed to get the task for process xxxxx". This tends to happen a lot with jailbroken devices. This is because Xcode notices you are not using a provision profile that is required to report error logs. All you have to do is launch the application again on the device and everything should work.
This is just Xcode not being able to fully launch your application because of the missing provision profile so it results in a crash. If none of these solutions solve your problem please post a more detailed explanation of the issue you are having.

Building iPhone apps through Corona: How do I create a fake signing identity and provision file?

I'm using Corona to create a game but to build the app for iOS I need to specify in Corona which provisioning profile to use (which I have to copy to their certain folder).
They state that either a development or adhoc provisioning profile can work.
How do I create a fake ad hoc provisioning profile?
I tried using and old mobileprovision.mobileprovision file that I had but it obviously didn't work because Corona stated that the certficate was not installed.
Here is a link of the whole process to setup for building for iOS (legal):
http://developer.anscamobile.com/content/building-devices-iphoneipad
I am running Mac OSX 10.6.6 with xCode 3.2.6 and iOS SDK 4.3.
In short: you can’t. Provisioning profiles are part of the code-signing process; non-jailbroken iOS devices will not run code that has not been cryptographically signed with a valid provisioning profile.
To run your code on a device, you either need to jailbreak it (so it’ll accept non-Apple-signed code) or cough up the $99/year to become a member of the iOS developer program (so you can give your code a valid signature). Only the latter option will allow you to then submit your app to the App Store, and it’s a lot less hassle, so you’re probably best off just going with that.
You can test Corona apps in the simulator for free, but you have to be a licensed developer in order to deploy to device.
You could try bundling your own IPA file, but I think the IPA will only transfer if the iDevice is jailbroken. This process worked for me on my jailbroken iPhone. https://stackoverflow.com/a/10171462/708807
This is a fake Hoc provisioning profile http://www.instructables.com/id/How-to-use-Adobes-iPhone-Packager-without-an-Appl/step2/Exporting-the-App/

Xcode cannot run using the selected device No provisioned iOS devices are available

One of my coworkers set me up with a provisioning profile through our corporate profile. I have read through several tutorials and none of them corresponded to the steps he actually took to get it set up. In the end my device was listed under the devices section of the organizer with a green circle next to it (I am guessing that's good?) but when I try to run the application on my device I get the error I mentioned in the subject of this post. I should mention my device is jailbroken running iOS 4.2.6. Is the "jailbrokenness" of my device an issue?
This is like day one with Xcode and it is pretty overwhelming coming from the Linux command line and Emacs. I don't expect a complete walk through from any of you. But if you can point me to a nice long tutorial showing me how to set this up with the latest version of Xcode I would appreciate it.
Check if you can see your device in Organizer and verify iOS version installed on the device with the deployment target for your application. This is very often the case as you won't be able to deploy 4.3 application to 4.2.1 device (for example).
In Xcode Set the target to project_name | iOS Device
Then in Xcode From the product menu=>Build For=> Build For Testing

Resources