├── HSKConfuse ├── Resource │ ├── func.list │ ├── codeObfuscation.h │ ├── PrefixHeader.pch │ └── confuse.sh ├── ViewController.h ├── AppDelegate.h ├── main.m ├── ViewController.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── Base.lproj │ ├── Main.storyboard │ └── LaunchScreen.storyboard └── AppDelegate.m ├── HSKConfuse.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata ├── xcuserdata │ └── housenkui.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── HSKConfuse.xcscheme └── project.pbxproj └── README.md /HSKConfuse/Resource/func.list: -------------------------------------------------------------------------------- 1 | hsk_Function1 2 | hsk_Function2 3 | -------------------------------------------------------------------------------- /HSKConfuse.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /HSKConfuse/Resource/codeObfuscation.h: -------------------------------------------------------------------------------- 1 | #ifndef Demo_codeObfuscation_h 2 | #define Demo_codeObfuscation_h 3 | //confuse string at Sat Mar 11 14:03:37 CST 2017 4 | #define hsk_Function1 bCXJfUhMCrymqViJ 5 | #define hsk_Function2 BpfFGCqvmxHVCtct 6 | #endif 7 | -------------------------------------------------------------------------------- /HSKConfuse/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // HSKConfuse 4 | // 5 | // Created by Code_Hou on 2017/3/11. 6 | // Copyright © 2017年 侯森魁. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /HSKConfuse/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // HSKConfuse 4 | // 5 | // Created by Code_Hou on 2017/3/11. 6 | // Copyright © 2017年 侯森魁. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /HSKConfuse/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // HSKConfuse 4 | // 5 | // Created by Code_Hou on 2017/3/11. 6 | // Copyright © 2017年 侯森魁. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /HSKConfuse/Resource/PrefixHeader.pch: -------------------------------------------------------------------------------- 1 | // 2 | // PrefixHeader.pch 3 | // HSKConfuse 4 | // 5 | // Created by Code_Hou on 2017/3/11. 6 | // Copyright © 2017年 侯森魁. All rights reserved. 7 | // 8 | 9 | #ifndef PrefixHeader_pch 10 | #define PrefixHeader_pch 11 | 12 | // Include any system framework and library headers here that should be included in all compilation units. 13 | // You will also need to set the Prefix Header build setting of one or more of your targets to reference this file. 14 | 15 | #import "codeObfuscation.h" 16 | 17 | #endif /* PrefixHeader_pch */ 18 | -------------------------------------------------------------------------------- /HSKConfuse.xcodeproj/xcuserdata/housenkui.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | HSKConfuse.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | EFE1148E1E73C4AE005683BA 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /HSKConfuse/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // HSKConfuse 4 | // 5 | // Created by Code_Hou on 2017/3/11. 6 | // Copyright © 2017年 侯森魁. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view, typically from a nib. 20 | } 21 | -(void)Hsk_Function2{ 22 | } 23 | -(void)hsk_Function2{ 24 | 25 | } 26 | - (void)handXXX{ 27 | 28 | } 29 | - (void)hand{ 30 | 31 | } 32 | - (void)hsk_start{ 33 | 34 | } 35 | - (void)hfunction{ 36 | 37 | } 38 | - (void)_hou{ 39 | 40 | } 41 | - (void)didReceiveMemoryWarning { 42 | [super didReceiveMemoryWarning]; 43 | // Dispose of any resources that can be recreated. 44 | } 45 | 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HSKConfuse 2 | # 阅读本篇文章,需要先会[class-dump.](http://www.jianshu.com/p/025fa775f3a6) O(∩_∩)O谢谢。 3 | iOS代码混淆 4 | 最近三年一直待在银行做App,由于银行对安全要求较高,所以iOS的代码必须要有混淆的措施,初期实施了念茜姐的混淆方案,但是领导说,我们要自动混淆,方法名字不能一个一个的添加到func.list中,所以方法名只能从.m和.h文件中抽取了,但是如何屏蔽系统的方法名,暂行的策略是:将自己定义的方法名全部添加一个前缀。 5 | 6 | 例如 “hsk_funtion1”; “hsk_funtion2”;“hsk_funtion3”; 7 | 8 | 9 |   ![shell文件](http://upload-images.jianshu.io/upload_images/1485140-22eacdbae71ab997.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 10 |   ![添加脚本的文件路径](http://upload-images.jianshu.io/upload_images/1485140-a55c20978ddbfbd9.png?imageMogr2/auto-orient/strip) 11 | 12 | # 通过class-dump 反编译之后:Appdelegate 效果 13 | ![图片](http://upload-images.jianshu.io/upload_images/1485140-582bcb1447c76938.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 14 | # 通过class-dump 反编译之后:ViewController 效果 15 | ![效果](http://upload-images.jianshu.io/upload_images/1485140-ba254eda8b20005e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 16 | 17 | [简书地址:http://www.jianshu.com/p/0d42e5c6361c](http://www.jianshu.com/p/0d42e5c6361c) 18 | *** 19 | 如果在使用过程中遇到BUG,希望你能Issues我,谢谢 20 | 21 |     22 | 另送一份ios自动打包脚本,放在项目根目录下,傻瓜版 23 | https://github.com/housenkui/autoComplie 24 | -------------------------------------------------------------------------------- /HSKConfuse/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /HSKConfuse/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /HSKConfuse/Resource/confuse.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | TABLENAME=symbols 4 | SYMBOL_DB_FILE="symbols" 5 | STRING_SYMBOL_FILE="$PROJECT_DIR/HSKConfuse/Resource/func.list" 6 | 7 | CONFUSE_FILE="$PROJECT_DIR/HSKConfuse" 8 | 9 | HEAD_FILE="$PROJECT_DIR/HSKConfuse/Resource/codeObfuscation.h" 10 | 11 | export LC_CTYPE=C 12 | 13 | #取以.m或.h结尾的文件以+号或-号开头的行 |去掉所有+号或-号|用空格代替符号|n个空格跟着<号 替换成 <号|开头不能是IBAction|用空格split字串取第二部分|排序|去重复|删除空行|删掉以init开头的行>写进func.list 14 | grep -h -r -I "^[-+]" $CONFUSE_FILE --include '*.[mh]' |sed "s/[+-]//g"|sed "s/[();,: *\^\/\{]/ /g"|sed "s/[ ]*$STRING_SYMBOL_FILE 15 | 16 | 17 | #维护数据库方便日后作排重,一下代码来自念茜的微博 18 | createTable() 19 | { 20 | echo "create table $TABLENAME(src text, des text);" | sqlite3 $SYMBOL_DB_FILE 21 | } 22 | 23 | insertValue() 24 | { 25 | echo "insert into $TABLENAME values('$1' ,'$2');" | sqlite3 $SYMBOL_DB_FILE 26 | } 27 | 28 | query() 29 | { 30 | echo "select * from $TABLENAME where src='$1';" | sqlite3 $SYMBOL_DB_FILE 31 | } 32 | 33 | ramdomString() 34 | { 35 | openssl rand -base64 64 | tr -cd 'a-zA-Z' |head -c 16 36 | 37 | } 38 | 39 | rm -f $SYMBOL_DB_FILE 40 | rm -f $HEAD_FILE 41 | createTable 42 | 43 | touch $HEAD_FILE 44 | echo '#ifndef Demo_codeObfuscation_h 45 | #define Demo_codeObfuscation_h' >> $HEAD_FILE 46 | echo "//confuse string at `date`" >> $HEAD_FILE 47 | cat "$STRING_SYMBOL_FILE" | while read -ra line; do 48 | if [[ ! -z "$line" ]]; then 49 | ramdom=`ramdomString` 50 | echo $line $ramdom 51 | insertValue $line $ramdom 52 | echo "#define $line $ramdom" >> $HEAD_FILE 53 | fi 54 | done 55 | echo "#endif" >> $HEAD_FILE 56 | 57 | 58 | sqlite3 $SYMBOL_DB_FILE .dump 59 | 60 | -------------------------------------------------------------------------------- /HSKConfuse/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /HSKConfuse/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /HSKConfuse/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // HSKConfuse 4 | // 5 | // Created by Code_Hou on 2017/3/11. 6 | // Copyright © 2017年 侯森魁. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | - (void)hsk_Function1{ 18 | 19 | } 20 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 21 | // Override point for customization after application launch. 22 | return YES; 23 | } 24 | 25 | 26 | - (void)applicationWillResignActive:(UIApplication *)application { 27 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 28 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 29 | } 30 | 31 | 32 | - (void)applicationDidEnterBackground:(UIApplication *)application { 33 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 34 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 35 | } 36 | 37 | 38 | - (void)applicationWillEnterForeground:(UIApplication *)application { 39 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 40 | } 41 | 42 | 43 | - (void)applicationDidBecomeActive:(UIApplication *)application { 44 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 45 | } 46 | 47 | 48 | - (void)applicationWillTerminate:(UIApplication *)application { 49 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 50 | } 51 | 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /HSKConfuse.xcodeproj/xcuserdata/housenkui.xcuserdatad/xcschemes/HSKConfuse.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /HSKConfuse.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | EFE114941E73C4AE005683BA /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = EFE114931E73C4AE005683BA /* main.m */; }; 11 | EFE114971E73C4AE005683BA /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = EFE114961E73C4AE005683BA /* AppDelegate.m */; }; 12 | EFE1149A1E73C4AE005683BA /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = EFE114991E73C4AE005683BA /* ViewController.m */; }; 13 | EFE1149D1E73C4AE005683BA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EFE1149B1E73C4AE005683BA /* Main.storyboard */; }; 14 | EFE1149F1E73C4AE005683BA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EFE1149E1E73C4AE005683BA /* Assets.xcassets */; }; 15 | EFE114A21E73C4AE005683BA /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EFE114A01E73C4AE005683BA /* LaunchScreen.storyboard */; }; 16 | EFE114AE1E73C532005683BA /* confuse.sh in Resources */ = {isa = PBXBuildFile; fileRef = EFE114AC1E73C532005683BA /* confuse.sh */; }; 17 | EFE114AF1E73C532005683BA /* func.list in Resources */ = {isa = PBXBuildFile; fileRef = EFE114AD1E73C532005683BA /* func.list */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXFileReference section */ 21 | EFE1148F1E73C4AE005683BA /* HSKConfuse.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HSKConfuse.app; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | EFE114931E73C4AE005683BA /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 23 | EFE114951E73C4AE005683BA /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 24 | EFE114961E73C4AE005683BA /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 25 | EFE114981E73C4AE005683BA /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 26 | EFE114991E73C4AE005683BA /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 27 | EFE1149C1E73C4AE005683BA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 28 | EFE1149E1E73C4AE005683BA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 29 | EFE114A11E73C4AE005683BA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 30 | EFE114A31E73C4AE005683BA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 31 | EFE114AB1E73C532005683BA /* codeObfuscation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = codeObfuscation.h; sourceTree = ""; }; 32 | EFE114AC1E73C532005683BA /* confuse.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = confuse.sh; sourceTree = ""; }; 33 | EFE114AD1E73C532005683BA /* func.list */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = func.list; sourceTree = ""; }; 34 | EFE114B01E73C54F005683BA /* PrefixHeader.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PrefixHeader.pch; sourceTree = ""; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | EFE1148C1E73C4AE005683BA /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | ); 43 | runOnlyForDeploymentPostprocessing = 0; 44 | }; 45 | /* End PBXFrameworksBuildPhase section */ 46 | 47 | /* Begin PBXGroup section */ 48 | EFE114861E73C4AE005683BA = { 49 | isa = PBXGroup; 50 | children = ( 51 | EFE114911E73C4AE005683BA /* HSKConfuse */, 52 | EFE114901E73C4AE005683BA /* Products */, 53 | ); 54 | sourceTree = ""; 55 | }; 56 | EFE114901E73C4AE005683BA /* Products */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | EFE1148F1E73C4AE005683BA /* HSKConfuse.app */, 60 | ); 61 | name = Products; 62 | sourceTree = ""; 63 | }; 64 | EFE114911E73C4AE005683BA /* HSKConfuse */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | EFE114951E73C4AE005683BA /* AppDelegate.h */, 68 | EFE114961E73C4AE005683BA /* AppDelegate.m */, 69 | EFE114981E73C4AE005683BA /* ViewController.h */, 70 | EFE114991E73C4AE005683BA /* ViewController.m */, 71 | EFE1149B1E73C4AE005683BA /* Main.storyboard */, 72 | EFE1149E1E73C4AE005683BA /* Assets.xcassets */, 73 | EFE114A01E73C4AE005683BA /* LaunchScreen.storyboard */, 74 | EFE114A31E73C4AE005683BA /* Info.plist */, 75 | EFE114A91E73C4EB005683BA /* Resource */, 76 | EFE114921E73C4AE005683BA /* Supporting Files */, 77 | ); 78 | path = HSKConfuse; 79 | sourceTree = ""; 80 | }; 81 | EFE114921E73C4AE005683BA /* Supporting Files */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | EFE114931E73C4AE005683BA /* main.m */, 85 | ); 86 | name = "Supporting Files"; 87 | sourceTree = ""; 88 | }; 89 | EFE114A91E73C4EB005683BA /* Resource */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | EFE114AB1E73C532005683BA /* codeObfuscation.h */, 93 | EFE114AC1E73C532005683BA /* confuse.sh */, 94 | EFE114AD1E73C532005683BA /* func.list */, 95 | EFE114B01E73C54F005683BA /* PrefixHeader.pch */, 96 | ); 97 | path = Resource; 98 | sourceTree = ""; 99 | }; 100 | /* End PBXGroup section */ 101 | 102 | /* Begin PBXNativeTarget section */ 103 | EFE1148E1E73C4AE005683BA /* HSKConfuse */ = { 104 | isa = PBXNativeTarget; 105 | buildConfigurationList = EFE114A61E73C4AE005683BA /* Build configuration list for PBXNativeTarget "HSKConfuse" */; 106 | buildPhases = ( 107 | EFE1148B1E73C4AE005683BA /* Sources */, 108 | EFE1148C1E73C4AE005683BA /* Frameworks */, 109 | EFE1148D1E73C4AE005683BA /* Resources */, 110 | EFE114AA1E73C519005683BA /* ShellScript */, 111 | ); 112 | buildRules = ( 113 | ); 114 | dependencies = ( 115 | ); 116 | name = HSKConfuse; 117 | productName = HSKConfuse; 118 | productReference = EFE1148F1E73C4AE005683BA /* HSKConfuse.app */; 119 | productType = "com.apple.product-type.application"; 120 | }; 121 | /* End PBXNativeTarget section */ 122 | 123 | /* Begin PBXProject section */ 124 | EFE114871E73C4AE005683BA /* Project object */ = { 125 | isa = PBXProject; 126 | attributes = { 127 | LastUpgradeCheck = 0820; 128 | ORGANIZATIONNAME = "侯森魁"; 129 | TargetAttributes = { 130 | EFE1148E1E73C4AE005683BA = { 131 | CreatedOnToolsVersion = 8.2; 132 | ProvisioningStyle = Automatic; 133 | }; 134 | }; 135 | }; 136 | buildConfigurationList = EFE1148A1E73C4AE005683BA /* Build configuration list for PBXProject "HSKConfuse" */; 137 | compatibilityVersion = "Xcode 3.2"; 138 | developmentRegion = English; 139 | hasScannedForEncodings = 0; 140 | knownRegions = ( 141 | en, 142 | Base, 143 | ); 144 | mainGroup = EFE114861E73C4AE005683BA; 145 | productRefGroup = EFE114901E73C4AE005683BA /* Products */; 146 | projectDirPath = ""; 147 | projectRoot = ""; 148 | targets = ( 149 | EFE1148E1E73C4AE005683BA /* HSKConfuse */, 150 | ); 151 | }; 152 | /* End PBXProject section */ 153 | 154 | /* Begin PBXResourcesBuildPhase section */ 155 | EFE1148D1E73C4AE005683BA /* Resources */ = { 156 | isa = PBXResourcesBuildPhase; 157 | buildActionMask = 2147483647; 158 | files = ( 159 | EFE114A21E73C4AE005683BA /* LaunchScreen.storyboard in Resources */, 160 | EFE114AF1E73C532005683BA /* func.list in Resources */, 161 | EFE1149F1E73C4AE005683BA /* Assets.xcassets in Resources */, 162 | EFE114AE1E73C532005683BA /* confuse.sh in Resources */, 163 | EFE1149D1E73C4AE005683BA /* Main.storyboard in Resources */, 164 | ); 165 | runOnlyForDeploymentPostprocessing = 0; 166 | }; 167 | /* End PBXResourcesBuildPhase section */ 168 | 169 | /* Begin PBXShellScriptBuildPhase section */ 170 | EFE114AA1E73C519005683BA /* ShellScript */ = { 171 | isa = PBXShellScriptBuildPhase; 172 | buildActionMask = 2147483647; 173 | files = ( 174 | ); 175 | inputPaths = ( 176 | ); 177 | outputPaths = ( 178 | ); 179 | runOnlyForDeploymentPostprocessing = 0; 180 | shellPath = /bin/sh; 181 | shellScript = $PROJECT_DIR/HSKConfuse/Resource/confuse.sh; 182 | }; 183 | /* End PBXShellScriptBuildPhase section */ 184 | 185 | /* Begin PBXSourcesBuildPhase section */ 186 | EFE1148B1E73C4AE005683BA /* Sources */ = { 187 | isa = PBXSourcesBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | EFE1149A1E73C4AE005683BA /* ViewController.m in Sources */, 191 | EFE114971E73C4AE005683BA /* AppDelegate.m in Sources */, 192 | EFE114941E73C4AE005683BA /* main.m in Sources */, 193 | ); 194 | runOnlyForDeploymentPostprocessing = 0; 195 | }; 196 | /* End PBXSourcesBuildPhase section */ 197 | 198 | /* Begin PBXVariantGroup section */ 199 | EFE1149B1E73C4AE005683BA /* Main.storyboard */ = { 200 | isa = PBXVariantGroup; 201 | children = ( 202 | EFE1149C1E73C4AE005683BA /* Base */, 203 | ); 204 | name = Main.storyboard; 205 | sourceTree = ""; 206 | }; 207 | EFE114A01E73C4AE005683BA /* LaunchScreen.storyboard */ = { 208 | isa = PBXVariantGroup; 209 | children = ( 210 | EFE114A11E73C4AE005683BA /* Base */, 211 | ); 212 | name = LaunchScreen.storyboard; 213 | sourceTree = ""; 214 | }; 215 | /* End PBXVariantGroup section */ 216 | 217 | /* Begin XCBuildConfiguration section */ 218 | EFE114A41E73C4AE005683BA /* Debug */ = { 219 | isa = XCBuildConfiguration; 220 | buildSettings = { 221 | ALWAYS_SEARCH_USER_PATHS = NO; 222 | CLANG_ANALYZER_NONNULL = YES; 223 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 224 | CLANG_CXX_LIBRARY = "libc++"; 225 | CLANG_ENABLE_MODULES = YES; 226 | CLANG_ENABLE_OBJC_ARC = YES; 227 | CLANG_WARN_BOOL_CONVERSION = YES; 228 | CLANG_WARN_CONSTANT_CONVERSION = YES; 229 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 230 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 231 | CLANG_WARN_EMPTY_BODY = YES; 232 | CLANG_WARN_ENUM_CONVERSION = YES; 233 | CLANG_WARN_INFINITE_RECURSION = YES; 234 | CLANG_WARN_INT_CONVERSION = YES; 235 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 236 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 237 | CLANG_WARN_UNREACHABLE_CODE = YES; 238 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 239 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 240 | COPY_PHASE_STRIP = NO; 241 | DEBUG_INFORMATION_FORMAT = dwarf; 242 | ENABLE_STRICT_OBJC_MSGSEND = YES; 243 | ENABLE_TESTABILITY = YES; 244 | GCC_C_LANGUAGE_STANDARD = gnu99; 245 | GCC_DYNAMIC_NO_PIC = NO; 246 | GCC_NO_COMMON_BLOCKS = YES; 247 | GCC_OPTIMIZATION_LEVEL = 0; 248 | GCC_PREPROCESSOR_DEFINITIONS = ( 249 | "DEBUG=1", 250 | "$(inherited)", 251 | ); 252 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 253 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 254 | GCC_WARN_UNDECLARED_SELECTOR = YES; 255 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 256 | GCC_WARN_UNUSED_FUNCTION = YES; 257 | GCC_WARN_UNUSED_VARIABLE = YES; 258 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 259 | MTL_ENABLE_DEBUG_INFO = YES; 260 | ONLY_ACTIVE_ARCH = YES; 261 | SDKROOT = iphoneos; 262 | TARGETED_DEVICE_FAMILY = "1,2"; 263 | }; 264 | name = Debug; 265 | }; 266 | EFE114A51E73C4AE005683BA /* Release */ = { 267 | isa = XCBuildConfiguration; 268 | buildSettings = { 269 | ALWAYS_SEARCH_USER_PATHS = NO; 270 | CLANG_ANALYZER_NONNULL = YES; 271 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 272 | CLANG_CXX_LIBRARY = "libc++"; 273 | CLANG_ENABLE_MODULES = YES; 274 | CLANG_ENABLE_OBJC_ARC = YES; 275 | CLANG_WARN_BOOL_CONVERSION = YES; 276 | CLANG_WARN_CONSTANT_CONVERSION = YES; 277 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 278 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 279 | CLANG_WARN_EMPTY_BODY = YES; 280 | CLANG_WARN_ENUM_CONVERSION = YES; 281 | CLANG_WARN_INFINITE_RECURSION = YES; 282 | CLANG_WARN_INT_CONVERSION = YES; 283 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 284 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 285 | CLANG_WARN_UNREACHABLE_CODE = YES; 286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 288 | COPY_PHASE_STRIP = NO; 289 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 290 | ENABLE_NS_ASSERTIONS = NO; 291 | ENABLE_STRICT_OBJC_MSGSEND = YES; 292 | GCC_C_LANGUAGE_STANDARD = gnu99; 293 | GCC_NO_COMMON_BLOCKS = YES; 294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 296 | GCC_WARN_UNDECLARED_SELECTOR = YES; 297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 298 | GCC_WARN_UNUSED_FUNCTION = YES; 299 | GCC_WARN_UNUSED_VARIABLE = YES; 300 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 301 | MTL_ENABLE_DEBUG_INFO = NO; 302 | SDKROOT = iphoneos; 303 | TARGETED_DEVICE_FAMILY = "1,2"; 304 | VALIDATE_PRODUCT = YES; 305 | }; 306 | name = Release; 307 | }; 308 | EFE114A71E73C4AE005683BA /* Debug */ = { 309 | isa = XCBuildConfiguration; 310 | buildSettings = { 311 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 312 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 313 | GCC_PREFIX_HEADER = HSKConfuse/Resource/PrefixHeader.pch; 314 | INFOPLIST_FILE = HSKConfuse/Info.plist; 315 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 316 | PRODUCT_BUNDLE_IDENTIFIER = YItong.HSKConfuse; 317 | PRODUCT_NAME = "$(TARGET_NAME)"; 318 | }; 319 | name = Debug; 320 | }; 321 | EFE114A81E73C4AE005683BA /* Release */ = { 322 | isa = XCBuildConfiguration; 323 | buildSettings = { 324 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 325 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 326 | GCC_PREFIX_HEADER = HSKConfuse/Resource/PrefixHeader.pch; 327 | INFOPLIST_FILE = HSKConfuse/Info.plist; 328 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 329 | PRODUCT_BUNDLE_IDENTIFIER = YItong.HSKConfuse; 330 | PRODUCT_NAME = "$(TARGET_NAME)"; 331 | }; 332 | name = Release; 333 | }; 334 | /* End XCBuildConfiguration section */ 335 | 336 | /* Begin XCConfigurationList section */ 337 | EFE1148A1E73C4AE005683BA /* Build configuration list for PBXProject "HSKConfuse" */ = { 338 | isa = XCConfigurationList; 339 | buildConfigurations = ( 340 | EFE114A41E73C4AE005683BA /* Debug */, 341 | EFE114A51E73C4AE005683BA /* Release */, 342 | ); 343 | defaultConfigurationIsVisible = 0; 344 | defaultConfigurationName = Release; 345 | }; 346 | EFE114A61E73C4AE005683BA /* Build configuration list for PBXNativeTarget "HSKConfuse" */ = { 347 | isa = XCConfigurationList; 348 | buildConfigurations = ( 349 | EFE114A71E73C4AE005683BA /* Debug */, 350 | EFE114A81E73C4AE005683BA /* Release */, 351 | ); 352 | defaultConfigurationIsVisible = 0; 353 | }; 354 | /* End XCConfigurationList section */ 355 | }; 356 | rootObject = EFE114871E73C4AE005683BA /* Project object */; 357 | } 358 | --------------------------------------------------------------------------------