In Xcode I have edited the scheme for the iOS device, and changed the build configuration to release (under run app).
Now when I connect my iPhone and try to press the run the Xcode project on to my iPhone directly, I get the following error:
(null): Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)
Note - When I change the build configuration back to debug mode, it seems to work on the device.
I want to test the app in release mode before I submit to the app store.
Confusion
I am not sure if the way I attempting is correct way or if I should use archive to test it in release mode.
Questions:
- What should I do to resolve this error ?
- Is it possible to run the app in the release mode on the device from Xcode ?
- For release mode testing should I be using the archive (.ipa) and syncing it ?
