F$%king provisioning profiles

22 Jan 2018

When I first started out with React Native and Xcode I struggled greatly with provisioning profiles. Luckily fastlane was there to save the day.

However, today I went to run my React Native app on my iOS device through Xcode and got the old A valid provisioning profile for this executable was not found error. I was able to find some helpful advice:

You can’t install a build that was signed with the app store distribution provisioning profile and certificate. It will fail to install on the device if you try. You need to use either a development profile, or an enterprise distribution profile to install on test devices. The iOS Distribution certificate can only be used to build an app that will be installed via the App Store.


So I make sure I’m using my development profiles and try to run it again but still no dice. Another suggested solution was to delete myProjectTests….nope, didn’t work.

What worked for me was to delete the DerivedData by going to Xcode > Preferences > Locations to get the folder location of the derived data, then manually deleting all the contents of that folder (stackoverflow answer).