ios - Using xcodebuild to install application on iPhone -


i working on shell script builds , install our xcodeproj directly first found , connected idevice. script

#!/bin/bash  cd ../../cordova/platforms/ios  devicename=$(ideviceinfo | grep -i devicename) devicename=${devicename//devicename: /} #this device name set in settings->general->info->name on idevice deviceudid=$(system_profiler spusbdatatype | sed -n -e '/ipad/,/serial/p' -e '/iphone/,/serial/p' | grep "serial number:" | awk -f ": " '{print $2}')  if [ -n "deviceudid" ];     echo 'found device "'${devicename}'" uuid "'${deviceudid}'", process...'     xcodeproject=$(ls | grep -i *.xcodeproj)     if [ -n "$xcodeproject" ];         echo "is xcode project dir, start building..."         ################### not working command ###################         eval "xcodebuild -scheme appscheme -destination 'platform=ios,id=$deviceudid' install" #this line not working         ################### not working command ################     else         echo "directory not xcode project directory!"     fi else     echo 'it looks there no idevice connected!' fi 

everything works, except installing on iphone. correct device name, looks if finds device, don't see app on iphone. strange thing is, works if install xcode.

does know how fix issue?

i use following commands build , run application in simulator:

xcodebuild -sdk iphonesimulator8.4 -arch i386 -workspace myapp.xcworkspace -scheme myapp install dstroot=~/myapp  xcrun instruments -w "iphone 5s (8.4 simulator)" xcrun simctl install booted ~/myapp/applications/myapp.app 

if want run in simulator try see available simulators with:

xcrun instruments -s 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -