The Development Interface debugging tool-reveal detailed installation use

Source: Internet
Author: User

Reveal is a great tool for analyzing the app UI and is handy for viewing any UI layout

I. Simulator for analysis

1. Open reveal (http://revealapp.com download)

2. Open Xcode

3.reveal--help--show Reveal Library in Finder

      

4.xcode--importing reveal.framework into the current project

      

5. In the project setup, add-objc-framework Reveal in the other Linker flags item

6. After running the current project, open reveal, select the current running program to associate

      

7. Once the connection is successful, the UI hierarchy elements of the application can be properly seen.

    

Two. Extended reveal trial time

For the official website download reveal, the default is to give 30 days of use limit, and then have to pay ... Pay attention in the celestial payment (= Find a way to crack), and then start to find a way to crack, http://jingwei6.me/2014/02/28/reveal_crack.html directly see the conclusion:

"So, to try reveal permanently, just open

/users/xc/library/preferences/com.ittybittyapps.reveal.plist

Just remove the ibaapplicationpersistencedata. ”

Then the test did not succeed, open the software again or pop up the trial prompt, continue to try, with Cleanmymac open found that there is a file exists, delete the above steps to repeat the above, again open Reveal,ok success, but in the upper corner see still have trial tips, time has become 30 days, In general, this method can only prolong the time, or can not actually crack, continue to find a good way!

First, the operation of the terminal
  1. First, the most important point, first put the reveal software into the application, otherwise the path is wrong, the subsequent settings will not be useful
  2. Open Terminal, entervim ~/.lldbinit
  3. then enter

    command alias reveal_load_sim expr (void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2);command alias reveal_load_dev expr (void*)dlopen([(NSString*)[(NSBundle*)[NSBundle mainBundle]               pathForResource:@"libReveal" ofType:@"dylib"] cStringUsingEncoding:0x4], 0x2);command alias reveal_start expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter]           postNotificationName:@"IBARevealRequestStart" object:nil];command alias reveal_stop expr (void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter]            postNotificationName:@"IBARevealRequestStop" object:nil];
  4. At this point the terminal belongs to the insert state by ESC exiting the insertion state
  5. We're going to exit the terminal. shift + q type command line status
  6. Save exit at Terminal input wq

Second, the settings within Xcode
    1. Click the line number area to the left of the method, add a breakpoint, then right-click the breakpoint and selectEdit Breakpoint
    2. Click Action the item side right Add Action , and then enterreveal_load_sim
    3. Tick on Options the option above Automatically continue after evaluating as
Third, witness the magical moment now we can run the simulator, and then open the reveal, you can see in the upper left corner of the reveal interface, the emulator can be connected to debug, select it, you can view and debug the iOS program interface in reveal.

The Development Interface debugging tool-reveal detailed installation use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.