Solved

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

Posted on 2015-02-19
5
85 Views
Last Modified: 2015-03-10
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
0
Comment
Question by:paddycobbett
  • 3
5 Comments
 
LVL 12

Expert Comment

by:KRUNAL TAILOR
ID: 40623186
0
 
LVL 1

Author Comment

by:paddycobbett
ID: 40631982
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.
0
 

Expert Comment

by:auscom
ID: 40632380
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
0
 
LVL 1

Accepted Solution

by:
paddycobbett earned 0 total points
ID: 40647716
Thank you very much for your responses. For anyone else having this problem this is what was causing it:

https://developer.apple.com/library/ios/qa/qa1886/_index.html#//apple_ref/doc/uid/DTS40015165
0
 
LVL 1

Author Closing Comment

by:paddycobbett
ID: 40655791
Found answer elsewhere
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When Apple released Swift last year, the aim was to introduce a new programming language for Cocoa and Cocoa Touch that was fast, easy and effective, like the name connotes. Apple succeeded. Swift is designed to couple with Objective-C program…
Are you having trouble connecting or getting your iPhone / Samsung device(s) to sync with Microsoft Exchange Server?   What have you tried?   What haven't you tried?
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now