├── .gitignore ├── LICENSE ├── README.md ├── WHDebugTool.podspec ├── WHDebugTool ├── WHDebugConsoleLabel.h ├── WHDebugConsoleLabel.m ├── WHDebugCpuMonitor.h ├── WHDebugCpuMonitor.m ├── WHDebugFPSMonitor.h ├── WHDebugFPSMonitor.m ├── WHDebugMemoryMonitor.h ├── WHDebugMemoryMonitor.m ├── WHDebugMonitor.h ├── WHDebugMonitor.m ├── WHDebugTempVC.h ├── WHDebugTempVC.m ├── WHDebugToolManager.h └── WHDebugToolManager.m └── WHDebugToolDemo ├── Podfile ├── Podfile.lock ├── Pods ├── Local Podspecs │ └── WHDebugTool.podspec.json ├── Manifest.lock ├── Pods.xcodeproj │ └── project.pbxproj └── Target Support Files │ ├── Pods-WHDebugToolDemo │ ├── Pods-WHDebugToolDemo-Info.plist │ ├── Pods-WHDebugToolDemo-acknowledgements.markdown │ ├── Pods-WHDebugToolDemo-acknowledgements.plist │ ├── Pods-WHDebugToolDemo-dummy.m │ ├── Pods-WHDebugToolDemo-frameworks-Debug-input-files.xcfilelist │ ├── Pods-WHDebugToolDemo-frameworks-Debug-output-files.xcfilelist │ ├── Pods-WHDebugToolDemo-frameworks-Release-input-files.xcfilelist │ ├── Pods-WHDebugToolDemo-frameworks-Release-output-files.xcfilelist │ ├── Pods-WHDebugToolDemo-frameworks.sh │ ├── Pods-WHDebugToolDemo-umbrella.h │ ├── Pods-WHDebugToolDemo.debug.xcconfig │ ├── Pods-WHDebugToolDemo.modulemap │ └── Pods-WHDebugToolDemo.release.xcconfig │ └── WHDebugTool │ ├── WHDebugTool-Info.plist │ ├── WHDebugTool-dummy.m │ ├── WHDebugTool-prefix.pch │ ├── WHDebugTool-umbrella.h │ ├── WHDebugTool.debug.xcconfig │ ├── WHDebugTool.modulemap │ └── WHDebugTool.release.xcconfig ├── WHDebugToolDemo.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── WHDebugToolDemo.xcworkspace ├── contents.xcworkspacedata └── xcshareddata │ └── IDEWorkspaceChecks.plist └── WHDebugToolDemo ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets ├── AccentColor.colorset │ └── Contents.json ├── AppIcon.appiconset │ └── Contents.json └── Contents.json ├── Base.lproj ├── LaunchScreen.storyboard └── Main.storyboard ├── Info.plist ├── SceneDelegate.h ├── SceneDelegate.m ├── ViewController.h ├── ViewController.m └── main.m /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | ## Various settings 9 | *.xcuserstate 10 | *.DS_Store 11 | *.pbxuser 12 | !default.pbxuser 13 | *.mode1v3 14 | !default.mode1v3 15 | *.mode2v3 16 | !default.mode2v3 17 | *.perspectivev3 18 | !default.perspectivev3 19 | xcuserdata/ 20 | 21 | ## Other 22 | *.moved-aside 23 | *.xccheckout 24 | *.xcscmblueprint 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | *.dSYM.zip 30 | *.dSYM 31 | 32 | # CocoaPods 33 | # 34 | # We recommend against adding the Pods directory to your .gitignore. However 35 | # you should judge for yourself, the pros and cons are mentioned at: 36 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 37 | # 38 | # Pods/ 39 | # 40 | # Add this line if you want to avoid checking in source code from the Xcode workspace 41 | # *.xcworkspace 42 | 43 | # Carthage 44 | # 45 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 46 | # Carthage/Checkouts 47 | 48 | Carthage/Build 49 | 50 | # fastlane 51 | # 52 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 53 | # screenshots whenever they are needed. 54 | # For more information about the recommended setup visit: 55 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 56 | 57 | fastlane/report.xml 58 | fastlane/Preview.html 59 | fastlane/screenshots/**/*.png 60 | fastlane/test_output 61 | 62 | # Code Injection 63 | # 64 | # After new code Injection tools there's a generated folder /iOSInjectionProject 65 | # https://github.com/johnno1962/injectionforxcode 66 | 67 | iOSInjectionProject/ 68 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 wuhao 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WHDebugTool 2 | 3 | ![Debug](https://upload-images.jianshu.io/upload_images/3873004-abada48f188a2408.gif?imageMogr2/auto-orient/strip) 4 | 5 | ### 1、快速使用 6 | 7 | 1.1 Pod或直接把WHDebugTool文件拖入项目 8 | 9 | ```objc 10 | pod 'WHDebugTool', '~> 2.5' 11 | ``` 12 | 13 | 1.2 导入头文件`WHDebugToolManager.h` 14 | 15 | 1.3 调用开关方法 16 | 17 | 一行代码开启或关闭监测。 18 | ```objc 19 | // 这个方法调用的时候会判断监测是不是处于打开的状态,如果打开了则关闭,如果没有打开就开启。 20 | [WHDebugToolManager toggleWith:DebugToolTypeAll]; 21 | ``` 22 | 23 | 1.4 可选:也可以通过如下方式初始化和关闭 24 | ```objc 25 | // 打开 26 | + (void)showWith:(DebugToolType)type; 27 | // 关闭 28 | + (void)hide; 29 | ``` 30 | 31 | ### 2. 参数说明 32 | 33 | 初始化方法中带有一个枚举参数,可以让三种监测随意组合。例如只想要监测FPS,就传入DebugToolTypeFPS,如果想多种组合:DebugToolTypeFPS | DebugToolTypeMemory | DebugToolTypeCPU 34 | ```objc 35 | DebugToolTypeFPS = 1 << 0, 36 | DebugToolTypeCPU = 1 << 1, 37 | DebugToolTypeMemory = 1 << 2, 38 | DebugToolTypeAll = (DebugToolTypeFPS | DebugToolTypeCPU | DebugToolTypeMemory) 39 | ``` 40 | -------------------------------------------------------------------------------- /WHDebugTool.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | 4 | s.name = "WHDebugTool" 5 | 6 | s.version = "2.5" 7 | 8 | s.summary = "Debug tool for iOS" 9 | 10 | s.homepage = "https://github.com/remember17/WHDebugTool" 11 | 12 | s.license = "MIT" 13 | 14 | s.author = { "wuhao" => "503007958@qq.com" } 15 | 16 | s.platform = :ios, "11.0" 17 | 18 | s.source = { :git => "https://github.com/remember17/WHDebugTool.git", :tag => s.version } 19 | 20 | s.source_files = "WHDebugTool 21 | ", "WHDebugTool/*.{h,m}" 22 | 23 | s.framework = "UIKit" 24 | 25 | s.requires_arc = true 26 | 27 | end 28 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugConsoleLabel.h: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugConsoleLabel.h 3 | // WHDebugTool 4 | // 5 | // Created by wuhao on 2018/7/17. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // https://github.com/remember17/WHDebugTool 8 | 9 | #import 10 | 11 | typedef NS_ENUM(NSUInteger, DebugToolLabelType) { 12 | DebugToolLabelTypeFPS, 13 | DebugToolLabelTypeMemory, 14 | DebugToolLabelTypeCPU 15 | }; 16 | 17 | @interface WHDebugConsoleLabel : UILabel 18 | 19 | - (void)updateLabelWith:(DebugToolLabelType)labelType value:(float)value; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugConsoleLabel.m: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugConsoleLabel.m 3 | // WHDebugTool 4 | // 5 | // Created by wuhao on 2018/7/17. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // https://github.com/remember17/WHDebugTool 8 | 9 | #import "WHDebugConsoleLabel.h" 10 | 11 | @implementation WHDebugConsoleLabel { 12 | UIFont *_font; 13 | UIFont *_subFont; 14 | } 15 | 16 | - (instancetype)initWithFrame:(CGRect)frame { 17 | self = [super initWithFrame:frame]; 18 | if (self) { [self setDefault]; } 19 | return self; 20 | } 21 | 22 | - (void)setDefault { 23 | self.layer.cornerRadius = 5; 24 | self.clipsToBounds = YES; 25 | self.textAlignment = NSTextAlignmentCenter; 26 | self.userInteractionEnabled = NO; 27 | self.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7]; 28 | _font = [UIFont fontWithName:@"Menlo" size:14]; 29 | if (_font) { 30 | _subFont = [UIFont fontWithName:@"Menlo" size:4]; 31 | } else { 32 | _font = [UIFont fontWithName:@"Courier" size:14]; 33 | _subFont = [UIFont fontWithName:@"Courier" size:4]; 34 | } 35 | } 36 | 37 | - (void)updateLabelWith:(DebugToolLabelType)labelType value:(float)value { 38 | switch (labelType) { 39 | case DebugToolLabelTypeFPS: 40 | self.attributedText = [self fpsAttributedStringWith:value]; 41 | break; 42 | case DebugToolLabelTypeMemory: 43 | self.attributedText = [self memoryAttributedStringWith:value]; 44 | break; 45 | case DebugToolLabelTypeCPU: 46 | self.attributedText = [self cpuAttributedStringWith:value]; 47 | break; 48 | default: 49 | break; 50 | } 51 | } 52 | 53 | 54 | #pragma mark - NSAttributedString 55 | 56 | - (NSAttributedString *)fpsAttributedStringWith:(float)fps { 57 | CGFloat progress = fps / 60.0; 58 | UIColor *color = [UIColor colorWithHue:0.27 * (progress - 0.2) saturation:1 brightness:0.9 alpha:1]; 59 | NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"%d FPS",(int)round(fps)]]; 60 | [text addAttribute:NSForegroundColorAttributeName value:color range:NSMakeRange(0, text.length - 3)]; 61 | [text addAttribute:NSForegroundColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(text.length - 3, 3)]; 62 | [text addAttribute:NSFontAttributeName value:_font range:NSMakeRange(0, text.length)]; 63 | [text addAttribute:NSFontAttributeName value:_subFont range:NSMakeRange(text.length - 4, 1)]; 64 | return text; 65 | } 66 | 67 | - (NSAttributedString *)memoryAttributedStringWith:(float)memory { 68 | CGFloat progress = memory / 350; 69 | UIColor *color = [self getColorByPercent:progress];; 70 | NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"%.1f M",memory]]; 71 | [text addAttribute:NSForegroundColorAttributeName value:color range:NSMakeRange(0, text.length - 1)]; 72 | [text addAttribute:NSForegroundColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(text.length - 1, 1)]; 73 | [text addAttribute:NSFontAttributeName value:_font range:NSMakeRange(0, text.length)]; 74 | [text addAttribute:NSFontAttributeName value:_subFont range:NSMakeRange(text.length - 2, 1)]; 75 | return text; 76 | } 77 | 78 | - (NSAttributedString *)cpuAttributedStringWith:(float)cpu { 79 | CGFloat progress = cpu / 100; 80 | UIColor *color = [self getColorByPercent:progress]; 81 | NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"%d%% CPU",(int)round(cpu)]]; 82 | [text addAttribute:NSForegroundColorAttributeName value:color range:NSMakeRange(0, text.length - 3)]; 83 | [text addAttribute:NSForegroundColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(text.length - 3, 3)]; 84 | [text addAttribute:NSFontAttributeName value:_font range:NSMakeRange(0, text.length)]; 85 | [text addAttribute:NSFontAttributeName value:_subFont range:NSMakeRange(text.length - 4, 1)]; 86 | return text; 87 | } 88 | 89 | #pragma mark - Color 90 | 91 | - (UIColor*)getColorByPercent:(CGFloat)percent { 92 | NSInteger r = 0, g = 0, one = 255 + 255; 93 | if (percent < 0.5) { 94 | r = one * percent; 95 | g = 255; 96 | } 97 | if (percent >= 0.5) { 98 | g = 255 - ((percent - 0.5 ) * one) ; 99 | r = 255; 100 | } 101 | return [UIColor colorWithRed:r/255.0 green:g/255.0 blue:0 alpha:1]; 102 | } 103 | 104 | @end 105 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugCpuMonitor.h: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugCpuMonitor.h 3 | // Demo 4 | // 5 | // Created by wuhao on 2018/7/26. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // https://github.com/remember17/WHDebugTool 8 | 9 | #import "WHDebugMonitor.h" 10 | 11 | @interface WHDebugCpuMonitor : WHDebugMonitor 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugCpuMonitor.m: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugCpuMonitor.m 3 | // Demo 4 | // 5 | // Created by wuhao on 2018/7/26. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // https://github.com/remember17/WHDebugTool 8 | 9 | #import "WHDebugCpuMonitor.h" 10 | #import 11 | 12 | @implementation WHDebugCpuMonitor 13 | 14 | WHSingletonM() 15 | 16 | - (float)getValue { 17 | kern_return_t kr; 18 | task_info_data_t tinfo; 19 | mach_msg_type_number_t task_info_count; 20 | 21 | task_info_count = TASK_INFO_MAX; 22 | kr = task_info(mach_task_self(), TASK_BASIC_INFO, (task_info_t)tinfo, &task_info_count); 23 | if (kr != KERN_SUCCESS) { 24 | return -1; 25 | } 26 | 27 | task_basic_info_t basic_info; 28 | thread_array_t thread_list; 29 | mach_msg_type_number_t thread_count; 30 | 31 | thread_info_data_t thinfo; 32 | mach_msg_type_number_t thread_info_count; 33 | 34 | thread_basic_info_t basic_info_th; 35 | uint32_t stat_thread = 0; 36 | 37 | basic_info = (task_basic_info_t)tinfo; 38 | 39 | kr = task_threads(mach_task_self(), &thread_list, &thread_count); 40 | if (kr != KERN_SUCCESS) { 41 | return -1; 42 | } 43 | if (thread_count > 0) 44 | stat_thread += thread_count; 45 | 46 | long tot_sec = 0; 47 | long tot_usec = 0; 48 | float tot_cpu = 0; 49 | int j; 50 | 51 | for (j = 0; j < thread_count; j++) 52 | { 53 | thread_info_count = THREAD_INFO_MAX; 54 | kr = thread_info(thread_list[j], THREAD_BASIC_INFO, 55 | (thread_info_t)thinfo, &thread_info_count); 56 | if (kr != KERN_SUCCESS) { 57 | return -1; 58 | } 59 | 60 | basic_info_th = (thread_basic_info_t)thinfo; 61 | 62 | if (!(basic_info_th->flags & TH_FLAGS_IDLE)) { 63 | tot_sec = tot_sec + basic_info_th->user_time.seconds + basic_info_th->system_time.seconds; 64 | tot_usec = tot_usec + basic_info_th->user_time.microseconds + basic_info_th->system_time.microseconds; 65 | tot_cpu = tot_cpu + basic_info_th->cpu_usage / (float)TH_USAGE_SCALE * 100.0; 66 | } 67 | 68 | } 69 | 70 | kr = vm_deallocate(mach_task_self(), (vm_offset_t)thread_list, thread_count * sizeof(thread_t)); 71 | assert(kr == KERN_SUCCESS); 72 | 73 | return tot_cpu; 74 | } 75 | 76 | @end 77 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugFPSMonitor.h: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugFPSMonitor.h 3 | // Demo 4 | // 5 | // Created by wuhao on 2018/7/26. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // https://github.com/remember17/WHDebugTool 8 | 9 | #import "WHDebugMonitor.h" 10 | #import 11 | 12 | @interface WHDebugFPSMonitor : WHDebugMonitor 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugFPSMonitor.m: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugFPSMonitor.m 3 | // Demo 4 | // 5 | // Created by wuhao on 2018/7/26. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // https://github.com/remember17/WHDebugTool 8 | 9 | #import "WHDebugFPSMonitor.h" 10 | 11 | @interface WHDebugFPSMonitor() 12 | @property (nonatomic, strong) CADisplayLink *displayLink; 13 | @property (nonatomic, assign) NSTimeInterval lastTimestamp; 14 | @property (nonatomic, assign) NSInteger performTimes; 15 | @end 16 | 17 | @implementation WHDebugFPSMonitor 18 | 19 | WHSingletonM() 20 | 21 | - (void)startMonitoring { 22 | _displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(displayLinkTicks:)]; 23 | [_displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes]; 24 | } 25 | 26 | - (void)displayLinkTicks:(CADisplayLink *)link { 27 | if (_lastTimestamp == 0) { 28 | _lastTimestamp = link.timestamp; 29 | return; 30 | } 31 | _performTimes ++; 32 | NSTimeInterval interval = link.timestamp - _lastTimestamp; 33 | if (interval < 1) { return; } 34 | _lastTimestamp = link.timestamp; 35 | float fps = _performTimes / interval; 36 | _performTimes = 0; 37 | if (self.valueBlock) { 38 | self.valueBlock(fps); 39 | } 40 | } 41 | 42 | - (void)stopMonitoring { 43 | [_displayLink invalidate]; 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugMemoryMonitor.h: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugMemoryMonitor.h 3 | // Demo 4 | // 5 | // Created by wuhao on 2018/7/26. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // https://github.com/remember17/WHDebugTool 8 | 9 | #import "WHDebugMonitor.h" 10 | 11 | @interface WHDebugMemoryMonitor : WHDebugMonitor 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugMemoryMonitor.m: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugMemoryMonitor.m 3 | // Demo 4 | // 5 | // Created by wuhao on 2018/7/26. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // https://github.com/remember17/WHDebugTool 8 | 9 | #import "WHDebugMemoryMonitor.h" 10 | #import 11 | 12 | @implementation WHDebugMemoryMonitor 13 | 14 | WHSingletonM() 15 | 16 | - (float)getValue { 17 | int64_t memoryUsageInByte = 0; 18 | task_vm_info_data_t vmInfo; 19 | mach_msg_type_number_t count = TASK_VM_INFO_COUNT; 20 | kern_return_t kernReturn = task_info(mach_task_self(), TASK_VM_INFO, (task_info_t) &vmInfo, &count); 21 | if (kernReturn != KERN_SUCCESS) { return NSNotFound; } 22 | memoryUsageInByte = (int64_t) vmInfo.phys_footprint; 23 | return memoryUsageInByte/1024.0/1024.0; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugMonitor.h: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugMonitor.h 3 | // Demo 4 | // 5 | // Created by wuhao on 2018/7/26. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // https://github.com/remember17/WHDebugTool 8 | 9 | #define WHSingletonH() +(instancetype)sharedInstance; 10 | #define WHSingletonM() static id _instance;\ 11 | + (instancetype)sharedInstance {\ 12 | static dispatch_once_t onceToken;\ 13 | dispatch_once(&onceToken, ^{\ 14 | _instance = [[self alloc] init];\ 15 | });\ 16 | return _instance;\ 17 | } 18 | 19 | #import 20 | 21 | typedef void(^UpdateValueBlock)(float value); 22 | 23 | @interface WHDebugMonitor : NSObject 24 | 25 | @property (nonatomic, copy) UpdateValueBlock valueBlock; 26 | 27 | WHSingletonH() 28 | 29 | - (void)startMonitoring; 30 | - (void)stopMonitoring; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugMonitor.m: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugMonitor.m 3 | // Demo 4 | // 5 | // Created by wuhao on 2018/7/26. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // https://github.com/remember17/WHDebugTool 8 | 9 | #import "WHDebugMonitor.h" 10 | 11 | @implementation WHDebugMonitor { 12 | NSTimer *_timer; 13 | } 14 | 15 | WHSingletonM() 16 | 17 | - (void)startMonitoring { 18 | [self stopMonitoring]; 19 | _timer = [NSTimer timerWithTimeInterval:1 target:self selector:@selector(updateValue) userInfo:nil repeats:YES]; 20 | [_timer fire]; 21 | [[NSRunLoop currentRunLoop] addTimer:_timer forMode:NSRunLoopCommonModes]; 22 | } 23 | 24 | - (void)updateValue { 25 | if (self.valueBlock) { 26 | self.valueBlock([self getValue]); 27 | } 28 | } 29 | 30 | - (float)getValue { 31 | return 0.0; 32 | } 33 | 34 | - (void)stopMonitoring { 35 | [_timer invalidate]; 36 | _timer = nil; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugTempVC.h: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugTempVC.h 3 | // Demo 4 | // 5 | // Created by wuhao on 2018/7/26. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WHDebugTempVC : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugTempVC.m: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugTempVC.m 3 | // Demo 4 | // 5 | // Created by wuhao on 2018/7/26. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // 8 | 9 | #import "WHDebugTempVC.h" 10 | 11 | @implementation WHDebugTempVC 12 | 13 | - (BOOL)prefersStatusBarHidden { 14 | return NO; 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugToolManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugToolManager.h 3 | // WHDebugTool 4 | // 5 | // Created by wuhao on 2018/7/17. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // https://github.com/remember17/WHDebugTool 8 | 9 | #import 10 | #import 11 | 12 | typedef NS_OPTIONS(NSUInteger, DebugToolType) { 13 | DebugToolTypeFPS = 1 << 0, 14 | DebugToolTypeCPU = 1 << 1, 15 | DebugToolTypeMemory = 1 << 2, 16 | DebugToolTypeAll = (DebugToolTypeFPS | DebugToolTypeCPU | DebugToolTypeMemory) 17 | }; 18 | 19 | @interface WHDebugToolManager : NSObject 20 | 21 | /** switch on/off */ 22 | + (void)toggleWith:(DebugToolType)type; 23 | 24 | + (void)showWith:(DebugToolType)type; 25 | 26 | + (void)hide; 27 | 28 | 29 | 30 | 31 | + (instancetype)sharedInstance; 32 | 33 | - (void)toggleWith:(DebugToolType)type; 34 | 35 | - (void)showWith:(DebugToolType)type; 36 | 37 | - (void)hide; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /WHDebugTool/WHDebugToolManager.m: -------------------------------------------------------------------------------- 1 | // 2 | // WHDebugToolManager.m 3 | // WHDebugTool 4 | // 5 | // Created by wuhao on 2018/7/17. 6 | // Copyright © 2018年 wuhao. All rights reserved. 7 | // https://github.com/remember17/WHDebugTool 8 | 9 | #import "WHDebugToolManager.h" 10 | #import "WHDebugFPSMonitor.h" 11 | #import "WHDebugCpuMonitor.h" 12 | #import "WHDebugMemoryMonitor.h" 13 | #import "WHDebugConsoleLabel.h" 14 | #import "WHDebugTempVC.h" 15 | 16 | static inline UIWindow* debugTool_currentWindow() { 17 | UIWindow* window = nil; 18 | if (@available(iOS 13.0, *)) { 19 | for (UIWindowScene* windowScene in [UIApplication sharedApplication].connectedScenes) { 20 | if (windowScene.activationState == UISceneActivationStateForegroundActive) { 21 | window = windowScene.windows.firstObject; 22 | break; 23 | } 24 | } 25 | } else { 26 | #pragma clang diagnostic push 27 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" 28 | window = [UIApplication sharedApplication].keyWindow; 29 | #pragma clang diagnostic pop 30 | } 31 | return window; 32 | } 33 | 34 | #define kDebugScreenWidth [UIScreen mainScreen].bounds.size.width 35 | #define KDebugCurrentWindow (debugTool_currentWindow()) 36 | 37 | static inline BOOL debugTool_iPhoneX() { 38 | BOOL result = NO; 39 | if (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPhone) { 40 | return result; 41 | } 42 | if (@available(iOS 11.0, *)) { 43 | if (KDebugCurrentWindow.safeAreaInsets.bottom > 0.0) { 44 | result = YES; 45 | } 46 | } 47 | return result; 48 | } 49 | 50 | static NSInteger const kDebugLabelWidth = 70; 51 | static NSInteger const kDebugLabelHeight = 20; 52 | static NSInteger const KDebugMargin = 20; 53 | 54 | @interface WHDebugToolManager() 55 | @property (nonatomic, assign) BOOL isShowing; 56 | @property (nonatomic, strong) UIWindow *debugWindow; 57 | @property (nonatomic, strong) WHDebugConsoleLabel *memoryLabel; 58 | @property (nonatomic, strong) WHDebugConsoleLabel *fpsLabel; 59 | @property (nonatomic, strong) WHDebugConsoleLabel *cpuLabel; 60 | @property (nonatomic, assign) DebugToolType type; 61 | @end 62 | 63 | @implementation WHDebugToolManager 64 | 65 | - (void)dealloc { 66 | [[NSNotificationCenter defaultCenter] removeObserver:self]; 67 | } 68 | 69 | static id _instance; 70 | + (instancetype)sharedInstance { 71 | static dispatch_once_t onceToken; 72 | dispatch_once(&onceToken, ^{ 73 | _instance = [[self alloc] init]; 74 | }); 75 | return _instance; 76 | } 77 | 78 | - (instancetype)init { 79 | if (self = [super init]) { 80 | [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientationChange:) name:UIDeviceOrientationDidChangeNotification object:nil]; 81 | } 82 | return self; 83 | } 84 | 85 | - (void)deviceOrientationChange:(NSNotification *)noti { 86 | UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation; 87 | if (orientation == UIInterfaceOrientationUnknown ) { 88 | return; 89 | } 90 | CGFloat debugWindowY = debugTool_iPhoneX() ? 30 : 0; 91 | self.debugWindow.frame = CGRectMake(0, debugWindowY, UIScreen.mainScreen.bounds.size.width, kDebugLabelHeight); 92 | [self showWith:self.type]; 93 | } 94 | 95 | #pragma mark - Class function 96 | 97 | + (void)toggleWith:(DebugToolType)type { 98 | [[self sharedInstance] toggleWith:type]; 99 | } 100 | 101 | + (void)showWith:(DebugToolType)type { 102 | [[self sharedInstance] showWith:type]; 103 | } 104 | 105 | + (void)hide { 106 | [[self sharedInstance] hide]; 107 | } 108 | 109 | #pragma mark - Show with type 110 | 111 | - (void)toggleWith:(DebugToolType)type { 112 | self.type = type; 113 | if (self.isShowing) { 114 | [self hide]; 115 | } else { 116 | [self showWith:type]; 117 | } 118 | } 119 | 120 | - (void)showWith:(DebugToolType)type { 121 | self.type = type; 122 | [self clearUp]; 123 | [self setDebugWindow]; 124 | 125 | if (type & DebugToolTypeFPS) { 126 | [self showFPS]; 127 | } 128 | 129 | if (type & DebugToolTypeMemory) { 130 | [self showMemory]; 131 | } 132 | 133 | if (type & DebugToolTypeCPU) { 134 | [self showCPU]; 135 | } 136 | } 137 | 138 | #pragma mark - Window 139 | 140 | - (void)setDebugWindow { 141 | CGFloat debugWindowY = debugTool_iPhoneX() ? 30 : 0; 142 | self.debugWindow = [[UIWindow alloc] initWithFrame:CGRectMake(0, debugWindowY, kDebugScreenWidth, kDebugLabelHeight)]; 143 | self.debugWindow.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0]; 144 | self.debugWindow.windowLevel = UIWindowLevelAlert; 145 | self.debugWindow.rootViewController = [WHDebugTempVC new]; 146 | self.debugWindow.hidden = NO; 147 | [KDebugCurrentWindow addSubview:self.debugWindow]; 148 | } 149 | 150 | #pragma mark - Show 151 | 152 | - (void)showFPS { 153 | [[WHDebugFPSMonitor sharedInstance] startMonitoring]; 154 | [WHDebugFPSMonitor sharedInstance].valueBlock = ^(float value) { 155 | [self.fpsLabel updateLabelWith:DebugToolLabelTypeFPS value:value]; 156 | }; 157 | [self show:self.fpsLabel]; 158 | } 159 | 160 | - (void)showMemory { 161 | [[WHDebugMemoryMonitor sharedInstance] startMonitoring]; 162 | [WHDebugMemoryMonitor sharedInstance].valueBlock = ^(float value) { 163 | [self.memoryLabel updateLabelWith:DebugToolLabelTypeMemory value:value]; 164 | }; 165 | [self show:self.memoryLabel]; 166 | } 167 | 168 | - (void)showCPU { 169 | [[WHDebugCpuMonitor sharedInstance] startMonitoring]; 170 | [WHDebugCpuMonitor sharedInstance].valueBlock = ^(float value) { 171 | [self.cpuLabel updateLabelWith:DebugToolLabelTypeCPU value:value]; 172 | }; 173 | [self show:self.cpuLabel]; 174 | } 175 | 176 | - (void)show:(WHDebugConsoleLabel *)consoleLabel { 177 | [self.debugWindow addSubview:consoleLabel]; 178 | CGRect consoleLabelFrame = CGRectZero; 179 | CGFloat y = debugTool_iPhoneX() ? 10 : 20; 180 | if (consoleLabel == self.cpuLabel) { 181 | consoleLabelFrame = CGRectMake((kDebugScreenWidth - kDebugLabelWidth) / 2, y, kDebugLabelWidth, kDebugLabelHeight); 182 | } else if (consoleLabel == self.fpsLabel) { 183 | consoleLabelFrame = CGRectMake(kDebugScreenWidth - kDebugLabelWidth - KDebugMargin, y, kDebugLabelWidth, kDebugLabelHeight); 184 | } else { 185 | consoleLabelFrame = CGRectMake(KDebugMargin, y, kDebugLabelWidth, kDebugLabelHeight); 186 | } 187 | [UIView animateWithDuration:0.3 animations:^{ 188 | consoleLabel.frame = consoleLabelFrame; 189 | }completion:^(BOOL finished) { 190 | self.isShowing = YES; 191 | }]; 192 | } 193 | 194 | #pragma mark - Hide 195 | 196 | - (void)hide { 197 | [UIView animateWithDuration:0.3 animations:^{ 198 | self.cpuLabel.frame = CGRectMake((kDebugScreenWidth - kDebugLabelWidth) / 2, -kDebugLabelHeight, kDebugLabelWidth, kDebugLabelHeight); 199 | self.memoryLabel.frame = CGRectMake(-kDebugLabelWidth, 0, kDebugLabelWidth, kDebugLabelHeight); 200 | self.fpsLabel.frame = CGRectMake(kDebugScreenWidth + kDebugLabelWidth, 0, kDebugLabelWidth, kDebugLabelHeight); 201 | }completion:^(BOOL finished) { 202 | [self clearUp]; 203 | }]; 204 | } 205 | 206 | #pragma mark - Clear 207 | 208 | - (void)clearUp { 209 | [[WHDebugFPSMonitor sharedInstance] stopMonitoring]; 210 | [[WHDebugMemoryMonitor sharedInstance] stopMonitoring]; 211 | [[WHDebugCpuMonitor sharedInstance] stopMonitoring]; 212 | [self.fpsLabel removeFromSuperview]; 213 | [self.memoryLabel removeFromSuperview]; 214 | [self.cpuLabel removeFromSuperview]; 215 | self.debugWindow.hidden = YES; 216 | self.fpsLabel = nil; 217 | self.memoryLabel = nil; 218 | self.cpuLabel = nil; 219 | self.debugWindow = nil; 220 | self.isShowing = NO; 221 | } 222 | 223 | #pragma mark - Label 224 | 225 | - (WHDebugConsoleLabel *)memoryLabel { 226 | if (!_memoryLabel) { 227 | _memoryLabel = [[WHDebugConsoleLabel alloc] initWithFrame:CGRectMake(-kDebugLabelWidth, 0, kDebugLabelWidth, kDebugLabelHeight)]; 228 | } 229 | return _memoryLabel; 230 | } 231 | 232 | -(WHDebugConsoleLabel *)cpuLabel { 233 | if (!_cpuLabel) { 234 | _cpuLabel = [[WHDebugConsoleLabel alloc] initWithFrame:CGRectMake((kDebugScreenWidth - kDebugLabelWidth) / 2, -kDebugLabelHeight, kDebugLabelWidth, kDebugLabelHeight)]; 235 | } 236 | return _cpuLabel; 237 | } 238 | 239 | - (WHDebugConsoleLabel *)fpsLabel { 240 | if (!_fpsLabel) { 241 | _fpsLabel = [[WHDebugConsoleLabel alloc] initWithFrame:CGRectMake(kDebugScreenWidth + kDebugLabelWidth, 0, kDebugLabelWidth, kDebugLabelHeight)]; 242 | } 243 | return _fpsLabel; 244 | } 245 | 246 | @end 247 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'WHDebugToolDemo' do 5 | # Comment the next line if you don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | pod 'WHDebugTool', :path => '../' 9 | 10 | end 11 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - WHDebugTool (2.3) 3 | 4 | DEPENDENCIES: 5 | - WHDebugTool (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | WHDebugTool: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | WHDebugTool: 084ac685662b2e543dd88293bd3d6c0336c707be 13 | 14 | PODFILE CHECKSUM: 364026909f043859396b5750d6038ba2b73d8f9d 15 | 16 | COCOAPODS: 1.10.1 17 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Local Podspecs/WHDebugTool.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "WHDebugTool", 3 | "version": "2.3", 4 | "summary": "Debug tool for iOS", 5 | "homepage": "https://github.com/remember17/WHDebugTool", 6 | "license": "MIT", 7 | "authors": { 8 | "wuhao": "503007958@qq.com" 9 | }, 10 | "platforms": { 11 | "ios": "11.0" 12 | }, 13 | "source": { 14 | "git": "https://github.com/remember17/WHDebugTool.git", 15 | "tag": "2.3" 16 | }, 17 | "source_files": [ 18 | "WHDebugTool", 19 | "WHDebugTool/*.{h,m}" 20 | ], 21 | "frameworks": "UIKit", 22 | "requires_arc": true 23 | } 24 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - WHDebugTool (2.3) 3 | 4 | DEPENDENCIES: 5 | - WHDebugTool (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | WHDebugTool: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | WHDebugTool: 084ac685662b2e543dd88293bd3d6c0336c707be 13 | 14 | PODFILE CHECKSUM: 364026909f043859396b5750d6038ba2b73d8f9d 15 | 16 | COCOAPODS: 1.10.1 17 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 002AEE5395D3CB8F94E7BCC1E278F985 /* WHDebugToolManager.h in Headers */ = {isa = PBXBuildFile; fileRef = B163F3764DF66E21B907E54914073BE5 /* WHDebugToolManager.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 0DAEAFC3016D637EBEDEA49F9037CA77 /* WHDebugFPSMonitor.h in Headers */ = {isa = PBXBuildFile; fileRef = 43B2CE22D6A6AF7E21F879EC0A4C555C /* WHDebugFPSMonitor.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 4E395B64ED9705F94937D40A1CD854F6 /* WHDebugFPSMonitor.m in Sources */ = {isa = PBXBuildFile; fileRef = A3C3C655CCDA31A7227FBF6988EB6B73 /* WHDebugFPSMonitor.m */; }; 13 | 535645CE659BEE0FA10DBBFD7E24C5F0 /* WHDebugCpuMonitor.h in Headers */ = {isa = PBXBuildFile; fileRef = F7777B14EBF8EAFE00F38DAF599E17A4 /* WHDebugCpuMonitor.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 55FEB1C4BE4797B8C4E8F17EE7ABCE71 /* WHDebugMemoryMonitor.h in Headers */ = {isa = PBXBuildFile; fileRef = 1BC9C506310ECD4AEB91C32A64A7FCEA /* WHDebugMemoryMonitor.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 57CF1DFD80C9C7ADAD58F2A320BCC27B /* WHDebugMonitor.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D46C5CB52806A694CBF60F06799CB8F /* WHDebugMonitor.m */; }; 16 | 7B18B14D2FA65DBC50411D55C8B8BDE4 /* WHDebugConsoleLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 69089E4AC7E1F58377418AD277A11B59 /* WHDebugConsoleLabel.m */; }; 17 | 7B45CC9C7F6DC238025A5350DB4F4D98 /* WHDebugMemoryMonitor.m in Sources */ = {isa = PBXBuildFile; fileRef = 2735797D2BA8E16B69D66530A8B50D2B /* WHDebugMemoryMonitor.m */; }; 18 | 84EFA5A894DB2C5E926A8166D15839CB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D245E0514AAC1A2B9A6D5EA2F383E90F /* UIKit.framework */; }; 19 | 8AE4ED3CFA09C14ED60F6FC684BFB3EF /* WHDebugConsoleLabel.h in Headers */ = {isa = PBXBuildFile; fileRef = 3B01E7D507BA1E3B1147AB6B7032493D /* WHDebugConsoleLabel.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | 95B8BB72AF51AD5FA7A4C30FBC714B59 /* WHDebugTool-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F97B9DB8BDF590AD68AA482416F32C7 /* WHDebugTool-dummy.m */; }; 21 | A04D974317FA2CD2CB3A384694DAEA22 /* WHDebugMonitor.h in Headers */ = {isa = PBXBuildFile; fileRef = 01E7B70F1C2EE4C256821B080F24B43F /* WHDebugMonitor.h */; settings = {ATTRIBUTES = (Public, ); }; }; 22 | A7255423F6D10D8174AF71157414EAD4 /* WHDebugTempVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 8D2A2C307DD3F664207461B97D71B1AE /* WHDebugTempVC.m */; }; 23 | A9572AD71BD1C5B7C41E4464284506C7 /* Pods-WHDebugToolDemo-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E37349A167E1CF303ABE09305B257DA6 /* Pods-WHDebugToolDemo-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 24 | C0570AD9699EFD5607BB633FB5E4BFF1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EAB6F611E86A4758835A715E4B4184F6 /* Foundation.framework */; }; 25 | C57F32E378CA9D1EE116D3F2BE26765B /* WHDebugCpuMonitor.m in Sources */ = {isa = PBXBuildFile; fileRef = B2CEA09F96E5902E144F71C046FE8BA6 /* WHDebugCpuMonitor.m */; }; 26 | DAF98EDA9CB058DFF81FC6DC3D25280A /* Pods-WHDebugToolDemo-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C4CBC3D074B0FF09FF5EA421C1C0E591 /* Pods-WHDebugToolDemo-dummy.m */; }; 27 | DDEFACFF6953887470516520321DD393 /* WHDebugTool-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 818017D05FE74D5882C134E9F3F7F544 /* WHDebugTool-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 28 | E06550D978E0653DEEB491AD13F6DE02 /* WHDebugTempVC.h in Headers */ = {isa = PBXBuildFile; fileRef = 6FC8DECE60BCBB658621507EC5EE3F38 /* WHDebugTempVC.h */; settings = {ATTRIBUTES = (Public, ); }; }; 29 | E2A13D11F0EDBF7DE7F09976CC0680D4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EAB6F611E86A4758835A715E4B4184F6 /* Foundation.framework */; }; 30 | F49D9F555E8465F3B8BE716B425F2EE7 /* WHDebugToolManager.m in Sources */ = {isa = PBXBuildFile; fileRef = A139409E7904F3D2285362A8AECD557D /* WHDebugToolManager.m */; }; 31 | /* End PBXBuildFile section */ 32 | 33 | /* Begin PBXContainerItemProxy section */ 34 | 0CA7020D077E62BE29C01092819C5955 /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = DF313319432078A73DFB0C892DBE384A; 39 | remoteInfo = WHDebugTool; 40 | }; 41 | /* End PBXContainerItemProxy section */ 42 | 43 | /* Begin PBXFileReference section */ 44 | 01E7B70F1C2EE4C256821B080F24B43F /* WHDebugMonitor.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = WHDebugMonitor.h; path = WHDebugTool/WHDebugMonitor.h; sourceTree = ""; }; 45 | 116991AEB7A7890F1E3E3AAE6596E970 /* WHDebugTool.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = WHDebugTool.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 46 | 1BC9C506310ECD4AEB91C32A64A7FCEA /* WHDebugMemoryMonitor.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = WHDebugMemoryMonitor.h; path = WHDebugTool/WHDebugMemoryMonitor.h; sourceTree = ""; }; 47 | 1D46C5CB52806A694CBF60F06799CB8F /* WHDebugMonitor.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = WHDebugMonitor.m; path = WHDebugTool/WHDebugMonitor.m; sourceTree = ""; }; 48 | 232B45195F82A00B9DCF9895F0AF500F /* Pods-WHDebugToolDemo.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-WHDebugToolDemo.modulemap"; sourceTree = ""; }; 49 | 2735797D2BA8E16B69D66530A8B50D2B /* WHDebugMemoryMonitor.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = WHDebugMemoryMonitor.m; path = WHDebugTool/WHDebugMemoryMonitor.m; sourceTree = ""; }; 50 | 3B01E7D507BA1E3B1147AB6B7032493D /* WHDebugConsoleLabel.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = WHDebugConsoleLabel.h; path = WHDebugTool/WHDebugConsoleLabel.h; sourceTree = ""; }; 51 | 414397F3EB0A7566CFD2DD817977704A /* Pods_WHDebugToolDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_WHDebugToolDemo.framework; path = "Pods-WHDebugToolDemo.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 43B2CE22D6A6AF7E21F879EC0A4C555C /* WHDebugFPSMonitor.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = WHDebugFPSMonitor.h; path = WHDebugTool/WHDebugFPSMonitor.h; sourceTree = ""; }; 53 | 4D2D175E5EF179BD37BDB2DCD819EFDB /* Pods-WHDebugToolDemo-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-WHDebugToolDemo-frameworks.sh"; sourceTree = ""; }; 54 | 4F97B9DB8BDF590AD68AA482416F32C7 /* WHDebugTool-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "WHDebugTool-dummy.m"; sourceTree = ""; }; 55 | 69089E4AC7E1F58377418AD277A11B59 /* WHDebugConsoleLabel.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = WHDebugConsoleLabel.m; path = WHDebugTool/WHDebugConsoleLabel.m; sourceTree = ""; }; 56 | 6DFECE712284D0DC1344AF47BC343A5D /* WHDebugTool-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "WHDebugTool-prefix.pch"; sourceTree = ""; }; 57 | 6FC8DECE60BCBB658621507EC5EE3F38 /* WHDebugTempVC.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = WHDebugTempVC.h; path = WHDebugTool/WHDebugTempVC.h; sourceTree = ""; }; 58 | 7033E876EEA440716A583DE187649FD1 /* WHDebugTool.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = WHDebugTool.framework; path = WHDebugTool.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | 71CDE1B9B0B93FC2EAD44120E80DFE2D /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 60 | 818017D05FE74D5882C134E9F3F7F544 /* WHDebugTool-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "WHDebugTool-umbrella.h"; sourceTree = ""; }; 61 | 8C1502C41F6CF9117BF683181C75F120 /* Pods-WHDebugToolDemo-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WHDebugToolDemo-acknowledgements.plist"; sourceTree = ""; }; 62 | 8D2A2C307DD3F664207461B97D71B1AE /* WHDebugTempVC.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = WHDebugTempVC.m; path = WHDebugTool/WHDebugTempVC.m; sourceTree = ""; }; 63 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 64 | A139409E7904F3D2285362A8AECD557D /* WHDebugToolManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = WHDebugToolManager.m; path = WHDebugTool/WHDebugToolManager.m; sourceTree = ""; }; 65 | A14B713E0804EB27BB9F2C73B581DB84 /* WHDebugTool.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = WHDebugTool.modulemap; sourceTree = ""; }; 66 | A3C3C655CCDA31A7227FBF6988EB6B73 /* WHDebugFPSMonitor.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = WHDebugFPSMonitor.m; path = WHDebugTool/WHDebugFPSMonitor.m; sourceTree = ""; }; 67 | B163F3764DF66E21B907E54914073BE5 /* WHDebugToolManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = WHDebugToolManager.h; path = WHDebugTool/WHDebugToolManager.h; sourceTree = ""; }; 68 | B2A55EEF2B9A6037A11AFCECF4E0C48C /* Pods-WHDebugToolDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WHDebugToolDemo.release.xcconfig"; sourceTree = ""; }; 69 | B2CEA09F96E5902E144F71C046FE8BA6 /* WHDebugCpuMonitor.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = WHDebugCpuMonitor.m; path = WHDebugTool/WHDebugCpuMonitor.m; sourceTree = ""; }; 70 | B31A836CA7052FA734999507A96F2C36 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 71 | C4CBC3D074B0FF09FF5EA421C1C0E591 /* Pods-WHDebugToolDemo-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-WHDebugToolDemo-dummy.m"; sourceTree = ""; }; 72 | D1E06F113F5884F8F5A8DE4E59B37BAD /* WHDebugTool.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = WHDebugTool.debug.xcconfig; sourceTree = ""; }; 73 | D245E0514AAC1A2B9A6D5EA2F383E90F /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 74 | D44DA9C8CF8BF9C0D7150587A45570FD /* Pods-WHDebugToolDemo-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-WHDebugToolDemo-Info.plist"; sourceTree = ""; }; 75 | E37349A167E1CF303ABE09305B257DA6 /* Pods-WHDebugToolDemo-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-WHDebugToolDemo-umbrella.h"; sourceTree = ""; }; 76 | EAB6F611E86A4758835A715E4B4184F6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 77 | ED6CABC05A0B3A0292712B29F14B47CD /* Pods-WHDebugToolDemo-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-WHDebugToolDemo-acknowledgements.markdown"; sourceTree = ""; }; 78 | F1750F003988D95B2A8048EEA3520ABC /* WHDebugTool-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "WHDebugTool-Info.plist"; sourceTree = ""; }; 79 | F57D5B4A1379240BDB3F4ACAF8E29DAE /* Pods-WHDebugToolDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-WHDebugToolDemo.debug.xcconfig"; sourceTree = ""; }; 80 | F7777B14EBF8EAFE00F38DAF599E17A4 /* WHDebugCpuMonitor.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = WHDebugCpuMonitor.h; path = WHDebugTool/WHDebugCpuMonitor.h; sourceTree = ""; }; 81 | FFF7F09D97D61E4C7153083C74978334 /* WHDebugTool.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = WHDebugTool.release.xcconfig; sourceTree = ""; }; 82 | /* End PBXFileReference section */ 83 | 84 | /* Begin PBXFrameworksBuildPhase section */ 85 | 5265921942E7E9D255F65C01312403EF /* Frameworks */ = { 86 | isa = PBXFrameworksBuildPhase; 87 | buildActionMask = 2147483647; 88 | files = ( 89 | C0570AD9699EFD5607BB633FB5E4BFF1 /* Foundation.framework in Frameworks */, 90 | ); 91 | runOnlyForDeploymentPostprocessing = 0; 92 | }; 93 | B836AFAB1B2F5134225550054C4E5952 /* Frameworks */ = { 94 | isa = PBXFrameworksBuildPhase; 95 | buildActionMask = 2147483647; 96 | files = ( 97 | E2A13D11F0EDBF7DE7F09976CC0680D4 /* Foundation.framework in Frameworks */, 98 | 84EFA5A894DB2C5E926A8166D15839CB /* UIKit.framework in Frameworks */, 99 | ); 100 | runOnlyForDeploymentPostprocessing = 0; 101 | }; 102 | /* End PBXFrameworksBuildPhase section */ 103 | 104 | /* Begin PBXGroup section */ 105 | 09FB853B969E7F61582FA4AD4A2EF6A4 /* Products */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 414397F3EB0A7566CFD2DD817977704A /* Pods_WHDebugToolDemo.framework */, 109 | 7033E876EEA440716A583DE187649FD1 /* WHDebugTool.framework */, 110 | ); 111 | name = Products; 112 | sourceTree = ""; 113 | }; 114 | 1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 59DA5C1F72E1D5BABC43EACBA672C3BA /* iOS */, 118 | ); 119 | name = Frameworks; 120 | sourceTree = ""; 121 | }; 122 | 46FC7B9B11F9DBDC76E802D7ADE75F34 /* Pod */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 71CDE1B9B0B93FC2EAD44120E80DFE2D /* LICENSE */, 126 | B31A836CA7052FA734999507A96F2C36 /* README.md */, 127 | 116991AEB7A7890F1E3E3AAE6596E970 /* WHDebugTool.podspec */, 128 | ); 129 | name = Pod; 130 | sourceTree = ""; 131 | }; 132 | 59DA5C1F72E1D5BABC43EACBA672C3BA /* iOS */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | EAB6F611E86A4758835A715E4B4184F6 /* Foundation.framework */, 136 | D245E0514AAC1A2B9A6D5EA2F383E90F /* UIKit.framework */, 137 | ); 138 | name = iOS; 139 | sourceTree = ""; 140 | }; 141 | 5F2B21D374466CDCF70B446600DD75FC /* Pods-WHDebugToolDemo */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 232B45195F82A00B9DCF9895F0AF500F /* Pods-WHDebugToolDemo.modulemap */, 145 | ED6CABC05A0B3A0292712B29F14B47CD /* Pods-WHDebugToolDemo-acknowledgements.markdown */, 146 | 8C1502C41F6CF9117BF683181C75F120 /* Pods-WHDebugToolDemo-acknowledgements.plist */, 147 | C4CBC3D074B0FF09FF5EA421C1C0E591 /* Pods-WHDebugToolDemo-dummy.m */, 148 | 4D2D175E5EF179BD37BDB2DCD819EFDB /* Pods-WHDebugToolDemo-frameworks.sh */, 149 | D44DA9C8CF8BF9C0D7150587A45570FD /* Pods-WHDebugToolDemo-Info.plist */, 150 | E37349A167E1CF303ABE09305B257DA6 /* Pods-WHDebugToolDemo-umbrella.h */, 151 | F57D5B4A1379240BDB3F4ACAF8E29DAE /* Pods-WHDebugToolDemo.debug.xcconfig */, 152 | B2A55EEF2B9A6037A11AFCECF4E0C48C /* Pods-WHDebugToolDemo.release.xcconfig */, 153 | ); 154 | name = "Pods-WHDebugToolDemo"; 155 | path = "Target Support Files/Pods-WHDebugToolDemo"; 156 | sourceTree = ""; 157 | }; 158 | 5F72BE74A64718A6D587FF71E4877735 /* WHDebugTool */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | 3B01E7D507BA1E3B1147AB6B7032493D /* WHDebugConsoleLabel.h */, 162 | 69089E4AC7E1F58377418AD277A11B59 /* WHDebugConsoleLabel.m */, 163 | F7777B14EBF8EAFE00F38DAF599E17A4 /* WHDebugCpuMonitor.h */, 164 | B2CEA09F96E5902E144F71C046FE8BA6 /* WHDebugCpuMonitor.m */, 165 | 43B2CE22D6A6AF7E21F879EC0A4C555C /* WHDebugFPSMonitor.h */, 166 | A3C3C655CCDA31A7227FBF6988EB6B73 /* WHDebugFPSMonitor.m */, 167 | 1BC9C506310ECD4AEB91C32A64A7FCEA /* WHDebugMemoryMonitor.h */, 168 | 2735797D2BA8E16B69D66530A8B50D2B /* WHDebugMemoryMonitor.m */, 169 | 01E7B70F1C2EE4C256821B080F24B43F /* WHDebugMonitor.h */, 170 | 1D46C5CB52806A694CBF60F06799CB8F /* WHDebugMonitor.m */, 171 | 6FC8DECE60BCBB658621507EC5EE3F38 /* WHDebugTempVC.h */, 172 | 8D2A2C307DD3F664207461B97D71B1AE /* WHDebugTempVC.m */, 173 | B163F3764DF66E21B907E54914073BE5 /* WHDebugToolManager.h */, 174 | A139409E7904F3D2285362A8AECD557D /* WHDebugToolManager.m */, 175 | 46FC7B9B11F9DBDC76E802D7ADE75F34 /* Pod */, 176 | 6542D562E0BE5C06A4935C76F8F35A80 /* Support Files */, 177 | ); 178 | name = WHDebugTool; 179 | path = ../..; 180 | sourceTree = ""; 181 | }; 182 | 6542D562E0BE5C06A4935C76F8F35A80 /* Support Files */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | A14B713E0804EB27BB9F2C73B581DB84 /* WHDebugTool.modulemap */, 186 | 4F97B9DB8BDF590AD68AA482416F32C7 /* WHDebugTool-dummy.m */, 187 | F1750F003988D95B2A8048EEA3520ABC /* WHDebugTool-Info.plist */, 188 | 6DFECE712284D0DC1344AF47BC343A5D /* WHDebugTool-prefix.pch */, 189 | 818017D05FE74D5882C134E9F3F7F544 /* WHDebugTool-umbrella.h */, 190 | D1E06F113F5884F8F5A8DE4E59B37BAD /* WHDebugTool.debug.xcconfig */, 191 | FFF7F09D97D61E4C7153083C74978334 /* WHDebugTool.release.xcconfig */, 192 | ); 193 | name = "Support Files"; 194 | path = "WHDebugToolDemo/Pods/Target Support Files/WHDebugTool"; 195 | sourceTree = ""; 196 | }; 197 | 820FE157D9251C24AD6A4BF94030AD96 /* Targets Support Files */ = { 198 | isa = PBXGroup; 199 | children = ( 200 | 5F2B21D374466CDCF70B446600DD75FC /* Pods-WHDebugToolDemo */, 201 | ); 202 | name = "Targets Support Files"; 203 | sourceTree = ""; 204 | }; 205 | AA4A4C31BA8ACE5A1A9CDF02D6869798 /* Development Pods */ = { 206 | isa = PBXGroup; 207 | children = ( 208 | 5F72BE74A64718A6D587FF71E4877735 /* WHDebugTool */, 209 | ); 210 | name = "Development Pods"; 211 | sourceTree = ""; 212 | }; 213 | CF1408CF629C7361332E53B88F7BD30C = { 214 | isa = PBXGroup; 215 | children = ( 216 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 217 | AA4A4C31BA8ACE5A1A9CDF02D6869798 /* Development Pods */, 218 | 1628BF05B4CAFDCC3549A101F5A10A17 /* Frameworks */, 219 | 09FB853B969E7F61582FA4AD4A2EF6A4 /* Products */, 220 | 820FE157D9251C24AD6A4BF94030AD96 /* Targets Support Files */, 221 | ); 222 | sourceTree = ""; 223 | }; 224 | /* End PBXGroup section */ 225 | 226 | /* Begin PBXHeadersBuildPhase section */ 227 | 220F8C13907594D699D9136BE5126DDB /* Headers */ = { 228 | isa = PBXHeadersBuildPhase; 229 | buildActionMask = 2147483647; 230 | files = ( 231 | 8AE4ED3CFA09C14ED60F6FC684BFB3EF /* WHDebugConsoleLabel.h in Headers */, 232 | 535645CE659BEE0FA10DBBFD7E24C5F0 /* WHDebugCpuMonitor.h in Headers */, 233 | 0DAEAFC3016D637EBEDEA49F9037CA77 /* WHDebugFPSMonitor.h in Headers */, 234 | 55FEB1C4BE4797B8C4E8F17EE7ABCE71 /* WHDebugMemoryMonitor.h in Headers */, 235 | A04D974317FA2CD2CB3A384694DAEA22 /* WHDebugMonitor.h in Headers */, 236 | E06550D978E0653DEEB491AD13F6DE02 /* WHDebugTempVC.h in Headers */, 237 | DDEFACFF6953887470516520321DD393 /* WHDebugTool-umbrella.h in Headers */, 238 | 002AEE5395D3CB8F94E7BCC1E278F985 /* WHDebugToolManager.h in Headers */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | 2CC53FE61FF58E79D5DAE0257FEDFDB6 /* Headers */ = { 243 | isa = PBXHeadersBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | A9572AD71BD1C5B7C41E4464284506C7 /* Pods-WHDebugToolDemo-umbrella.h in Headers */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | /* End PBXHeadersBuildPhase section */ 251 | 252 | /* Begin PBXNativeTarget section */ 253 | 885D7EC8BDD61EEC41AAAB342482F093 /* Pods-WHDebugToolDemo */ = { 254 | isa = PBXNativeTarget; 255 | buildConfigurationList = D1B19FF57620BE31E6990000F544CA07 /* Build configuration list for PBXNativeTarget "Pods-WHDebugToolDemo" */; 256 | buildPhases = ( 257 | 2CC53FE61FF58E79D5DAE0257FEDFDB6 /* Headers */, 258 | E0EBBEF6AA45B1067CC1984CBB8FE2BE /* Sources */, 259 | 5265921942E7E9D255F65C01312403EF /* Frameworks */, 260 | 848AAB40FAF447A21B8FE5A516924F5A /* Resources */, 261 | ); 262 | buildRules = ( 263 | ); 264 | dependencies = ( 265 | FC750F270F9BC30A003513F6A4D0400E /* PBXTargetDependency */, 266 | ); 267 | name = "Pods-WHDebugToolDemo"; 268 | productName = "Pods-WHDebugToolDemo"; 269 | productReference = 414397F3EB0A7566CFD2DD817977704A /* Pods_WHDebugToolDemo.framework */; 270 | productType = "com.apple.product-type.framework"; 271 | }; 272 | DF313319432078A73DFB0C892DBE384A /* WHDebugTool */ = { 273 | isa = PBXNativeTarget; 274 | buildConfigurationList = C01E5C88C0E6B8F7B1C5854CD037324F /* Build configuration list for PBXNativeTarget "WHDebugTool" */; 275 | buildPhases = ( 276 | 220F8C13907594D699D9136BE5126DDB /* Headers */, 277 | 5C2D927CD02FC72855CB2C0383260AB8 /* Sources */, 278 | B836AFAB1B2F5134225550054C4E5952 /* Frameworks */, 279 | 475DCBAC6CC2E627E7CBD25296C02777 /* Resources */, 280 | ); 281 | buildRules = ( 282 | ); 283 | dependencies = ( 284 | ); 285 | name = WHDebugTool; 286 | productName = WHDebugTool; 287 | productReference = 7033E876EEA440716A583DE187649FD1 /* WHDebugTool.framework */; 288 | productType = "com.apple.product-type.framework"; 289 | }; 290 | /* End PBXNativeTarget section */ 291 | 292 | /* Begin PBXProject section */ 293 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 294 | isa = PBXProject; 295 | attributes = { 296 | LastSwiftUpdateCheck = 1100; 297 | LastUpgradeCheck = 1100; 298 | }; 299 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 300 | compatibilityVersion = "Xcode 9.3"; 301 | developmentRegion = en; 302 | hasScannedForEncodings = 0; 303 | knownRegions = ( 304 | en, 305 | Base, 306 | ); 307 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 308 | productRefGroup = 09FB853B969E7F61582FA4AD4A2EF6A4 /* Products */; 309 | projectDirPath = ""; 310 | projectRoot = ""; 311 | targets = ( 312 | 885D7EC8BDD61EEC41AAAB342482F093 /* Pods-WHDebugToolDemo */, 313 | DF313319432078A73DFB0C892DBE384A /* WHDebugTool */, 314 | ); 315 | }; 316 | /* End PBXProject section */ 317 | 318 | /* Begin PBXResourcesBuildPhase section */ 319 | 475DCBAC6CC2E627E7CBD25296C02777 /* Resources */ = { 320 | isa = PBXResourcesBuildPhase; 321 | buildActionMask = 2147483647; 322 | files = ( 323 | ); 324 | runOnlyForDeploymentPostprocessing = 0; 325 | }; 326 | 848AAB40FAF447A21B8FE5A516924F5A /* Resources */ = { 327 | isa = PBXResourcesBuildPhase; 328 | buildActionMask = 2147483647; 329 | files = ( 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | }; 333 | /* End PBXResourcesBuildPhase section */ 334 | 335 | /* Begin PBXSourcesBuildPhase section */ 336 | 5C2D927CD02FC72855CB2C0383260AB8 /* Sources */ = { 337 | isa = PBXSourcesBuildPhase; 338 | buildActionMask = 2147483647; 339 | files = ( 340 | 7B18B14D2FA65DBC50411D55C8B8BDE4 /* WHDebugConsoleLabel.m in Sources */, 341 | C57F32E378CA9D1EE116D3F2BE26765B /* WHDebugCpuMonitor.m in Sources */, 342 | 4E395B64ED9705F94937D40A1CD854F6 /* WHDebugFPSMonitor.m in Sources */, 343 | 7B45CC9C7F6DC238025A5350DB4F4D98 /* WHDebugMemoryMonitor.m in Sources */, 344 | 57CF1DFD80C9C7ADAD58F2A320BCC27B /* WHDebugMonitor.m in Sources */, 345 | A7255423F6D10D8174AF71157414EAD4 /* WHDebugTempVC.m in Sources */, 346 | 95B8BB72AF51AD5FA7A4C30FBC714B59 /* WHDebugTool-dummy.m in Sources */, 347 | F49D9F555E8465F3B8BE716B425F2EE7 /* WHDebugToolManager.m in Sources */, 348 | ); 349 | runOnlyForDeploymentPostprocessing = 0; 350 | }; 351 | E0EBBEF6AA45B1067CC1984CBB8FE2BE /* Sources */ = { 352 | isa = PBXSourcesBuildPhase; 353 | buildActionMask = 2147483647; 354 | files = ( 355 | DAF98EDA9CB058DFF81FC6DC3D25280A /* Pods-WHDebugToolDemo-dummy.m in Sources */, 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | }; 359 | /* End PBXSourcesBuildPhase section */ 360 | 361 | /* Begin PBXTargetDependency section */ 362 | FC750F270F9BC30A003513F6A4D0400E /* PBXTargetDependency */ = { 363 | isa = PBXTargetDependency; 364 | name = WHDebugTool; 365 | target = DF313319432078A73DFB0C892DBE384A /* WHDebugTool */; 366 | targetProxy = 0CA7020D077E62BE29C01092819C5955 /* PBXContainerItemProxy */; 367 | }; 368 | /* End PBXTargetDependency section */ 369 | 370 | /* Begin XCBuildConfiguration section */ 371 | 71243899B61152433AAE34EE86456EE7 /* Release */ = { 372 | isa = XCBuildConfiguration; 373 | buildSettings = { 374 | ALWAYS_SEARCH_USER_PATHS = NO; 375 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 376 | CLANG_ANALYZER_NONNULL = YES; 377 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 378 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 379 | CLANG_CXX_LIBRARY = "libc++"; 380 | CLANG_ENABLE_MODULES = YES; 381 | CLANG_ENABLE_OBJC_ARC = YES; 382 | CLANG_ENABLE_OBJC_WEAK = YES; 383 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 384 | CLANG_WARN_BOOL_CONVERSION = YES; 385 | CLANG_WARN_COMMA = YES; 386 | CLANG_WARN_CONSTANT_CONVERSION = YES; 387 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 388 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 389 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 390 | CLANG_WARN_EMPTY_BODY = YES; 391 | CLANG_WARN_ENUM_CONVERSION = YES; 392 | CLANG_WARN_INFINITE_RECURSION = YES; 393 | CLANG_WARN_INT_CONVERSION = YES; 394 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 395 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 396 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 397 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 398 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 399 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 400 | CLANG_WARN_STRICT_PROTOTYPES = YES; 401 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 402 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 403 | CLANG_WARN_UNREACHABLE_CODE = YES; 404 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 405 | COPY_PHASE_STRIP = NO; 406 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 407 | ENABLE_NS_ASSERTIONS = NO; 408 | ENABLE_STRICT_OBJC_MSGSEND = YES; 409 | GCC_C_LANGUAGE_STANDARD = gnu11; 410 | GCC_NO_COMMON_BLOCKS = YES; 411 | GCC_PREPROCESSOR_DEFINITIONS = ( 412 | "POD_CONFIGURATION_RELEASE=1", 413 | "$(inherited)", 414 | ); 415 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 416 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 417 | GCC_WARN_UNDECLARED_SELECTOR = YES; 418 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 419 | GCC_WARN_UNUSED_FUNCTION = YES; 420 | GCC_WARN_UNUSED_VARIABLE = YES; 421 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 422 | MTL_ENABLE_DEBUG_INFO = NO; 423 | MTL_FAST_MATH = YES; 424 | PRODUCT_NAME = "$(TARGET_NAME)"; 425 | STRIP_INSTALLED_PRODUCT = NO; 426 | SWIFT_COMPILATION_MODE = wholemodule; 427 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 428 | SWIFT_VERSION = 5.0; 429 | SYMROOT = "${SRCROOT}/../build"; 430 | }; 431 | name = Release; 432 | }; 433 | 75D70EEEA0A456E14F7338A7F342964E /* Debug */ = { 434 | isa = XCBuildConfiguration; 435 | buildSettings = { 436 | ALWAYS_SEARCH_USER_PATHS = NO; 437 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 438 | CLANG_ANALYZER_NONNULL = YES; 439 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 440 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 441 | CLANG_CXX_LIBRARY = "libc++"; 442 | CLANG_ENABLE_MODULES = YES; 443 | CLANG_ENABLE_OBJC_ARC = YES; 444 | CLANG_ENABLE_OBJC_WEAK = YES; 445 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 446 | CLANG_WARN_BOOL_CONVERSION = YES; 447 | CLANG_WARN_COMMA = YES; 448 | CLANG_WARN_CONSTANT_CONVERSION = YES; 449 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 450 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 451 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 452 | CLANG_WARN_EMPTY_BODY = YES; 453 | CLANG_WARN_ENUM_CONVERSION = YES; 454 | CLANG_WARN_INFINITE_RECURSION = YES; 455 | CLANG_WARN_INT_CONVERSION = YES; 456 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 457 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 458 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 459 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 460 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 461 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 462 | CLANG_WARN_STRICT_PROTOTYPES = YES; 463 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 464 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 465 | CLANG_WARN_UNREACHABLE_CODE = YES; 466 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 467 | COPY_PHASE_STRIP = NO; 468 | DEBUG_INFORMATION_FORMAT = dwarf; 469 | ENABLE_STRICT_OBJC_MSGSEND = YES; 470 | ENABLE_TESTABILITY = YES; 471 | GCC_C_LANGUAGE_STANDARD = gnu11; 472 | GCC_DYNAMIC_NO_PIC = NO; 473 | GCC_NO_COMMON_BLOCKS = YES; 474 | GCC_OPTIMIZATION_LEVEL = 0; 475 | GCC_PREPROCESSOR_DEFINITIONS = ( 476 | "POD_CONFIGURATION_DEBUG=1", 477 | "DEBUG=1", 478 | "$(inherited)", 479 | ); 480 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 481 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 482 | GCC_WARN_UNDECLARED_SELECTOR = YES; 483 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 484 | GCC_WARN_UNUSED_FUNCTION = YES; 485 | GCC_WARN_UNUSED_VARIABLE = YES; 486 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 487 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 488 | MTL_FAST_MATH = YES; 489 | ONLY_ACTIVE_ARCH = YES; 490 | PRODUCT_NAME = "$(TARGET_NAME)"; 491 | STRIP_INSTALLED_PRODUCT = NO; 492 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 493 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 494 | SWIFT_VERSION = 5.0; 495 | SYMROOT = "${SRCROOT}/../build"; 496 | }; 497 | name = Debug; 498 | }; 499 | 86EEAF5B2D77E658470D33FE85B02EC3 /* Release */ = { 500 | isa = XCBuildConfiguration; 501 | baseConfigurationReference = FFF7F09D97D61E4C7153083C74978334 /* WHDebugTool.release.xcconfig */; 502 | buildSettings = { 503 | CLANG_ENABLE_OBJC_WEAK = NO; 504 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 505 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 506 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 507 | CURRENT_PROJECT_VERSION = 1; 508 | DEFINES_MODULE = YES; 509 | DYLIB_COMPATIBILITY_VERSION = 1; 510 | DYLIB_CURRENT_VERSION = 1; 511 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 512 | GCC_PREFIX_HEADER = "Target Support Files/WHDebugTool/WHDebugTool-prefix.pch"; 513 | INFOPLIST_FILE = "Target Support Files/WHDebugTool/WHDebugTool-Info.plist"; 514 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 515 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 516 | LD_RUNPATH_SEARCH_PATHS = ( 517 | "$(inherited)", 518 | "@executable_path/Frameworks", 519 | "@loader_path/Frameworks", 520 | ); 521 | MODULEMAP_FILE = "Target Support Files/WHDebugTool/WHDebugTool.modulemap"; 522 | PRODUCT_MODULE_NAME = WHDebugTool; 523 | PRODUCT_NAME = WHDebugTool; 524 | SDKROOT = iphoneos; 525 | SKIP_INSTALL = YES; 526 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 527 | TARGETED_DEVICE_FAMILY = "1,2"; 528 | VALIDATE_PRODUCT = YES; 529 | VERSIONING_SYSTEM = "apple-generic"; 530 | VERSION_INFO_PREFIX = ""; 531 | }; 532 | name = Release; 533 | }; 534 | CBE5DEAFEF203A95757524CA6AB6FC94 /* Debug */ = { 535 | isa = XCBuildConfiguration; 536 | baseConfigurationReference = D1E06F113F5884F8F5A8DE4E59B37BAD /* WHDebugTool.debug.xcconfig */; 537 | buildSettings = { 538 | CLANG_ENABLE_OBJC_WEAK = NO; 539 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 540 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 541 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 542 | CURRENT_PROJECT_VERSION = 1; 543 | DEFINES_MODULE = YES; 544 | DYLIB_COMPATIBILITY_VERSION = 1; 545 | DYLIB_CURRENT_VERSION = 1; 546 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 547 | GCC_PREFIX_HEADER = "Target Support Files/WHDebugTool/WHDebugTool-prefix.pch"; 548 | INFOPLIST_FILE = "Target Support Files/WHDebugTool/WHDebugTool-Info.plist"; 549 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 550 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 551 | LD_RUNPATH_SEARCH_PATHS = ( 552 | "$(inherited)", 553 | "@executable_path/Frameworks", 554 | "@loader_path/Frameworks", 555 | ); 556 | MODULEMAP_FILE = "Target Support Files/WHDebugTool/WHDebugTool.modulemap"; 557 | PRODUCT_MODULE_NAME = WHDebugTool; 558 | PRODUCT_NAME = WHDebugTool; 559 | SDKROOT = iphoneos; 560 | SKIP_INSTALL = YES; 561 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 562 | TARGETED_DEVICE_FAMILY = "1,2"; 563 | VERSIONING_SYSTEM = "apple-generic"; 564 | VERSION_INFO_PREFIX = ""; 565 | }; 566 | name = Debug; 567 | }; 568 | E8F6C6ACD388753EE92A4A0ED4429609 /* Release */ = { 569 | isa = XCBuildConfiguration; 570 | baseConfigurationReference = B2A55EEF2B9A6037A11AFCECF4E0C48C /* Pods-WHDebugToolDemo.release.xcconfig */; 571 | buildSettings = { 572 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 573 | CLANG_ENABLE_OBJC_WEAK = NO; 574 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 575 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 576 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 577 | CURRENT_PROJECT_VERSION = 1; 578 | DEFINES_MODULE = YES; 579 | DYLIB_COMPATIBILITY_VERSION = 1; 580 | DYLIB_CURRENT_VERSION = 1; 581 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 582 | INFOPLIST_FILE = "Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-Info.plist"; 583 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 584 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 585 | LD_RUNPATH_SEARCH_PATHS = ( 586 | "$(inherited)", 587 | "@executable_path/Frameworks", 588 | "@loader_path/Frameworks", 589 | ); 590 | MACH_O_TYPE = staticlib; 591 | MODULEMAP_FILE = "Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo.modulemap"; 592 | OTHER_LDFLAGS = ""; 593 | OTHER_LIBTOOLFLAGS = ""; 594 | PODS_ROOT = "$(SRCROOT)"; 595 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 596 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 597 | SDKROOT = iphoneos; 598 | SKIP_INSTALL = YES; 599 | TARGETED_DEVICE_FAMILY = "1,2"; 600 | VALIDATE_PRODUCT = YES; 601 | VERSIONING_SYSTEM = "apple-generic"; 602 | VERSION_INFO_PREFIX = ""; 603 | }; 604 | name = Release; 605 | }; 606 | F59641357A8FD845FF7487BEC16B2697 /* Debug */ = { 607 | isa = XCBuildConfiguration; 608 | baseConfigurationReference = F57D5B4A1379240BDB3F4ACAF8E29DAE /* Pods-WHDebugToolDemo.debug.xcconfig */; 609 | buildSettings = { 610 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 611 | CLANG_ENABLE_OBJC_WEAK = NO; 612 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 613 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 614 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 615 | CURRENT_PROJECT_VERSION = 1; 616 | DEFINES_MODULE = YES; 617 | DYLIB_COMPATIBILITY_VERSION = 1; 618 | DYLIB_CURRENT_VERSION = 1; 619 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 620 | INFOPLIST_FILE = "Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-Info.plist"; 621 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 622 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 623 | LD_RUNPATH_SEARCH_PATHS = ( 624 | "$(inherited)", 625 | "@executable_path/Frameworks", 626 | "@loader_path/Frameworks", 627 | ); 628 | MACH_O_TYPE = staticlib; 629 | MODULEMAP_FILE = "Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo.modulemap"; 630 | OTHER_LDFLAGS = ""; 631 | OTHER_LIBTOOLFLAGS = ""; 632 | PODS_ROOT = "$(SRCROOT)"; 633 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 634 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 635 | SDKROOT = iphoneos; 636 | SKIP_INSTALL = YES; 637 | TARGETED_DEVICE_FAMILY = "1,2"; 638 | VERSIONING_SYSTEM = "apple-generic"; 639 | VERSION_INFO_PREFIX = ""; 640 | }; 641 | name = Debug; 642 | }; 643 | /* End XCBuildConfiguration section */ 644 | 645 | /* Begin XCConfigurationList section */ 646 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 647 | isa = XCConfigurationList; 648 | buildConfigurations = ( 649 | 75D70EEEA0A456E14F7338A7F342964E /* Debug */, 650 | 71243899B61152433AAE34EE86456EE7 /* Release */, 651 | ); 652 | defaultConfigurationIsVisible = 0; 653 | defaultConfigurationName = Release; 654 | }; 655 | C01E5C88C0E6B8F7B1C5854CD037324F /* Build configuration list for PBXNativeTarget "WHDebugTool" */ = { 656 | isa = XCConfigurationList; 657 | buildConfigurations = ( 658 | CBE5DEAFEF203A95757524CA6AB6FC94 /* Debug */, 659 | 86EEAF5B2D77E658470D33FE85B02EC3 /* Release */, 660 | ); 661 | defaultConfigurationIsVisible = 0; 662 | defaultConfigurationName = Release; 663 | }; 664 | D1B19FF57620BE31E6990000F544CA07 /* Build configuration list for PBXNativeTarget "Pods-WHDebugToolDemo" */ = { 665 | isa = XCConfigurationList; 666 | buildConfigurations = ( 667 | F59641357A8FD845FF7487BEC16B2697 /* Debug */, 668 | E8F6C6ACD388753EE92A4A0ED4429609 /* Release */, 669 | ); 670 | defaultConfigurationIsVisible = 0; 671 | defaultConfigurationName = Release; 672 | }; 673 | /* End XCConfigurationList section */ 674 | }; 675 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 676 | } 677 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-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 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## WHDebugTool 5 | 6 | MIT License 7 | 8 | Copyright (c) 2018 wuhao 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in all 18 | copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26 | SOFTWARE. 27 | 28 | Generated by CocoaPods - https://cocoapods.org 29 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | MIT License 18 | 19 | Copyright (c) 2018 wuhao 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy 22 | of this software and associated documentation files (the "Software"), to deal 23 | in the Software without restriction, including without limitation the rights 24 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 25 | copies of the Software, and to permit persons to whom the Software is 26 | furnished to do so, subject to the following conditions: 27 | 28 | The above copyright notice and this permission notice shall be included in all 29 | copies or substantial portions of the Software. 30 | 31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 32 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 33 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 34 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 35 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 36 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 37 | SOFTWARE. 38 | 39 | License 40 | MIT 41 | Title 42 | WHDebugTool 43 | Type 44 | PSGroupSpecifier 45 | 46 | 47 | FooterText 48 | Generated by CocoaPods - https://cocoapods.org 49 | Title 50 | 51 | Type 52 | PSGroupSpecifier 53 | 54 | 55 | StringsTable 56 | Acknowledgements 57 | Title 58 | Acknowledgements 59 | 60 | 61 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_WHDebugToolDemo : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_WHDebugToolDemo 5 | @end 6 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-frameworks-Debug-input-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${PODS_ROOT}/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-frameworks.sh 2 | ${BUILT_PRODUCTS_DIR}/WHDebugTool/WHDebugTool.framework -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-frameworks-Debug-output-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WHDebugTool.framework -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-frameworks-Release-input-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${PODS_ROOT}/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-frameworks.sh 2 | ${BUILT_PRODUCTS_DIR}/WHDebugTool/WHDebugTool.framework -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-frameworks-Release-output-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WHDebugTool.framework -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | BCSYMBOLMAP_DIR="BCSymbolMaps" 23 | 24 | 25 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 26 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 27 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 28 | 29 | # Copies and strips a vendored framework 30 | install_framework() 31 | { 32 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 33 | local source="${BUILT_PRODUCTS_DIR}/$1" 34 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 35 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 36 | elif [ -r "$1" ]; then 37 | local source="$1" 38 | fi 39 | 40 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 41 | 42 | if [ -L "${source}" ]; then 43 | echo "Symlinked..." 44 | source="$(readlink "${source}")" 45 | fi 46 | 47 | if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then 48 | # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied 49 | find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do 50 | echo "Installing $f" 51 | install_bcsymbolmap "$f" "$destination" 52 | rm "$f" 53 | done 54 | rmdir "${source}/${BCSYMBOLMAP_DIR}" 55 | fi 56 | 57 | # Use filter instead of exclude so missing patterns don't throw errors. 58 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 59 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 60 | 61 | local basename 62 | basename="$(basename -s .framework "$1")" 63 | binary="${destination}/${basename}.framework/${basename}" 64 | 65 | if ! [ -r "$binary" ]; then 66 | binary="${destination}/${basename}" 67 | elif [ -L "${binary}" ]; then 68 | echo "Destination binary is symlinked..." 69 | dirname="$(dirname "${binary}")" 70 | binary="${dirname}/$(readlink "${binary}")" 71 | fi 72 | 73 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 74 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 75 | strip_invalid_archs "$binary" 76 | fi 77 | 78 | # Resign the code if required by the build settings to avoid unstable apps 79 | code_sign_if_enabled "${destination}/$(basename "$1")" 80 | 81 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 82 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 83 | local swift_runtime_libs 84 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 85 | for lib in $swift_runtime_libs; do 86 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 87 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 88 | code_sign_if_enabled "${destination}/${lib}" 89 | done 90 | fi 91 | } 92 | # Copies and strips a vendored dSYM 93 | install_dsym() { 94 | local source="$1" 95 | warn_missing_arch=${2:-true} 96 | if [ -r "$source" ]; then 97 | # Copy the dSYM into the targets temp dir. 98 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 99 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 100 | 101 | local basename 102 | basename="$(basename -s .dSYM "$source")" 103 | binary_name="$(ls "$source/Contents/Resources/DWARF")" 104 | binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" 105 | 106 | # Strip invalid architectures from the dSYM. 107 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 108 | strip_invalid_archs "$binary" "$warn_missing_arch" 109 | fi 110 | if [[ $STRIP_BINARY_RETVAL == 0 ]]; then 111 | # Move the stripped file into its final destination. 112 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 113 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 114 | else 115 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 116 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 117 | fi 118 | fi 119 | } 120 | 121 | # Used as a return value for each invocation of `strip_invalid_archs` function. 122 | STRIP_BINARY_RETVAL=0 123 | 124 | # Strip invalid architectures 125 | strip_invalid_archs() { 126 | binary="$1" 127 | warn_missing_arch=${2:-true} 128 | # Get architectures for current target binary 129 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 130 | # Intersect them with the architectures we are building for 131 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 132 | # If there are no archs supported by this binary then warn the user 133 | if [[ -z "$intersected_archs" ]]; then 134 | if [[ "$warn_missing_arch" == "true" ]]; then 135 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 136 | fi 137 | STRIP_BINARY_RETVAL=1 138 | return 139 | fi 140 | stripped="" 141 | for arch in $binary_archs; do 142 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 143 | # Strip non-valid architectures in-place 144 | lipo -remove "$arch" -output "$binary" "$binary" 145 | stripped="$stripped $arch" 146 | fi 147 | done 148 | if [[ "$stripped" ]]; then 149 | echo "Stripped $binary of architectures:$stripped" 150 | fi 151 | STRIP_BINARY_RETVAL=0 152 | } 153 | 154 | # Copies the bcsymbolmap files of a vendored framework 155 | install_bcsymbolmap() { 156 | local bcsymbolmap_path="$1" 157 | local destination="${BUILT_PRODUCTS_DIR}" 158 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 159 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 160 | } 161 | 162 | # Signs a framework with the provided identity 163 | code_sign_if_enabled() { 164 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 165 | # Use the current code_sign_identity 166 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 167 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 168 | 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | code_sign_cmd="$code_sign_cmd &" 171 | fi 172 | echo "$code_sign_cmd" 173 | eval "$code_sign_cmd" 174 | fi 175 | } 176 | 177 | if [[ "$CONFIGURATION" == "Debug" ]]; then 178 | install_framework "${BUILT_PRODUCTS_DIR}/WHDebugTool/WHDebugTool.framework" 179 | fi 180 | if [[ "$CONFIGURATION" == "Release" ]]; then 181 | install_framework "${BUILT_PRODUCTS_DIR}/WHDebugTool/WHDebugTool.framework" 182 | fi 183 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 184 | wait 185 | fi 186 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_WHDebugToolDemoVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_WHDebugToolDemoVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WHDebugTool" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WHDebugTool/WHDebugTool.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "UIKit" -framework "WHDebugTool" 7 | PODS_BUILD_DIR = ${BUILD_DIR} 8 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 9 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_WHDebugToolDemo { 2 | umbrella header "Pods-WHDebugToolDemo-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WHDebugTool" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/WHDebugTool/WHDebugTool.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "UIKit" -framework "WHDebugTool" 7 | PODS_BUILD_DIR = ${BUILD_DIR} 8 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 9 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/WHDebugTool/WHDebugTool-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 | FMWK 17 | CFBundleShortVersionString 18 | 2.3.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/WHDebugTool/WHDebugTool-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_WHDebugTool : NSObject 3 | @end 4 | @implementation PodsDummy_WHDebugTool 5 | @end 6 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/WHDebugTool/WHDebugTool-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/WHDebugTool/WHDebugTool-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "WHDebugConsoleLabel.h" 14 | #import "WHDebugCpuMonitor.h" 15 | #import "WHDebugFPSMonitor.h" 16 | #import "WHDebugMemoryMonitor.h" 17 | #import "WHDebugMonitor.h" 18 | #import "WHDebugTempVC.h" 19 | #import "WHDebugToolManager.h" 20 | 21 | FOUNDATION_EXPORT double WHDebugToolVersionNumber; 22 | FOUNDATION_EXPORT const unsigned char WHDebugToolVersionString[]; 23 | 24 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/WHDebugTool/WHDebugTool.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/WHDebugTool 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_LDFLAGS = $(inherited) -framework "UIKit" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/WHDebugTool/WHDebugTool.modulemap: -------------------------------------------------------------------------------- 1 | framework module WHDebugTool { 2 | umbrella header "WHDebugTool-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /WHDebugToolDemo/Pods/Target Support Files/WHDebugTool/WHDebugTool.release.xcconfig: -------------------------------------------------------------------------------- 1 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO 2 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/WHDebugTool 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | OTHER_LDFLAGS = $(inherited) -framework "UIKit" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates 10 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | SKIP_INSTALL = YES 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 68EC715C2614125400DEDE85 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 68EC715B2614125400DEDE85 /* AppDelegate.m */; }; 11 | 68EC715F2614125400DEDE85 /* SceneDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 68EC715E2614125400DEDE85 /* SceneDelegate.m */; }; 12 | 68EC71622614125400DEDE85 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 68EC71612614125400DEDE85 /* ViewController.m */; }; 13 | 68EC71652614125400DEDE85 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 68EC71632614125400DEDE85 /* Main.storyboard */; }; 14 | 68EC71672614125600DEDE85 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 68EC71662614125600DEDE85 /* Assets.xcassets */; }; 15 | 68EC716A2614125600DEDE85 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 68EC71682614125600DEDE85 /* LaunchScreen.storyboard */; }; 16 | 68EC716D2614125600DEDE85 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 68EC716C2614125600DEDE85 /* main.m */; }; 17 | FCC8D13E17395B693B536082 /* Pods_WHDebugToolDemo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49796FDE9C88CDB6097B2277 /* Pods_WHDebugToolDemo.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXFileReference section */ 21 | 26DD488F5691FD9CAAA2F457 /* Pods-WHDebugToolDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WHDebugToolDemo.debug.xcconfig"; path = "Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo.debug.xcconfig"; sourceTree = ""; }; 22 | 49796FDE9C88CDB6097B2277 /* Pods_WHDebugToolDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WHDebugToolDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | 68EC71572614125400DEDE85 /* WHDebugToolDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WHDebugToolDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 24 | 68EC715A2614125400DEDE85 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 25 | 68EC715B2614125400DEDE85 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 26 | 68EC715D2614125400DEDE85 /* SceneDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SceneDelegate.h; sourceTree = ""; }; 27 | 68EC715E2614125400DEDE85 /* SceneDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SceneDelegate.m; sourceTree = ""; }; 28 | 68EC71602614125400DEDE85 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 29 | 68EC71612614125400DEDE85 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 30 | 68EC71642614125400DEDE85 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 31 | 68EC71662614125600DEDE85 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 32 | 68EC71692614125600DEDE85 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 33 | 68EC716B2614125600DEDE85 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 34 | 68EC716C2614125600DEDE85 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 35 | 816DCAD6F86B9CA4C29BE6FF /* Pods-WHDebugToolDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WHDebugToolDemo.release.xcconfig"; path = "Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo.release.xcconfig"; sourceTree = ""; }; 36 | /* End PBXFileReference section */ 37 | 38 | /* Begin PBXFrameworksBuildPhase section */ 39 | 68EC71542614125400DEDE85 /* Frameworks */ = { 40 | isa = PBXFrameworksBuildPhase; 41 | buildActionMask = 2147483647; 42 | files = ( 43 | FCC8D13E17395B693B536082 /* Pods_WHDebugToolDemo.framework in Frameworks */, 44 | ); 45 | runOnlyForDeploymentPostprocessing = 0; 46 | }; 47 | /* End PBXFrameworksBuildPhase section */ 48 | 49 | /* Begin PBXGroup section */ 50 | 68EC714E2614125300DEDE85 = { 51 | isa = PBXGroup; 52 | children = ( 53 | 68EC71592614125400DEDE85 /* WHDebugToolDemo */, 54 | 68EC71582614125400DEDE85 /* Products */, 55 | A9D39A9BC4A7691F788F0C85 /* Pods */, 56 | AFDFF187C487FC6A7CDFB170 /* Frameworks */, 57 | ); 58 | sourceTree = ""; 59 | }; 60 | 68EC71582614125400DEDE85 /* Products */ = { 61 | isa = PBXGroup; 62 | children = ( 63 | 68EC71572614125400DEDE85 /* WHDebugToolDemo.app */, 64 | ); 65 | name = Products; 66 | sourceTree = ""; 67 | }; 68 | 68EC71592614125400DEDE85 /* WHDebugToolDemo */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 68EC715A2614125400DEDE85 /* AppDelegate.h */, 72 | 68EC715B2614125400DEDE85 /* AppDelegate.m */, 73 | 68EC715D2614125400DEDE85 /* SceneDelegate.h */, 74 | 68EC715E2614125400DEDE85 /* SceneDelegate.m */, 75 | 68EC71602614125400DEDE85 /* ViewController.h */, 76 | 68EC71612614125400DEDE85 /* ViewController.m */, 77 | 68EC71632614125400DEDE85 /* Main.storyboard */, 78 | 68EC71662614125600DEDE85 /* Assets.xcassets */, 79 | 68EC71682614125600DEDE85 /* LaunchScreen.storyboard */, 80 | 68EC716B2614125600DEDE85 /* Info.plist */, 81 | 68EC716C2614125600DEDE85 /* main.m */, 82 | ); 83 | path = WHDebugToolDemo; 84 | sourceTree = ""; 85 | }; 86 | A9D39A9BC4A7691F788F0C85 /* Pods */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 26DD488F5691FD9CAAA2F457 /* Pods-WHDebugToolDemo.debug.xcconfig */, 90 | 816DCAD6F86B9CA4C29BE6FF /* Pods-WHDebugToolDemo.release.xcconfig */, 91 | ); 92 | name = Pods; 93 | path = Pods; 94 | sourceTree = ""; 95 | }; 96 | AFDFF187C487FC6A7CDFB170 /* Frameworks */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 49796FDE9C88CDB6097B2277 /* Pods_WHDebugToolDemo.framework */, 100 | ); 101 | name = Frameworks; 102 | sourceTree = ""; 103 | }; 104 | /* End PBXGroup section */ 105 | 106 | /* Begin PBXNativeTarget section */ 107 | 68EC71562614125400DEDE85 /* WHDebugToolDemo */ = { 108 | isa = PBXNativeTarget; 109 | buildConfigurationList = 68EC71702614125600DEDE85 /* Build configuration list for PBXNativeTarget "WHDebugToolDemo" */; 110 | buildPhases = ( 111 | DA3A6D7A5ED722610C50449D /* [CP] Check Pods Manifest.lock */, 112 | 68EC71532614125400DEDE85 /* Sources */, 113 | 68EC71542614125400DEDE85 /* Frameworks */, 114 | 68EC71552614125400DEDE85 /* Resources */, 115 | F6370A54B24FC758673557EB /* [CP] Embed Pods Frameworks */, 116 | ); 117 | buildRules = ( 118 | ); 119 | dependencies = ( 120 | ); 121 | name = WHDebugToolDemo; 122 | productName = WHDebugToolDemo; 123 | productReference = 68EC71572614125400DEDE85 /* WHDebugToolDemo.app */; 124 | productType = "com.apple.product-type.application"; 125 | }; 126 | /* End PBXNativeTarget section */ 127 | 128 | /* Begin PBXProject section */ 129 | 68EC714F2614125300DEDE85 /* Project object */ = { 130 | isa = PBXProject; 131 | attributes = { 132 | LastUpgradeCheck = 1240; 133 | TargetAttributes = { 134 | 68EC71562614125400DEDE85 = { 135 | CreatedOnToolsVersion = 12.4; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 68EC71522614125300DEDE85 /* Build configuration list for PBXProject "WHDebugToolDemo" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 68EC714E2614125300DEDE85; 148 | productRefGroup = 68EC71582614125400DEDE85 /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 68EC71562614125400DEDE85 /* WHDebugToolDemo */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 68EC71552614125400DEDE85 /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 68EC716A2614125600DEDE85 /* LaunchScreen.storyboard in Resources */, 163 | 68EC71672614125600DEDE85 /* Assets.xcassets in Resources */, 164 | 68EC71652614125400DEDE85 /* Main.storyboard in Resources */, 165 | ); 166 | runOnlyForDeploymentPostprocessing = 0; 167 | }; 168 | /* End PBXResourcesBuildPhase section */ 169 | 170 | /* Begin PBXShellScriptBuildPhase section */ 171 | DA3A6D7A5ED722610C50449D /* [CP] Check Pods Manifest.lock */ = { 172 | isa = PBXShellScriptBuildPhase; 173 | buildActionMask = 2147483647; 174 | files = ( 175 | ); 176 | inputFileListPaths = ( 177 | ); 178 | inputPaths = ( 179 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 180 | "${PODS_ROOT}/Manifest.lock", 181 | ); 182 | name = "[CP] Check Pods Manifest.lock"; 183 | outputFileListPaths = ( 184 | ); 185 | outputPaths = ( 186 | "$(DERIVED_FILE_DIR)/Pods-WHDebugToolDemo-checkManifestLockResult.txt", 187 | ); 188 | runOnlyForDeploymentPostprocessing = 0; 189 | shellPath = /bin/sh; 190 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 191 | showEnvVarsInLog = 0; 192 | }; 193 | F6370A54B24FC758673557EB /* [CP] Embed Pods Frameworks */ = { 194 | isa = PBXShellScriptBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | ); 198 | inputFileListPaths = ( 199 | "${PODS_ROOT}/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-frameworks-${CONFIGURATION}-input-files.xcfilelist", 200 | ); 201 | name = "[CP] Embed Pods Frameworks"; 202 | outputFileListPaths = ( 203 | "${PODS_ROOT}/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-frameworks-${CONFIGURATION}-output-files.xcfilelist", 204 | ); 205 | runOnlyForDeploymentPostprocessing = 0; 206 | shellPath = /bin/sh; 207 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-WHDebugToolDemo/Pods-WHDebugToolDemo-frameworks.sh\"\n"; 208 | showEnvVarsInLog = 0; 209 | }; 210 | /* End PBXShellScriptBuildPhase section */ 211 | 212 | /* Begin PBXSourcesBuildPhase section */ 213 | 68EC71532614125400DEDE85 /* Sources */ = { 214 | isa = PBXSourcesBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | 68EC71622614125400DEDE85 /* ViewController.m in Sources */, 218 | 68EC715C2614125400DEDE85 /* AppDelegate.m in Sources */, 219 | 68EC716D2614125600DEDE85 /* main.m in Sources */, 220 | 68EC715F2614125400DEDE85 /* SceneDelegate.m in Sources */, 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | }; 224 | /* End PBXSourcesBuildPhase section */ 225 | 226 | /* Begin PBXVariantGroup section */ 227 | 68EC71632614125400DEDE85 /* Main.storyboard */ = { 228 | isa = PBXVariantGroup; 229 | children = ( 230 | 68EC71642614125400DEDE85 /* Base */, 231 | ); 232 | name = Main.storyboard; 233 | sourceTree = ""; 234 | }; 235 | 68EC71682614125600DEDE85 /* LaunchScreen.storyboard */ = { 236 | isa = PBXVariantGroup; 237 | children = ( 238 | 68EC71692614125600DEDE85 /* Base */, 239 | ); 240 | name = LaunchScreen.storyboard; 241 | sourceTree = ""; 242 | }; 243 | /* End PBXVariantGroup section */ 244 | 245 | /* Begin XCBuildConfiguration section */ 246 | 68EC716E2614125600DEDE85 /* Debug */ = { 247 | isa = XCBuildConfiguration; 248 | buildSettings = { 249 | ALWAYS_SEARCH_USER_PATHS = NO; 250 | CLANG_ANALYZER_NONNULL = YES; 251 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 252 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 253 | CLANG_CXX_LIBRARY = "libc++"; 254 | CLANG_ENABLE_MODULES = YES; 255 | CLANG_ENABLE_OBJC_ARC = YES; 256 | CLANG_ENABLE_OBJC_WEAK = YES; 257 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 258 | CLANG_WARN_BOOL_CONVERSION = YES; 259 | CLANG_WARN_COMMA = YES; 260 | CLANG_WARN_CONSTANT_CONVERSION = YES; 261 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 262 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 263 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 264 | CLANG_WARN_EMPTY_BODY = YES; 265 | CLANG_WARN_ENUM_CONVERSION = YES; 266 | CLANG_WARN_INFINITE_RECURSION = YES; 267 | CLANG_WARN_INT_CONVERSION = YES; 268 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 269 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 270 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 271 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 272 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 273 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 274 | CLANG_WARN_STRICT_PROTOTYPES = YES; 275 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 276 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 277 | CLANG_WARN_UNREACHABLE_CODE = YES; 278 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 279 | COPY_PHASE_STRIP = NO; 280 | DEBUG_INFORMATION_FORMAT = dwarf; 281 | ENABLE_STRICT_OBJC_MSGSEND = YES; 282 | ENABLE_TESTABILITY = YES; 283 | GCC_C_LANGUAGE_STANDARD = gnu11; 284 | GCC_DYNAMIC_NO_PIC = NO; 285 | GCC_NO_COMMON_BLOCKS = YES; 286 | GCC_OPTIMIZATION_LEVEL = 0; 287 | GCC_PREPROCESSOR_DEFINITIONS = ( 288 | "DEBUG=1", 289 | "$(inherited)", 290 | ); 291 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 292 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 293 | GCC_WARN_UNDECLARED_SELECTOR = YES; 294 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 295 | GCC_WARN_UNUSED_FUNCTION = YES; 296 | GCC_WARN_UNUSED_VARIABLE = YES; 297 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 298 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 299 | MTL_FAST_MATH = YES; 300 | ONLY_ACTIVE_ARCH = YES; 301 | SDKROOT = iphoneos; 302 | }; 303 | name = Debug; 304 | }; 305 | 68EC716F2614125600DEDE85 /* Release */ = { 306 | isa = XCBuildConfiguration; 307 | buildSettings = { 308 | ALWAYS_SEARCH_USER_PATHS = NO; 309 | CLANG_ANALYZER_NONNULL = YES; 310 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 311 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 312 | CLANG_CXX_LIBRARY = "libc++"; 313 | CLANG_ENABLE_MODULES = YES; 314 | CLANG_ENABLE_OBJC_ARC = YES; 315 | CLANG_ENABLE_OBJC_WEAK = YES; 316 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 317 | CLANG_WARN_BOOL_CONVERSION = YES; 318 | CLANG_WARN_COMMA = YES; 319 | CLANG_WARN_CONSTANT_CONVERSION = YES; 320 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 321 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 322 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 323 | CLANG_WARN_EMPTY_BODY = YES; 324 | CLANG_WARN_ENUM_CONVERSION = YES; 325 | CLANG_WARN_INFINITE_RECURSION = YES; 326 | CLANG_WARN_INT_CONVERSION = YES; 327 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 328 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 329 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 330 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 331 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 332 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 333 | CLANG_WARN_STRICT_PROTOTYPES = YES; 334 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 335 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 336 | CLANG_WARN_UNREACHABLE_CODE = YES; 337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 338 | COPY_PHASE_STRIP = NO; 339 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 340 | ENABLE_NS_ASSERTIONS = NO; 341 | ENABLE_STRICT_OBJC_MSGSEND = YES; 342 | GCC_C_LANGUAGE_STANDARD = gnu11; 343 | GCC_NO_COMMON_BLOCKS = YES; 344 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 345 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 346 | GCC_WARN_UNDECLARED_SELECTOR = YES; 347 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 348 | GCC_WARN_UNUSED_FUNCTION = YES; 349 | GCC_WARN_UNUSED_VARIABLE = YES; 350 | IPHONEOS_DEPLOYMENT_TARGET = 14.4; 351 | MTL_ENABLE_DEBUG_INFO = NO; 352 | MTL_FAST_MATH = YES; 353 | SDKROOT = iphoneos; 354 | VALIDATE_PRODUCT = YES; 355 | }; 356 | name = Release; 357 | }; 358 | 68EC71712614125600DEDE85 /* Debug */ = { 359 | isa = XCBuildConfiguration; 360 | baseConfigurationReference = 26DD488F5691FD9CAAA2F457 /* Pods-WHDebugToolDemo.debug.xcconfig */; 361 | buildSettings = { 362 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 363 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 364 | CODE_SIGN_STYLE = Automatic; 365 | INFOPLIST_FILE = WHDebugToolDemo/Info.plist; 366 | LD_RUNPATH_SEARCH_PATHS = ( 367 | "$(inherited)", 368 | "@executable_path/Frameworks", 369 | ); 370 | PRODUCT_BUNDLE_IDENTIFIER = wuhao.com.WHDebugToolDemo; 371 | PRODUCT_NAME = "$(TARGET_NAME)"; 372 | TARGETED_DEVICE_FAMILY = "1,2"; 373 | }; 374 | name = Debug; 375 | }; 376 | 68EC71722614125600DEDE85 /* Release */ = { 377 | isa = XCBuildConfiguration; 378 | baseConfigurationReference = 816DCAD6F86B9CA4C29BE6FF /* Pods-WHDebugToolDemo.release.xcconfig */; 379 | buildSettings = { 380 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 381 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 382 | CODE_SIGN_STYLE = Automatic; 383 | INFOPLIST_FILE = WHDebugToolDemo/Info.plist; 384 | LD_RUNPATH_SEARCH_PATHS = ( 385 | "$(inherited)", 386 | "@executable_path/Frameworks", 387 | ); 388 | PRODUCT_BUNDLE_IDENTIFIER = wuhao.com.WHDebugToolDemo; 389 | PRODUCT_NAME = "$(TARGET_NAME)"; 390 | TARGETED_DEVICE_FAMILY = "1,2"; 391 | }; 392 | name = Release; 393 | }; 394 | /* End XCBuildConfiguration section */ 395 | 396 | /* Begin XCConfigurationList section */ 397 | 68EC71522614125300DEDE85 /* Build configuration list for PBXProject "WHDebugToolDemo" */ = { 398 | isa = XCConfigurationList; 399 | buildConfigurations = ( 400 | 68EC716E2614125600DEDE85 /* Debug */, 401 | 68EC716F2614125600DEDE85 /* Release */, 402 | ); 403 | defaultConfigurationIsVisible = 0; 404 | defaultConfigurationName = Release; 405 | }; 406 | 68EC71702614125600DEDE85 /* Build configuration list for PBXNativeTarget "WHDebugToolDemo" */ = { 407 | isa = XCConfigurationList; 408 | buildConfigurations = ( 409 | 68EC71712614125600DEDE85 /* Debug */, 410 | 68EC71722614125600DEDE85 /* Release */, 411 | ); 412 | defaultConfigurationIsVisible = 0; 413 | defaultConfigurationName = Release; 414 | }; 415 | /* End XCConfigurationList section */ 416 | }; 417 | rootObject = 68EC714F2614125300DEDE85 /* Project object */; 418 | } 419 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // WHDebugToolDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import 9 | 10 | @interface AppDelegate : UIResponder 11 | 12 | 13 | @end 14 | 15 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // WHDebugToolDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import "AppDelegate.h" 9 | 10 | @interface AppDelegate () 11 | 12 | @end 13 | 14 | @implementation AppDelegate 15 | 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 18 | // Override point for customization after application launch. 19 | return YES; 20 | } 21 | 22 | 23 | #pragma mark - UISceneSession lifecycle 24 | 25 | 26 | - (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options { 27 | // Called when a new scene session is being created. 28 | // Use this method to select a configuration to create the new scene with. 29 | return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role]; 30 | } 31 | 32 | 33 | - (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet *)sceneSessions { 34 | // Called when the user discards a scene session. 35 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 36 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 37 | } 38 | 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/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 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/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 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UIApplicationSceneManifest 24 | 25 | UIApplicationSupportsMultipleScenes 26 | 27 | UISceneConfigurations 28 | 29 | UIWindowSceneSessionRoleApplication 30 | 31 | 32 | UISceneConfigurationName 33 | Default Configuration 34 | UISceneDelegateClassName 35 | SceneDelegate 36 | UISceneStoryboardFile 37 | Main 38 | 39 | 40 | 41 | 42 | UIApplicationSupportsIndirectInputEvents 43 | 44 | UILaunchStoryboardName 45 | LaunchScreen 46 | UIMainStoryboardFile 47 | Main 48 | UIRequiredDeviceCapabilities 49 | 50 | armv7 51 | 52 | UISupportedInterfaceOrientations 53 | 54 | UIInterfaceOrientationPortrait 55 | UIInterfaceOrientationLandscapeLeft 56 | UIInterfaceOrientationLandscapeRight 57 | 58 | UISupportedInterfaceOrientations~ipad 59 | 60 | UIInterfaceOrientationPortrait 61 | UIInterfaceOrientationPortraitUpsideDown 62 | UIInterfaceOrientationLandscapeLeft 63 | UIInterfaceOrientationLandscapeRight 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/SceneDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.h 3 | // WHDebugToolDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import 9 | 10 | @interface SceneDelegate : UIResponder 11 | 12 | @property (strong, nonatomic) UIWindow * window; 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/SceneDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.m 3 | // WHDebugToolDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import "SceneDelegate.h" 9 | 10 | @interface SceneDelegate () 11 | 12 | @end 13 | 14 | @implementation SceneDelegate 15 | 16 | 17 | - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions { 18 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 19 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 20 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 21 | } 22 | 23 | 24 | - (void)sceneDidDisconnect:(UIScene *)scene { 25 | // Called as the scene is being released by the system. 26 | // This occurs shortly after the scene enters the background, or when its session is discarded. 27 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 28 | // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). 29 | } 30 | 31 | 32 | - (void)sceneDidBecomeActive:(UIScene *)scene { 33 | // Called when the scene has moved from an inactive state to an active state. 34 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 35 | } 36 | 37 | 38 | - (void)sceneWillResignActive:(UIScene *)scene { 39 | // Called when the scene will move from an active state to an inactive state. 40 | // This may occur due to temporary interruptions (ex. an incoming phone call). 41 | } 42 | 43 | 44 | - (void)sceneWillEnterForeground:(UIScene *)scene { 45 | // Called as the scene transitions from the background to the foreground. 46 | // Use this method to undo the changes made on entering the background. 47 | } 48 | 49 | 50 | - (void)sceneDidEnterBackground:(UIScene *)scene { 51 | // Called as the scene transitions from the foreground to the background. 52 | // Use this method to save data, release shared resources, and store enough scene-specific state information 53 | // to restore the scene back to its current state. 54 | } 55 | 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // WHDebugToolDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import 9 | 10 | @interface ViewController : UIViewController 11 | 12 | 13 | @end 14 | 15 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // WHDebugToolDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import "ViewController.h" 9 | #import 10 | 11 | @interface ViewController () 12 | 13 | @end 14 | 15 | @implementation ViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | [WHDebugToolManager toggleWith:DebugToolTypeAll]; 20 | } 21 | 22 | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { 23 | [WHDebugToolManager toggleWith:DebugToolTypeAll]; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /WHDebugToolDemo/WHDebugToolDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // WHDebugToolDemo 4 | // 5 | // Created by 吴浩 on 2021/3/31. 6 | // 7 | 8 | #import 9 | #import "AppDelegate.h" 10 | 11 | int main(int argc, char * argv[]) { 12 | NSString * appDelegateClassName; 13 | @autoreleasepool { 14 | // Setup code that might create autoreleased objects goes here. 15 | appDelegateClassName = NSStringFromClass([AppDelegate class]); 16 | } 17 | return UIApplicationMain(argc, argv, nil, appDelegateClassName); 18 | } 19 | --------------------------------------------------------------------------------