Sign the app for distribution
If you are targeting iOS 10 devices or the simulator, you must sign the application with your team signing identity. You might also need to add the entitlement for Keychain sharing to your application in Xcode.
For applications running on iOS 10 to access the device or simulator keychain (which the app uses to store credentials for libraries you might connect to), they must be signed with a team distribution signing identity. If you use a development signing identity, such as your Xcode personal team identity (which is provided by Xcode), you must also enable the keychain sharing entitlement under Capabilities for the project in Xcode.
If you forget to change these settings in the project, when you run the app on an iOS 10 or higher device or in the simulator, the app is unable to save credentials for libraries in the keychain. The side effect of this problem is you that are prompted multiple times for username and password.
The following three tasks, in order, describe preparing the app for distribution.
- Modifying the app identifier
The app identifier (also known as a bundle identifier) is a combination of the reverse domain name of your company and the app name. Change this string to uniquely identify your version of the app from that of TIBCO or any other enterprise version. - Setting team and developer account options
You can associate your Apple Developer account with Xcode and set the Team box in the General tab of the project settings to your Apple Developer Team account. - Setting the capability for keychain sharing
If you signed your app for distribution, and you are using a personal team identifier, you must set the capability for keychain sharing in Xcode.