OK, so definitely not your project.
If you temporarily remove the iCloud key-value storage capability capability, the app builds, right? If so, look in the build log for an entry like this:
CodeSign …/Test811382.app (in target 'Test811382' from project 'Test811382')
cd …/Test811382
Signing Identity: "Apple Development: Quinn Quinn (7XFU7D52S4)"
Provisioning Profile: "iOS Team Provisioning Profile: com.example.apple-samplecode.Test811382"
(5db3ba83-07fb-4780-8ca4-f87de64fd20d)
Note For info on how to get the build log, see Command [something] failed with a nonzero exit code.
The UUID in that entry is the UUID of the provisioning profile that Xcode is using to sign your app. You should find that in ~/Library/Developer/Xcode/UserData/Provisioning Profiles. Now dump the contents of that profile like so:
% security cms -D -i 5db3ba83-07fb-4780-8ca4-f87de64fd20d.mobileprovision | plutil -p -
{
…
"Entitlements" => {
"application-identifier" => "SKMME9E2Y8.com.example.apple-samplecode.Test811382"
"com.apple.developer.icloud-container-development-container-identifiers" => [
]
"com.apple.developer.icloud-container-identifiers" => [
]
"com.apple.developer.icloud-services" => "*"
"com.apple.developer.team-identifier" => "SKMME9E2Y8"
"com.apple.developer.ubiquity-container-identifiers" => [
]
"com.apple.developer.ubiquity-kvstore-identifier" => "SKMME9E2Y8.*"
"get-task-allow" => true
"keychain-access-groups" => [
0 => "SKMME9E2Y8.*"
1 => "com.apple.token"
]
}
…
}
What do you see?
If you don’t want to post your real Team ID and bundle ID, feel free to redact those. Just make sure you redact them consistently. To continue the example above, you might replace all instances of SKMME9E2Y8 with TEAM_ID.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"