Skip to content

Commit

Permalink
Updated ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel Scibek committed Oct 13, 2015
1 parent 5160a66 commit 0116933
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if you need **iOS Class Guard Pro** with more features [click here](#pro-version

Version
-----------
0.7
0.8

Do I need It?
-----------
Expand Down Expand Up @@ -77,6 +77,20 @@ curl -o obfuscate_project https://raw.githubusercontent.com/Polidea/ios-class-gu

The presented way is the simplest one. You can also add additional target that will automatically regenerate the symbols map during compilation.

Pre compiled header file
-----------
After obfuscation, iOS-Class-Guard will try to add generated symbols header (`symbols.h`) to your project's `*.pch` file. However, projects created in Xcode 6 and higher doesn't contain `*.pch` file by default. If your project doesn't contain any `*.pch` file, you will have to add it manually **before obfuscation**.

To add `*.pch` file to your project:

1. Create file with `.pch` extension in your project's root directory. In Xcode go to `File -> New -> File -> iOS -> Other -> PCH File`

2. At the target's *Build Settings*, in *Apple LLVM - Language* section, set **Prefix Header** to your PCH file name.

3. At the target's *Build Settings*, in *Apple LLVM - Language* section, set **Precompile Prefix Header** to `YES`.

For more details please refer to [this](http://stackoverflow.com/a/24524692/1219382) Stack Overflow question.

Example
-----------
You can take a look what changes are required and how it works in some example projects.
Expand All @@ -96,7 +110,7 @@ https://github.com/Polidea/ios-class-guard-example/tree/master/SWTableViewCell-o
Command Line Options
-----------
```
ios-class-guard 0.7 (64 bit)
ios-class-guard 0.8 (64 bit)
Usage: ios-class-guard [options] <mach-o-file>
where options are:
Expand Down

0 comments on commit 0116933

Please sign in to comment.