Error in registration. Error: Error Domain=NSCocoaErrorDomain Code=3000 UserInfo

Verify that the entitlements in the provisioning-profile file are correct. To do this, open the .mobileprovision file in a text editor. The contents of the file are structured in XML. In the Entitlements dictionary locate the aps-environment key. For a development provisioning profile, the string value of this key should be development; for a distribution provisioning profile, the string value should be production. 


用文本编辑器打开Entitlements.plist文件,加入
<key>aps-environment</key>  
<string>development</string>  


如下
<dict>  
              <key>application-identifier</key>  
              <string>X7R26W56BC.com.xxx.xxx</string>  
              <key>aps-environment</key>  
              <string>development</string>  
              <key>get-task-allow</key>  
              <true/>  
              <key>keychain-access-groups</key>  
              <array>  
                      <string>X7R26W56BC.*</string>  
              </array>  
</dict>


如果还有问题则检查你的证书是否选择正确。

你可能感兴趣的:(xml,entitlements,provisioning)