Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h3>I also ran into this issue while running my automation tests on my Jenkins box and I did the following to test my app with ver 6.1 simulator and not 7.0 simulator:</h3> <h3>Using Jenkins:</h3> <p>STEP 1 = I create one job that builds my ios app with the 6.1 sdk version. </p> <h3>===========================================</h3> <p>STEP 2 = I create a 2nd job using a bash script that downstreams from the 1st job which does the following:</p> <h3>[Go inside the Xcode app location to get to the iphone simulator sdk directory]</h3> <p>cd '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/'</p> <h3>[Move the 'iPhoneSimulator7.0.sdk' directory to another location (I chose the desktop)]</h3> <p>echo [ENTER ADMIN PASSWORD HERE] | sudo -S mv iPhoneSimulator7.0.sdk/ ${HOME}/Desktop</p> <h3>[Rename the 'iPhoneSimulator6.1.sdk' to 'iPhoneSimulator7.0.sdk']</h3> <p>echo [ENTER ADMIN PASSWORD HERE] | sudo -S mv iPhoneSimulator6.1.sdk/ iPhoneSimulator7.0.sdk/</p> <h3>===========================================</h3> <p>STEP 3 = I create 3rd job that executes my tests. The 3rd job downstreams from my 2nd job. </p> <h3>===========================================</h3> <p>STEP 4 = I create a 4th job that downstreams from the 3rd job. The 4th job uses a bash script which does the following:</p> <h3>[Go inside the Xcode app location to get to the iphone simulator sdk directory]</h3> <p>cd '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/'</p> <h3>[Rename the 'iPhoneSimulator7.0.sdk' back to 'iPhoneSimulator6.1.sdk']</h3> <p>echo [ENTER ADMIN PASSWORD HERE] | sudo -S mv iPhoneSimulator7.0.sdk/ iPhoneSimulator6.1.sdk/</p> <h3>[Go to directory where you moved the 'iPhoneSimulator7.0.sdk' (in my case I moved the 'iPhoneSimulator7.0.sdk' to the desktop)]</h3> <p>cd ${HOME}/Desktop</p> <h3>[Move the 'iPhoneSimulator7.0.sdk' directory back to the Xcode app sdk directory]</h3> <p>echo [ENTER ADMIN PASSWORD HERE] | sudo -S mv iPhoneSimulator7.0.sdk/ '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/'</p> <h3>[I kill any lingering processes related to the automation]</h3> <p>ps ax|grep [b]ash|awk '{print $1}'|xargs kill -9</p> <p>ps ax|grep [i]nstruments|awk '{print $1}'|xargs kill -9</p> <h3>===========================================</h3> <p>I probably need to make this process more foolproof however I think its better than having multiple instances of xcode on the automation machine. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload