by spike1292 | v0.2.0
Nativescript hook for supporting custom Xcode 8 entitlements
npm i --save nativescript-custom-entitlements

Nativescript Xcode 8 custom entitlements

Nativescript hook for supporting custom xcode 8 entitlements, see

npm version



npm install nativescript-custom-entitlements --save-dev


You'll need to have a entitlements file app.entitlements in the app/App_Resources/iOS folder.

TIP You can open the project in xcode 8 and activate the entitlements you need. xcode will generate an entitlements file which you can copy to your nativescript project

Example entitlements file


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

Run Demo

npm run setup
npm run demo.ios

Check entitlements

npm run setup
npm run resetdemo
cd demo
tns build ios --for-device
cp demo/platforms/ios/build/device/demo.ipa build/demo/platforms/ios/build/device/
unzip demo/platforms/ios/build/device/ -d demo/platforms/ios/build/device/
codesign -d --entitlements :- "demo/platforms/ios/build/device/Payload/"