In project settings, select your target, then under "Signing and Capabilities", in the "Signing" section check "Signing Certificate", should be "Development" for "Debug" configuration.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: