• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Followup on provisioning/deployment hell on iOS.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Followup on provisioning/deployment hell on iOS.


  • Subject: Re: Followup on provisioning/deployment hell on iOS.
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 24 Oct 2012 12:29:03 -0500

The StackOverflow thread concluded with

You can't run apps signed with a distribution profile by running them from Xcode. They crash shortly after launch.

Well, yeah. A distribution profile, for untethered installations of distribution-signed .ipa's, will not work for tethered installations of never-archived apps. If you want to debug, use a development provisioning profile and a developer identity; those are for tethered development. The two are different because tethered and untethered are different.

The defaults make this really, really easy if you leave them alone: The wildcard Team Provisioning Profile will be selected by default, and the Debug > Any iOS SDK setting is for "iPhone Developer" (no qualification with the name of the developer), which will automatically match to the development certificate of whomever is doing the build. (Note the sub-setting of Any iOS SDK. That's in the template, too, and I assume it's for a reason.)

It's a red herring that the configuration is called "Debug." Xcode makes no inferences from the name alone. The template prefills the developer certificate in that configuration, but that's a matter of a setting in a configuration that happens to be named "Debug," and that the Run scheme happens to use.

That there is no console message is disturbing, but Xcode's complaint is a clue: The iOS kernel blocks invalidly-provisioned apps from being launched, and the debugger never had a process to attach to. I'm curious to know what the device log (under the device's entry in the Devices organizer) says.

— F


On 24 Oct 2012, at 10:50 AM, Alex Zavatone <email@hidden> wrote:

From what I was able to tell, this exact behaviour when trying to build and run an app on a device:

App compiles without error
App launches on device
App processes and displays first screen
App suddenly quits with no warning or error
Xcode reports that "Process can not be found"
No error logs in the device console or in Xcode are reported

is caused be a distribution profile being assigned to:

Target
iOS Application
Build Settings
Code Signing
Code Signing Identity
Debug

So, if a distribution profile is assigned to an iOS app's Debug build configuration, the app will build properly, launch and quit without a warning, or anything explaining why this happened.

If this is true, then this is really nasty since information on this is scarce and Xcode lets you assign any provisioning file to this configuration.
 
The only way I was able to track this down was through a 1.5 year old comment on StackExchange about this being a known open bug.

If this is indeed the case, why is something like this still open, why doesn't Xcode report an error when attempting to run with a dist profile and why does Xcode let you apply a dist profile to the debug build configuration in the first place?  

For an issue of this consequence to throw no error at all and even be allowed in the first place is pretty bad.

Here's the SE link that refers to the issue
http://stackoverflow.com/questions/6422367/application-crash-when-run-on-device-with-distribution-profile/6422593#comment17545677_6422593

-- 
Fritz Anderson -- Xcode 4 Unleashed: 4.5 supplement in the works -- <http://x4u.manoverboard.org/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Followup on provisioning/deployment hell on iOS.
      • From: Alex Zavatone <email@hidden>
References: 
 >Followup on provisioning/deployment hell on iOS. (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Docs question
  • Next by Date: Re: Followup on provisioning/deployment hell on iOS.
  • Previous by thread: Followup on provisioning/deployment hell on iOS.
  • Next by thread: Re: Followup on provisioning/deployment hell on iOS.
  • Index(es):
    • Date
    • Thread