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
- 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
- Open Terminal, enter
vim ~/.lldbinit
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];
- At this point the terminal belongs to the insert state by
ESC
exiting the insertion state
- We're going to exit the terminal.
shift
+ q
type command line status
Save exit at Terminal input wq
Second, the settings within Xcode
- Click the line number area to the left of the method, add a breakpoint, then right-click the breakpoint and select
Edit Breakpoint
- Click
Action
the item side right Add Action
, and then enterreveal_load_sim
- 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