I had the exact same set of errors as @SpaceMan in my macOS app. Here the entire error stack:
| |
| Could not launch “CloudKitCMS” |
| Domain: IDELaunchErrorDomain |
| Code: 20 |
| Recovery Suggestion: Runningboard has returned error 5. Please check the system logs for the underlying cause of the error. |
| -- |
| Could not launch “CloudKitCMS” |
| Domain: IDELaunchErrorDomain |
| Code: 20 |
| Recovery Suggestion: Runningboard has returned error 5. Please check the system logs for the underlying cause of the error. |
| -- |
| The operation couldn’t be completed. Launch failed. |
| Domain: RBSRequestErrorDomain |
| Code: 5 |
| Failure Reason: Launch failed. |
| -- |
| Launchd job spawn failed |
| Domain: NSPOSIXErrorDomain |
| Code: 153 |
| -- |
I tried editing apple id but without any success. I noticed that some people refer entitlements, so I inspected by CloudKitCMS.entitlements file and found that several keys there are totally irrelevant to the project:
| <key>aps-environment</key> |
| <string>development</string> |
| <key>com.apple.developer.applesignin</key> |
| <array> |
| <string></string> |
| </array> |
| <key>com.apple.developer.aps-environment</key> |
| <string>development</string> |
So I completely removed the above keys and now it runs! I must note that my project doesn't use Push Notifications (aps-related keys) and I don't know how those keys got there, probably Xcode added them automatically.
So my recommendation would be to check the entitlements and remove everything that's not enabled for the bundle id.