Google+ Followers

Thursday, 11 February 2016

Calabash-ios Shell script to create .ipa file from .app file


#Shell script to create .ipa file from .app file, where .app file is built using '-sdk iphoneos' in xcodebuild command

#Delete old Payload dir
if [ -d Payload ]; then
rm -rf Payload
fi


mkdir Payload
#Copy .app file from derived data foldercp -Rf ../Products/Debug-iphoneos/App-cal.app Payload/App-cal.app
echo "Copying & Zipping APP file into .ipa file"
zip -qry App-cal.zip Payload
mv App-cal.zip App-cal.ipa
rm -rf Payload

if [ ! -f 'App-cal.ipa' ]; then
echo "[!] FAILED TO CREATE .IPA"
exit 1
fi

Setting up bridged adapter on genymotion to make it work on intranet


Setting up bridged adapter on genymotion to make it work on intranet 

Open up Virtual box
choose genymotion virtual device 
click settings
Navigate to Network -> Adapter2 (Adapter 1 has to be set to host only)
set "Attached to" to "Bridged Adapter"
"Name" to "en0:Ethernet" (any network adapter being used)
Click OK
restart device