iphone automation

10
MonkeyTalk Setup Guide -Iphone Monkey talk is a static library and some associated files that you build into your iPhone application by following the simple instructions below. In a nutshell, to run your application with FoneMonkey, you create a new build target that is a duplicate of your application's original target, and modify the new target so as to include the FoneMonkey library, as well as the resource files and frameworks it requires. Here are step-by-step instructions. Add Monkeytalk to Your XCode Project 1. Download and unzip the FoneMonkey.zip file. 2. Open your application's project in xcode. 3. Duplicate your application's build target by right-clicking on it and selecting Duplicate from the menu. A new target will be created called YourApp copy.

Upload: faisal-sait

Post on 24-Apr-2015

43 views

Category:

Documents


0 download

DESCRIPTION

Automation setup for Iphone.

TRANSCRIPT

Page 1: Iphone Automation

MonkeyTalk Setup Guide -IphoneMonkey talk is a static library and some associated files that you build into your iPhone application by following the simple instructions below. 

In a nutshell, to run your application with FoneMonkey, you create a new build target that is a duplicate of your application's original target, and modify the new target so as to include the FoneMonkey library, as well as the resource files and frameworks it requires. Here are step-by-step instructions.

Add Monkeytalk to Your XCode Project

1. Download and unzip the FoneMonkey.zip file.2. Open your application's project in xcode.3. Duplicate your application's build target by right-clicking on it and

selecting Duplicate from the menu. A new target will be created called YourApp copy.

Rename YourApp copy to something like YourAppMonkey.

Page 2: Iphone Automation

so it looks like this:

4. Add the downloaded FoneMonkey folder to your project by right-clicking on the project and selecting Add > Existing Files... from the menu. 

Page 3: Iphone Automation

 5. When the dialog box appears, navigate to the directory where you unzipped the

FoneMonkey.zip file, and select the FoneMonkey directory.6. Recursively create groups for any added folders option. Note: It is up to you

whether or not you want to Copy items into destination group's folder.

Page 4: Iphone Automation

7. In the Add to Targets box, deselect YourApp and select YourAppMonkey.

8. Click Add.9. The FoneMonkey folder should now be visible in your project.

Page 5: Iphone Automation

Configure Libraries and Build Settings

1. Right-click on the YourAppMonkey build target, and select the Build Phases tab.2. On the Link Binaries With Libraries tab, you will need to

add CoreGraphics.framework andQuartzCore.framework if your application is not already using them. (These frameworks are required by the FoneMonkey console.) 

 3. XCode will have added references to the libFoneMonkey.a and libFoneMonkeyOCUnit.a

library. If you do not plan to use OCUnit for automated testing, you can remove the libFoneMonkeyOCUnit..a library. 

If you do not remove libFoneMonkeyOCUnit.a, you will also need to include libxml2.dylib andSenTestingKitFramework. SenTestingKitFramework is included with Xcode but will not be listed in the dialog where you add frameworks and libs to your project. You must instead click "Add Other..." and navigate to /Developer/Library/Frameworks where you can select the SenTestingKitFramework folder. 

4. On the Build Settings tab, scroll down to the Linking section and set Other Linker Flags to:

Page 6: Iphone Automation

            -all_load

Build and Go

Page 7: Iphone Automation

Select the YourAppMonkey Scheme for building in the drop-down. (If you did not rename this scheme, it may still be called YourApp copy)

Right-click on YourAppMonkey build target and select Clean from the menu. Right-click on YourAppMonkey build target again and select the Run button (or Build

and Run orBuild and Debug from the menu). FoneMonkey can be launched in either the simulator or on an iPhone device.

Page 8: Iphone Automation

Your application should start. Immediately after it displays, the FoneMonkey console should drop down in front of your application's window.

Page 9: Iphone Automation
Page 10: Iphone Automation