Error when run release (beta) build.

I set fulfill all requirements for push notifications.

Enable this in iTunes connect and then create provision profiles.


In Debug mode app calles: "didRegisterForRemoteNotificationsWithDeviceToken".


But in release app calles: "didFailToRegisterForRemoteNotificationsWithError" with error:


Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application"


In project i have ***.entitlements with:


<dict>

<key>aps-environment</key>

<string>production</string>

</dict>


And my ***.mobileprovision contains this strings:


<key>Entitlements</key>

<dict>

<key>keychain-access-groups</key>

<array>

<string>XXXXXXXXXX.*</string>

</array>

<key>get-task-allow</key>

<false/>

<key>application-identifier</key>

<string>XXXXXXXXXXX</string>

<key>com.apple.developer.team-identifier</key>

<string>XXXXXXXXXXX</string>

<key>aps-environment</key>

<string>production</string>

</dict>


Can anyone tell me what caused this error? Thanks in advance!