Reveal的静态链接步骤

Reveal是一款收费软件,可以帮助iOS开发者更快的调试界面.为了安装这个软件,网上很多教程都是过时和错误的.导致走了一些弯路.现在记载下来Reveal和xcode的结合步骤:

  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.Show reveal library in finder
  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.Add resource to project
  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 Librariessection if it is present.

    Remove framework from project

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

      -ObjC -lz -framework Reveal

    Add linker flags

  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. Reveal app chooser

    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.

转载于:https://www.cnblogs.com/xclidongbo/p/4340872.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值