title: Can I debug iOS app installed from IPA archive?
body: <p>I m having some problem with my app which reproduces only when i install it ad hoc, but doesn't reproduce if i just run the app from Xcode.  I would like to debug this problem, but so far i m not having any luck.  I m using Xcode 5.1.1.  Here is what i did:</p>
  
  <blockquote>
    <p>1) Go to Product->Scheme->Edit Scheme->Archive and set build
    configuration to Debug.</p>
    
    <p>2) Code signing identity is set to iPhone Developer.</p>
    
    <p>3) Generate Debug Symbols is set to Yes.</p>
    
    <p>4) Go to Product->Archive and after it is archived, click
    "Distribute", then choose "Save for Enterprise or Ad Hoc Deployment".</p>
    
    <p>5) My development provisioning profile is selected.</p>
    
    <p>6) Click "Export" and export the .ipa file.</p>
    
    <p>7) Use iPhone configuration Utility to install the app onto the
    device.</p>
    
    <p>8) Run the app on the device.</p>
    
    <p>9) In Xcode, go to Debug->Attach To Process->By PID or Name, enter the
    app name.  Xcode attaches successfully and says running the app on
    iPad.</p>
    
    <p>10) However, i cannot hit any breakpoints which should be hit when i
    do certain actions in my app  (if i install and run the app from Xcode
    instead, all breakpoints are hit).</p>
  </blockquote>
  
  <p>Am i missing something?</p>