ionic 常用命令行

2016-05-25  本文已影响755人  BairdWeng

xcode文件的权限

sudochmod-R777.

//编译ios项目

sudo ionic build ios

sudo cordova build ios

//添加ios项目

sudo ionic platform add ios

sudo  cordova platform add ios

//更新ios包

sudo ionic platform update ios

//创建一个插件

plugman create --name myEcho --plugin_id com.lulee007.myEcho --plugin_version 0.0.1

//添加平台

plugman platform add --platform_name ios

//添加插件到项目

cordova plugin add ../myEcho

//删除

sudo cordova plugin rm com.lulee007.TestPL

//服务器

php artisan serve --host=192.168.9.139 --port=8080

ionic  emulate ios --target="iPhone-5s, 9.2" -c -l

//权限错误

sudo chmod 744 /Users/david/.config/configstore/update-notifier-cordova.json

//插件失效

find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth3| xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaultsread/Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID`

//切换模拟器

sudo xcode-select -switch/Applications/Xcode2.app/Contents/Developer/

2016-05-18 23:51:15.654 xcodebuild[14436:131622] [MT] PluginLoading: Required plug-in compatibility UUID F41BD31E-2683-44B8-AE7F-5F09E919790E for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ZLGotoSandbox.xcplugin' not present in DVTPlugInCompatibilityUUIDs

stars:>1 github搜索最多stars。

上一篇下一篇

猜你喜欢

热点阅读