Next, let's set up our RubyMotion project; it will include the information we have collected previously.
Entitlements are used during the code-signing part of the build process. Many applications require access to device features; Apple requires you to specify the entitlements if you want to access a specific device feature. This can be added in the Rakefile
. The entitlement method in the Rakefile
lets you specify the appropriate keys and values in the following way:
Motion::Project::App.setup do |app| # ... app.entitlements['keychain-access-groups'] = [ app.seed_id + '.' + app.identifier ] end
In this example, if your application requires access to a keychain to store user credentials, you must send a request for keychain-access-groups
by passing the application provisioning identifier and application identifier along with seed_id
and the app identifier.