Xcode UI 分析軟體Reveal

來源:互聯網
上載者:User

標籤:

 Integrating Reveal: Static Linking

Integrating Reveal‘s static library into your iOS application is the quickest and easiest way to enable Reveal introspection.

WARNING: Never ship a product which has been linked with the Reveal library. The instructions below outline a way to use build configurations to isolate linking the Reveal static library to Debug builds.

  1. Open your iOS project in Xcode.

  2. Launch Reveal and select Help → Show Reveal Library in Finder. This will open a Finder window showing a folder named iOS-Libraries.

  3. Drag Reveal.framework into the Project Navigator panel of your project in Xcode.

  4. In the Add to targets dialog that is shown, select all targets you want to integrate with. Optionally, select Copy items if needed to copy libReveal.dylib into your project — if you do, you‘ll need to remember to update this library whenever Reveal is updated by following the previous steps again.

  5. Click Finish.

  6. In Xcode‘s Project Navigator, select your project then do the following for each target that you wish to use with Reveal:

    1. Select the Build Phases tab and remove Reveal.framework from the Link Binary With Libraries section if it is present.

    2. Select the Build Settings tab and add the following to the Debug configuration of the Other Linker Flagssetting:

      -ObjC -lz -framework Reveal

  7. In Xcode, build and run your application using a scheme that is set to use the Debug configuration. If you are running your iOS application on a device, ensure that it is on the same Wi-Fi network as Mac running Reveal.

    If everything worked, you should be able to switch to Reveal and see your iOS application listed in the app selector pull-down. Select your app and verify that you can see a snapshot of the app matching what you see in the simulator (or device).

  8. Run your application again, this time using a scheme set to use the Release configuration. Verify that Reveal cannot connect to your application. If you can still connect, check to make sure Reveal.framework is not listed in the Link Binary With Libraries section of the Build Phases tab.

No code needs to be added, nor any headers imported for Reveal integration. The library will load automatically at launch and start the necessary Reveal services within your app.

If you‘d like more control of the integration you should read the dynamic loading integration instructions.

SECTION:
Getting Started
LAST UPDATED:
February 18, 2015
  • Integrating Reveal with your iOS app
  • CocoaPods: Getting Started
  • Xamarin: Getting Started
  • RubyMotion: Getting Started.
  • Starting and Stopping the Reveal Service
  • Integrating Reveal using CocoaPods
  • Integrating Reveal: Dynamic Loading
  • Integrating Reveal: Add Reveal to your Xcode Project
  • Integrating Reveal: Static Linking
  • Integrating Reveal: Load Reveal Without Changing Your Xcode Project

Xcode UI 分析軟體Reveal

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.