0

While running the command cordova run ios, or ionic run ios, I came across this error:

Check dependencies
Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “31e9e9bb-8da1-48c6-9256-ec365145a0ac”, however, no such provisioning profile was found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'

At first glance, I decided to refresh my provisioning profiles, ensuring that they were valid and reachable. However, same issue occurred.
I'm pointing out that running the app from Xcode directly worked/works great.

Until I ... came across this post, suggesting to run this command:

cp -r ~/Library/MobileDevice/ /Library/MobileDevice/

Tried it and...the whole works!

I found that very...ugly and totally non-intuitive.

May anyone explain the essence of this kind of copy?
Isn't Xcode smart enough to handle that automatically?

That works, indeed, but I never want to admit things I don't figure out ;)

I don't understand what I've done.

Community
  • 1
  • 1
Mik378
  • 21,881
  • 15
  • 82
  • 180
  • what you did its just copy a folder from your users library (~) to the general library. –  Sep 22 '14 at 12:12
  • Yes exactly, that was the trick. Nothing more. – Mik378 Sep 22 '14 at 12:13
  • so, whats the doubt? –  Sep 22 '14 at 12:15
  • Actually, I'd like to understand why is this copy absolutely necessary? Does Xcode search within `~/` and the command-line within `/`? – Mik378 Sep 22 '14 at 12:16
  • maybe the problem its Cordova and maybe there is a flag (or a config file) to change that behavior. Anyway, I think thats a desirable behavior: the dependencies should be common –  Sep 22 '14 at 12:20

0 Answers0