Cordova Plugin that creates the Entitlement.plist
necessary to deploy cordova apps to the new TestFlight Beta.
-
This plugin requires the use of node-xcode. You can install it into your project locally with
npm install --save-dev xcode
-
cordova plugin add com.staxmanade.testflightbetaentitlement
There is some good info at this SO post.
- You have to build your apps with an App Store distribution provisioning profile (not AdHoc)
- Your profile must have been generated (after they released the new TestFlight Beta) as Apple automatically adds the
beta-reports-active = 1
and other metadata to it. - You need to have an
Entitlements.plist
with the following informatino
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>production</string>
<key>get-task-allow</key>
<false/>
<key>beta-reports-active</key>
<true/>
<key>application-identifer</key>
<string>{{YOUR_APP_ID}}</string>
</dict>
</plist>
The plugin is nothing more than an after_plugin_add
hook that attempts to use node-xcode to generate and add Entitlements.plist
to the xcode project.