iOS_MonkeyTalk(4.1)_Installing the MonkeyTalk iOS Agent

來源:互聯網
上載者:User
Installing the MonkeyTalk iOS Agent

1.  Download and unzip the MonkeyTalk zip file for your OS.

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.

so it looks like this:

 

You may also want to rename the Scheme from the Manage Schemes window:

 

4. Add the downloaded MonkeyTalk lib to your project File > Add to “YourApp”... from the menu.

5. When the dialog box appears, navigate to the directory where you unzipped the MonkeyTalk zip file, and select the MonkeyTalk iOS lib from
pathToMonkeyTalkFolder/agents/iOS.

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.

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

8. Click Add.

9. The MonkeyTalk lib should now be visible in your project.

 

Configuring 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 libsqlite3.dylib CFNetwork.framework and
QuartzCore.framework if your application is not already using them. (These frameworks are required by the MonkeyTalk). 

3. XCode will have added references to the libMonkeyTalk.a library. (Note: if you want to build iOS 4.x, make sure you change UIKit.framework from "Required" to "Optional")

4. On the Build Settings tab, scroll down to the Linking section and add to your Other Linker Flags:
-all_load -lstdc++


5. Choose your duplicated test target from the Scheme menu in Xcode and Run on the Simulator or Device.

Log output will show that MonkeyTalk has successfully loaded in your app (as seen below)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.