Saturday, April 28, 2018

Ionic Basic

Install Ionic
sudo npm install -g ionic
ionic start
ionic start myApp tabs
ionic start MyIonicProject tutorial

Execute in Browser
ionic serve
ionic serve -l -c -s

Execute in iPhone
ionic cordova build ios --prod
open the .xcodeproj file in platforms/ios/ in Xcode
Xcode > Project > General > Signing > Team > Select Team
Xcode > Project > General > Identity > Bundle Identifier > io.ionic.starter.ngtszwing
Xcode > RUN

Trust certificate in Device
Open the ‘Settings’ app on your iOS device
Go to 'General > Device Management’. You’ll see the email address associated with the Apple ID or Apple Developer account you used to code sign your app.
Tap the email address
Tap ‘Trust ’:
Execute in Terminal
ionic cordova run ios --device(not work)

Execute in Simulator
ionic cordova emulate --list
ionic cordova emulate ios --target "iPhone-X, 11.2"
Git
git clone https://github.com/xxx.git
Install Libraries
npm install
Intall Plugins and Platforms
ionic state restore

No comments:

Post a Comment