I have an app that I want to profile it using Instruments. I can use the Instrument with the App in the simulator but I can't do it with my device, although the device is registered for Ad-Hoc and development in the provisional profile and I can install the app using Hockey-App so I am sure there is no problem with the device and the code signing part. However I can profile it when the build configuration is Debug, only Release doesn't work.
I get the following error.
The executable was signed with invalid entitlements.
The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile.
none of the following links could help me:
Entitlements file do not match those specified in your provisioning profile.(0xE8008016)
Entitlements don't match Provisioning Profile (0xE8008016)
the result of codesign -d --entitlements - release-app-path
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>application-identifier</key>
<string>TEAM_ID.BUNDLE_IDENTIFIER</string>
<key>aps-environment</key>
<string>production</string>
<key>beta-reports-active</key>
<true/>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:SOME_URL</string>
</array>
<key>com.apple.developer.team-identifier</key>
<string>TEAM_ID</string>
<key>get-task-allow</key>
<false/>
</dict>
</plist>