23

When I create an iOS project on my own, I can build it without any problem. I downloaded a project for testing purposes and now I get:

No provisioning profiles found
No non-expired provisioning profiles were found

In this case I downloaded an Xcode project from one of Apples tutorial pages.

Cœur
  • 37,241
  • 25
  • 195
  • 267
nepa
  • 1,421
  • 2
  • 18
  • 28
  • 1
    Possible duplicate of [Xcode 7.2 no matching provisioning profiles found](http://stackoverflow.com/questions/34346436/xcode-7-2-no-matching-provisioning-profiles-found) – Elshan Jun 22 '16 at 13:42
  • @nepa Check my answer below... – DJ1 Jun 22 '16 at 13:46

2 Answers2

11

Change your build setting for Code Signing Identity and Provisioning Profile first both in project and target...

Check image below ...

enter image description here

Change your Team from General tab...

Check image below ...

enter image description here

i hope this will help you...

DJ1
  • 936
  • 15
  • 29
  • I did this and it wasn't working, but then I noticed that there was "Generic iOS Device" selected as scheme I changed it to iOS 6. Does it make sense to integrate that in your answer? – nepa Jun 22 '16 at 17:18
8

In some cases that error can be caused by "Generic iOS Device" being selected as active scheme.

Screenshot of active scheme selection

Changing that to a specific device solved the problem for me.

nepa
  • 1,421
  • 2
  • 18
  • 28