GithubHelp home page GithubHelp logo

simonox / nativescript-custom-entitlements Goto Github PK

View Code? Open in Web Editor NEW

This project forked from essent/nativescript-custom-entitlements

0.0 2.0 0.0 1.92 MB

nativescript hook for supporting custom xcode 8 entitlements, see https://github.com/NativeScript/nativescript-cli/issues/2075

License: MIT License

JavaScript 100.00%

nativescript-custom-entitlements's Introduction

Nativescript Xcode 8 custom entitlements

Nativescript hook for supporting custom xcode 8 entitlements, see NativeScript/nativescript-cli#2075

npm version

Installation

Npm

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

Configuration

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

app/App_Resources/iOS/app.entitlements

<?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>development</string>
</dict>
</plist>

Run Demo

npm run setup
npm run demo.ios

Check entitlements

# change package.json to create a bundle identifier that can be signed by your organization
npm run setup
npm run resetdemo
cd demo
tns build ios --for-device
cp ./platforms/ios/build/device/demo.ipa ./platforms/ios/build/device/demo.zip
unzip ./platforms/ios/build/device/demo.ipa -d ./platforms/ios/build/device/
codesign -d --entitlements :- "./platforms/ios/build/device/Payload/demo.app"

nativescript-custom-entitlements's People

Contributors

dacrystal avatar spike1292 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.