Connect iOS device that is NOT-Jailbroken

 

Note:

SilkMobile provides two options for testing iOS devices:

1.    Full control – enables you to control any application or aspect of the device under test including 'settings' and applications that were not developed by you. This integration requires an iOS device that is jail-broken. For this option please refer to the iOS (Jailbroken) section of the SilkMobile manual.

2.    Application control – enables to control your application only. This integration doesn't require a jail-broken device.

 

This section describes the second option (non-Jailbreak) integration.

Before starting to connectivity process, here's a diagram that describes the overall architecture of connecting your Non-Jailbroken device to SilkMobile:

 

 

PHASE I: WINDOWS station & iOS device

Step 1: Connect SilkMobile to your application

In SilkMobile (that has been installed on your Windows station), go to the Device tab and click the 'Add Device' icon and select 'iPhone Device Application'.

 

 

Set the device type and select USB for the host (the port is automatically populated, no need to change anything there):

 

Step 2: Launch your application on your iOS device. NOTE: Your application should be prepared by your developer as per the instructions in Phase II below (this is a one-time activity that your developer should do - please hand the instructions in Phase II below to your developer).

 

Step 3: In SilkMobile, go to the Device tab and click the 'Open Device' icon to see your application screen and start working with it. That’s it. You can then start recording scripts with SilkMobile (refer to our Getting Started or Record section for details instructions on this).

 

Following are instructions how to add SilkMobile Framework to your Xcode project, so you can use SilkMobile with a non-Jailbroken iOS device. Note there are two phases in this process: in the first phase you work with a MAC station and your iOS device you are testing; and in the second phase you work with a WINDOWS station and your iOS device you are testing.

 

PHASE II (hand these instructions to your developer):MAC station & iOS device

 

The following instructions are for your developer, so he can prepare the application for testing. This is a one-time action that has to be done by the programmer. So, please hand the following instructions to your programmer.

 

Step 1: Create your project in Xcode

 

Step 2: Duplicate the target  (note: when asked about the new Duplicate Target choose “Duplicate Only”

 

 

Step 3: Add SilkMobile.framework and static_resources.bundle  (here is the download link ) to your new target:

 

·         Go to Build Phases Link Binary With Libraries and click on +

·         Select Add Other, and:

 

Step 4: go to Build Settings, and search for Other Linker Flags

 

 

and add the following flags: -ObjC -all_load

 

 

At this stage you should do the following:

1.    Choose the target copy

2.    Go to build settings

3.    Change "Build Active Architecture Only" to YES

 

 

 

Step 5: Now you can switch to the duplicated target and deploy the app:

 

 

Switch between the targets to run with and without the SilkMobile server