Xcode 9 and 10 may pop up this error because it's looking for a entitlements file for the target. You can turn on Push Notification in the target's Capabilities tab then turn it off to create an empty entitlements file for the build, then this error goes away.