Professional Documents
Culture Documents
Iphone Automation
Iphone Automation
Iphone Automation
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.
4. Add the downloaded FoneMonkey folder to your project by right-clicking on the project and selecting Add > Existing Files... from the menu.
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.
8. Click Add. 9. The FoneMonkey folder should now be visible in your project.
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: -all_load
Build and Go
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.
Your application should start. Immediately after it displays, the FoneMonkey console should drop down in front of your application's window.