Reputation: 321
A company that I am developing a project for, gave me a .mobileprovision
file and a .p12
certificate to add APNS to their project. As long as I've added their provision profile to my project in XCode, XCode keeps saying "iPhone has denied the launch request." when I try to build project on my physical device.
I've tried deleting certificate Apple Worldwide Developer Relations Certification Authority, and adding another user account to mac but non of them worked. Only when I disabled Debug executable, the app launched successfully, but it's not a solution because I need to debug the app.
Should I tell them to add my device UDID to their account's devices on developer.apple.com?
Upvotes: 1
Views: 2879
Reputation: 534885
gave me a ".mobileprovision" file and a ".p12" certificate
That seems like a red herring. I would suggest ignoring both of those. If they want you to work on their app, they simply make you a team member. Done! Your own dev center membership is then sufficient to debug on device.
Upvotes: 0
Reputation: 9642
You are trying with Development Profile
vs Distribution Profile
?
Distribution Profile
:With AdHoc Distribution profile
, you can't debug any app it should be used for distribution only.
Development Profile
:If you didn't add your device UDID
to the provisioning profile
, you can try to do that and re-generate the provisioning profile
and download it.
In Keychain Access
, you will get to know which profile you received from the team,
Upvotes: 0
Reputation: 5881
You've been given an Adhoc distribution provisioning profile, which don't allow the debugger to attach (they're missing the get-task-allow
entitlement), as they're for use when you distribute your app for testing, not local development.
If you need to debug, they'll have to supply you with a development p12 certificate and a matching provisioning profile.
Upvotes: 0