Why does `ionic run ios` error with “No matching p

2019-03-19 17:46发布

问题:

My goal is to run my Ionic app on my iPhone. I don't figure out what could be the reason explaining this exception:

    myIonicApp$ sudo ionic run ios

    Check dependencies

    === BUILD TARGET WealCome OF PROJECT WealCome WITH CONFIGURATION Debug ===

    Check dependencies
    Code Sign error: No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID “dabcc352-0b59-415a-bcd1-6f6ea1d1fbe6”, however, no such provisioning profile was found.
    CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'

I have this build settings:

The organizer:

回答1:

As Mik378 said on his comment the right destination path of the provisioning profiles seems to be /Library/MobileDevice so all you have to do is copy everything you need to that folder:

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


回答2:

Try going into Xcode preferences, into Accounts and clicking the refresh button at the bottom left of the dialog.