Link to home
Start Free TrialLog in
Avatar of paddycobbett
paddycobbett

asked on

How can I run on IOS device using a distribution profile?

Hi,

I am really stuck on this and loosing my mind. I have upgraded to XCode 6 and am trying to run my app on my device using a distribution profile. Now no doubt you're thinking that you can't, I should be using a development profile for running on device, and that the distribution profile is for submitting to the appstore (or similar). However I have done this before! In fact I have some existing projects which I'd created before upgrading which ARE still running to device using a distribution profile, but having just created a new project it's not working with that. There's a lot of contradictory information on the net regarding whether this is possible, but I know the general consensus is that you can't, despite having been how I've always done it, confirmed by others saying that they can.

Can anyone make any suggestions? Or explain the discrepancy? Or anything to bring some sanity back to this world!

b.t.w I upgrade from XCode 4 to 6, so don't have any experience with XCode 5
Avatar of KRUNAL TAILOR
KRUNAL TAILOR

Avatar of paddycobbett

ASKER

Hi thanks for the references.

I created a brand new project selecting "swift" as the language, and set up my distribution profile and it bombed out when running on device just after the loading screen, despite working with a developer profile.

I then went and followed the EXACT same steps creating a new empty project but in this instance selected "objective-c" as the language and it worked! I repeated both exercises to check that I was getting a consistent outcome in each case, and sure enough I do.

Is there some additional configuration that needs to be set up for projects being developed in swift? There must be something different in the way the projects are built in each instance.
Hi

You can't run on a device from XCode using a distribution profile, as you said this is for submitting to the app store only.  The best profile to use for development is the "Team Provisioning Profile" as this automatically managed by XCode to include all your devices.

The one exception, which may explain why you have been able to do this before is if you have an "Enterprise" developer account with apple.  The enterprise account is for internal apps, where you cannot or don't want to manage UDID's
ASKER CERTIFIED SOLUTION
Avatar of paddycobbett
paddycobbett

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Found answer elsewhere