├── .gitignore ├── .swift-version ├── Cartfile ├── Cartfile.resolved ├── Carthage └── Checkouts │ └── AppSwizzle │ ├── .gitignore │ ├── .swift-version │ ├── AppSwizzle.podspec │ ├── AppSwizzle │ ├── Assets │ │ └── .gitkeep │ └── Classes │ │ ├── .gitkeep │ │ └── AppSwizzle.swift │ ├── Example │ ├── AppSwizzle.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ └── AppSwizzle.xcscmblueprint │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── AppSwizzle-Example.xcscheme │ │ │ └── AppSwizzle.xcscheme │ ├── AppSwizzle.xcworkspace │ │ └── contents.xcworkspacedata │ ├── AppSwizzle │ │ ├── AppSwizzle.h │ │ └── Info.plist │ ├── Podfile │ ├── Podfile.lock │ └── Tests │ │ ├── AppSwizzleTests.swift │ │ └── Info.plist │ ├── LICENSE │ ├── README.md │ └── _Pods.xcodeproj ├── Example ├── NetworkEye.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── NetworkEye.xcscmblueprint │ └── xcshareddata │ │ └── xcschemes │ │ ├── NetworkEye-Example.xcscheme │ │ └── NetworkEye.xcscheme ├── NetworkEye.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── NetworkEye.xcscmblueprint ├── NetworkEye │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── NetworkEye.h │ └── ViewController.swift ├── Podfile ├── Podfile.lock └── Tests │ ├── Info.plist │ └── NetworkEyeTests.swift ├── LICENSE ├── NetworkEye.swift.podspec ├── NetworkEye └── Classes │ ├── EyeProtocol.swift │ ├── NetworkEye.swift │ └── URLSession+Eye.swift ├── README.md └── _Pods.xcodeproj /.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 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 29 | 30 | ## Playgrounds 31 | timeline.xctimeline 32 | playground.xcworkspace 33 | 34 | # Swift Package Manager 35 | # 36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 37 | # Packages/ 38 | .build/ 39 | 40 | # CocoaPods 41 | # 42 | # We recommend against adding the Pods directory to your .gitignore. However 43 | # you should judge for yourself, the pros and cons are mentioned at: 44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 45 | # 46 | Pods/ 47 | 48 | # Carthage 49 | # 50 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 51 | # Carthage/Checkouts 52 | 53 | Carthage/Build 54 | 55 | # fastlane 56 | # 57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 58 | # screenshots whenever they are needed. 59 | # For more information about the recommended setup visit: 60 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 61 | 62 | fastlane/report.xml 63 | fastlane/Preview.html 64 | fastlane/screenshots 65 | fastlane/test_output 66 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 3.0 2 | -------------------------------------------------------------------------------- /Cartfile: -------------------------------------------------------------------------------- 1 | github "zixun/AppSwizzle" >= 1.3.1 -------------------------------------------------------------------------------- /Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "zixun/AppSwizzle" "1.3.1" 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/.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 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 29 | 30 | ## Playgrounds 31 | timeline.xctimeline 32 | playground.xcworkspace 33 | 34 | # Swift Package Manager 35 | # 36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 37 | # Packages/ 38 | .build/ 39 | 40 | # CocoaPods 41 | # 42 | # We recommend against adding the Pods directory to your .gitignore. However 43 | # you should judge for yourself, the pros and cons are mentioned at: 44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 45 | # 46 | Pods/ 47 | 48 | # Carthage 49 | # 50 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 51 | # Carthage/Checkouts 52 | 53 | Carthage/Build 54 | 55 | # fastlane 56 | # 57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 58 | # screenshots whenever they are needed. 59 | # For more information about the recommended setup visit: 60 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 61 | 62 | fastlane/report.xml 63 | fastlane/Preview.html 64 | fastlane/screenshots 65 | fastlane/test_output 66 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/.swift-version: -------------------------------------------------------------------------------- 1 | 3.0 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/AppSwizzle.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint AppSwizzle.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'AppSwizzle' 11 | s.version = '1.3.1' 12 | s.summary = 'lightweight and flexible method swizzling wrapped by swift.' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | Lightweight and flexible method swizzling wrapped by swift. enjoy it! 22 | DESC 23 | 24 | s.homepage = 'https://github.com/zixun/AppSwizzle' 25 | s.license = { :type => 'MIT', :file => 'LICENSE' } 26 | s.author = { '陈奕龙' => 'chenyl.exe@gmail.com' } 27 | s.source = { :git => 'https://github.com/zixun/AppSwizzle.git', :tag => s.version.to_s } 28 | s.social_media_url = 'https://twitter.com/zixun_' 29 | 30 | s.ios.deployment_target = '8.0' 31 | 32 | s.source_files = 'AppSwizzle/Classes/**/*' 33 | end 34 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/AppSwizzle/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zixun/NetworkEye/79bd3cfcb3c2521c74d56f4dab2cba355fd7a986/Carthage/Checkouts/AppSwizzle/AppSwizzle/Assets/.gitkeep -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/AppSwizzle/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zixun/NetworkEye/79bd3cfcb3c2521c74d56f4dab2cba355fd7a986/Carthage/Checkouts/AppSwizzle/AppSwizzle/Classes/.gitkeep -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/AppSwizzle/Classes/AppSwizzle.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppSwizzle.swift 3 | // Pods 4 | // 5 | // Created by zixun on 2016/11/27. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | import ObjectiveC 12 | 13 | public enum SwizzleResult { 14 | case Succeed 15 | case OriginMethodNotFound 16 | case AlternateMethodNotFound 17 | } 18 | 19 | public extension NSObject { 20 | 21 | public class func swizzleInstanceMethod(origSelector: Selector, 22 | toAlterSelector alterSelector: Selector) -> SwizzleResult { 23 | return self.swizzleMethod(origSelector: origSelector, 24 | toAlterSelector: alterSelector, 25 | inAlterClass: self.classForCoder(), 26 | isClassMethod: false) 27 | } 28 | 29 | public class func swizzleClassMethod(origSelector: Selector, 30 | toAlterSelector alterSelector: Selector) -> SwizzleResult { 31 | return self.swizzleMethod(origSelector: origSelector, 32 | toAlterSelector: alterSelector, 33 | inAlterClass: self.classForCoder(), 34 | isClassMethod: true) 35 | } 36 | 37 | 38 | public class func swizzleInstanceMethod(origSelector: Selector, 39 | toAlterSelector alterSelector: Selector, 40 | inAlterClass alterClass: AnyClass) -> SwizzleResult { 41 | return self.swizzleMethod(origSelector: origSelector, 42 | toAlterSelector: alterSelector, 43 | inAlterClass: alterClass, 44 | isClassMethod: false) 45 | } 46 | 47 | public class func swizzleClassMethod(origSelector: Selector, 48 | toAlterSelector alterSelector: Selector, 49 | inAlterClass alterClass: AnyClass) -> SwizzleResult { 50 | return self.swizzleMethod(origSelector: origSelector, 51 | toAlterSelector: alterSelector, 52 | inAlterClass: alterClass, 53 | isClassMethod: true) 54 | } 55 | 56 | 57 | private class func swizzleMethod(origSelector: Selector, 58 | toAlterSelector alterSelector: Selector!, 59 | inAlterClass alterClass: AnyClass!, 60 | isClassMethod:Bool) -> SwizzleResult { 61 | 62 | var alterClass: AnyClass? = alterClass 63 | var origClass: AnyClass = self.classForCoder() 64 | if isClassMethod { 65 | alterClass = object_getClass(alterClass) 66 | guard let _class = object_getClass(self.classForCoder()) else { 67 | return .OriginMethodNotFound 68 | } 69 | origClass = _class 70 | } 71 | 72 | return SwizzleMethod(origClass: origClass, origSelector: origSelector, toAlterSelector: alterSelector, inAlterClass: alterClass) 73 | } 74 | } 75 | 76 | 77 | private func SwizzleMethod(origClass:AnyClass!,origSelector: Selector,toAlterSelector alterSelector: Selector!,inAlterClass alterClass: AnyClass!) -> SwizzleResult{ 78 | 79 | guard let origMethod: Method = class_getInstanceMethod(origClass, origSelector) else { 80 | return SwizzleResult.OriginMethodNotFound 81 | } 82 | 83 | guard let altMethod: Method = class_getInstanceMethod(alterClass, alterSelector) else { 84 | return SwizzleResult.AlternateMethodNotFound 85 | } 86 | 87 | 88 | 89 | _ = class_addMethod(origClass, 90 | origSelector,method_getImplementation(origMethod), 91 | method_getTypeEncoding(origMethod)) 92 | 93 | 94 | _ = class_addMethod(alterClass, 95 | alterSelector,method_getImplementation(altMethod), 96 | method_getTypeEncoding(altMethod)) 97 | 98 | method_exchangeImplementations(origMethod, altMethod) 99 | 100 | return SwizzleResult.Succeed 101 | 102 | } 103 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/Example/AppSwizzle.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACEC1AFB9204008FA782 /* AppSwizzleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* AppSwizzleTests.swift */; }; 11 | 9E24F9D91E7FB91A001AD0D7 /* AppSwizzle.h in Headers */ = {isa = PBXBuildFile; fileRef = 9E24F9D71E7FB91A001AD0D7 /* AppSwizzle.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 9E24F9E01E7FB92D001AD0D7 /* .gitkeep in Resources */ = {isa = PBXBuildFile; fileRef = 9E24F9DE1E7FB92D001AD0D7 /* .gitkeep */; }; 13 | 9E24F9E11E7FB92D001AD0D7 /* AppSwizzle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E24F9DF1E7FB92D001AD0D7 /* AppSwizzle.swift */; }; 14 | 9EFFB71B24C66DC6A7F031F7 /* Pods_AppSwizzle_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 491CD07646A3DE1A3E69F9D1 /* Pods_AppSwizzle_Tests.framework */; }; 15 | /* End PBXBuildFile section */ 16 | 17 | /* Begin PBXFileReference section */ 18 | 2E3BA46813095DB970DC7076 /* Pods-AppSwizzle_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AppSwizzle_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-AppSwizzle_Tests/Pods-AppSwizzle_Tests.release.xcconfig"; sourceTree = ""; }; 19 | 491CD07646A3DE1A3E69F9D1 /* Pods_AppSwizzle_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AppSwizzle_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 20 | 607FACE51AFB9204008FA782 /* AppSwizzle_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AppSwizzle_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 22 | 607FACEB1AFB9204008FA782 /* AppSwizzleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppSwizzleTests.swift; sourceTree = ""; }; 23 | 89AFF071BC9E704AA1C37D55 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 24 | 9E24F9D51E7FB91A001AD0D7 /* AppSwizzle.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AppSwizzle.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 25 | 9E24F9D71E7FB91A001AD0D7 /* AppSwizzle.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppSwizzle.h; sourceTree = ""; }; 26 | 9E24F9D81E7FB91A001AD0D7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 27 | 9E24F9DE1E7FB92D001AD0D7 /* .gitkeep */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .gitkeep; sourceTree = ""; }; 28 | 9E24F9DF1E7FB92D001AD0D7 /* AppSwizzle.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppSwizzle.swift; sourceTree = ""; }; 29 | E26F9D2C0E0879A1F36DBA49 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 30 | E2A536F5AEFAB64066837735 /* AppSwizzle.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = AppSwizzle.podspec; path = ../AppSwizzle.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 31 | EF9F0C8A4C454C95207FD5A2 /* Pods-AppSwizzle_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AppSwizzle_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AppSwizzle_Tests/Pods-AppSwizzle_Tests.debug.xcconfig"; sourceTree = ""; }; 32 | /* End PBXFileReference section */ 33 | 34 | /* Begin PBXFrameworksBuildPhase section */ 35 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 36 | isa = PBXFrameworksBuildPhase; 37 | buildActionMask = 2147483647; 38 | files = ( 39 | 9EFFB71B24C66DC6A7F031F7 /* Pods_AppSwizzle_Tests.framework in Frameworks */, 40 | ); 41 | runOnlyForDeploymentPostprocessing = 0; 42 | }; 43 | 9E24F9D11E7FB91A001AD0D7 /* Frameworks */ = { 44 | isa = PBXFrameworksBuildPhase; 45 | buildActionMask = 2147483647; 46 | files = ( 47 | ); 48 | runOnlyForDeploymentPostprocessing = 0; 49 | }; 50 | /* End PBXFrameworksBuildPhase section */ 51 | 52 | /* Begin PBXGroup section */ 53 | 148CFF5A86E94370A2FFA6EB /* Frameworks */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | 491CD07646A3DE1A3E69F9D1 /* Pods_AppSwizzle_Tests.framework */, 57 | ); 58 | name = Frameworks; 59 | sourceTree = ""; 60 | }; 61 | 607FACC71AFB9204008FA782 = { 62 | isa = PBXGroup; 63 | children = ( 64 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 65 | 607FACE81AFB9204008FA782 /* Tests */, 66 | 9E24F9D61E7FB91A001AD0D7 /* AppSwizzle */, 67 | 607FACD11AFB9204008FA782 /* Products */, 68 | 95CAC9C1BE74BBFAF93AD32F /* Pods */, 69 | 148CFF5A86E94370A2FFA6EB /* Frameworks */, 70 | ); 71 | sourceTree = ""; 72 | }; 73 | 607FACD11AFB9204008FA782 /* Products */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 607FACE51AFB9204008FA782 /* AppSwizzle_Tests.xctest */, 77 | 9E24F9D51E7FB91A001AD0D7 /* AppSwizzle.framework */, 78 | ); 79 | name = Products; 80 | sourceTree = ""; 81 | }; 82 | 607FACE81AFB9204008FA782 /* Tests */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | 607FACEB1AFB9204008FA782 /* AppSwizzleTests.swift */, 86 | 607FACE91AFB9204008FA782 /* Supporting Files */, 87 | ); 88 | path = Tests; 89 | sourceTree = ""; 90 | }; 91 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 607FACEA1AFB9204008FA782 /* Info.plist */, 95 | ); 96 | name = "Supporting Files"; 97 | sourceTree = ""; 98 | }; 99 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | E2A536F5AEFAB64066837735 /* AppSwizzle.podspec */, 103 | 89AFF071BC9E704AA1C37D55 /* README.md */, 104 | E26F9D2C0E0879A1F36DBA49 /* LICENSE */, 105 | ); 106 | name = "Podspec Metadata"; 107 | sourceTree = ""; 108 | }; 109 | 95CAC9C1BE74BBFAF93AD32F /* Pods */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | EF9F0C8A4C454C95207FD5A2 /* Pods-AppSwizzle_Tests.debug.xcconfig */, 113 | 2E3BA46813095DB970DC7076 /* Pods-AppSwizzle_Tests.release.xcconfig */, 114 | ); 115 | name = Pods; 116 | sourceTree = ""; 117 | }; 118 | 9E24F9D61E7FB91A001AD0D7 /* AppSwizzle */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 9E24F9DD1E7FB92D001AD0D7 /* Classes */, 122 | 9E24F9D71E7FB91A001AD0D7 /* AppSwizzle.h */, 123 | 9E24F9D81E7FB91A001AD0D7 /* Info.plist */, 124 | ); 125 | path = AppSwizzle; 126 | sourceTree = ""; 127 | }; 128 | 9E24F9DD1E7FB92D001AD0D7 /* Classes */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 9E24F9DE1E7FB92D001AD0D7 /* .gitkeep */, 132 | 9E24F9DF1E7FB92D001AD0D7 /* AppSwizzle.swift */, 133 | ); 134 | name = Classes; 135 | path = ../../AppSwizzle/Classes; 136 | sourceTree = ""; 137 | }; 138 | /* End PBXGroup section */ 139 | 140 | /* Begin PBXHeadersBuildPhase section */ 141 | 9E24F9D21E7FB91A001AD0D7 /* Headers */ = { 142 | isa = PBXHeadersBuildPhase; 143 | buildActionMask = 2147483647; 144 | files = ( 145 | 9E24F9D91E7FB91A001AD0D7 /* AppSwizzle.h in Headers */, 146 | ); 147 | runOnlyForDeploymentPostprocessing = 0; 148 | }; 149 | /* End PBXHeadersBuildPhase section */ 150 | 151 | /* Begin PBXNativeTarget section */ 152 | 607FACE41AFB9204008FA782 /* AppSwizzle_Tests */ = { 153 | isa = PBXNativeTarget; 154 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AppSwizzle_Tests" */; 155 | buildPhases = ( 156 | 7A1970CC11A178F2524BAA27 /* [CP] Check Pods Manifest.lock */, 157 | 607FACE11AFB9204008FA782 /* Sources */, 158 | 607FACE21AFB9204008FA782 /* Frameworks */, 159 | 607FACE31AFB9204008FA782 /* Resources */, 160 | C1AA5E9370E2274451F9FA64 /* [CP] Embed Pods Frameworks */, 161 | ); 162 | buildRules = ( 163 | ); 164 | dependencies = ( 165 | ); 166 | name = AppSwizzle_Tests; 167 | productName = Tests; 168 | productReference = 607FACE51AFB9204008FA782 /* AppSwizzle_Tests.xctest */; 169 | productType = "com.apple.product-type.bundle.unit-test"; 170 | }; 171 | 9E24F9D41E7FB91A001AD0D7 /* AppSwizzle */ = { 172 | isa = PBXNativeTarget; 173 | buildConfigurationList = 9E24F9DC1E7FB91A001AD0D7 /* Build configuration list for PBXNativeTarget "AppSwizzle" */; 174 | buildPhases = ( 175 | 9E24F9D01E7FB91A001AD0D7 /* Sources */, 176 | 9E24F9D11E7FB91A001AD0D7 /* Frameworks */, 177 | 9E24F9D21E7FB91A001AD0D7 /* Headers */, 178 | 9E24F9D31E7FB91A001AD0D7 /* Resources */, 179 | ); 180 | buildRules = ( 181 | ); 182 | dependencies = ( 183 | ); 184 | name = AppSwizzle; 185 | productName = AppSwizzle; 186 | productReference = 9E24F9D51E7FB91A001AD0D7 /* AppSwizzle.framework */; 187 | productType = "com.apple.product-type.framework"; 188 | }; 189 | /* End PBXNativeTarget section */ 190 | 191 | /* Begin PBXProject section */ 192 | 607FACC81AFB9204008FA782 /* Project object */ = { 193 | isa = PBXProject; 194 | attributes = { 195 | LastSwiftUpdateCheck = 0720; 196 | LastUpgradeCheck = 0900; 197 | ORGANIZATIONNAME = CocoaPods; 198 | TargetAttributes = { 199 | 607FACE41AFB9204008FA782 = { 200 | CreatedOnToolsVersion = 6.3.1; 201 | LastSwiftMigration = 0800; 202 | TestTargetID = 607FACCF1AFB9204008FA782; 203 | }; 204 | 9E24F9D41E7FB91A001AD0D7 = { 205 | CreatedOnToolsVersion = 8.2.1; 206 | DevelopmentTeam = L35WZWVC98; 207 | LastSwiftMigration = 0920; 208 | ProvisioningStyle = Automatic; 209 | }; 210 | }; 211 | }; 212 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "AppSwizzle" */; 213 | compatibilityVersion = "Xcode 3.2"; 214 | developmentRegion = English; 215 | hasScannedForEncodings = 0; 216 | knownRegions = ( 217 | en, 218 | Base, 219 | ); 220 | mainGroup = 607FACC71AFB9204008FA782; 221 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 222 | projectDirPath = ""; 223 | projectRoot = ""; 224 | targets = ( 225 | 607FACE41AFB9204008FA782 /* AppSwizzle_Tests */, 226 | 9E24F9D41E7FB91A001AD0D7 /* AppSwizzle */, 227 | ); 228 | }; 229 | /* End PBXProject section */ 230 | 231 | /* Begin PBXResourcesBuildPhase section */ 232 | 607FACE31AFB9204008FA782 /* Resources */ = { 233 | isa = PBXResourcesBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | }; 239 | 9E24F9D31E7FB91A001AD0D7 /* Resources */ = { 240 | isa = PBXResourcesBuildPhase; 241 | buildActionMask = 2147483647; 242 | files = ( 243 | 9E24F9E01E7FB92D001AD0D7 /* .gitkeep in Resources */, 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | }; 247 | /* End PBXResourcesBuildPhase section */ 248 | 249 | /* Begin PBXShellScriptBuildPhase section */ 250 | 7A1970CC11A178F2524BAA27 /* [CP] Check Pods Manifest.lock */ = { 251 | isa = PBXShellScriptBuildPhase; 252 | buildActionMask = 2147483647; 253 | files = ( 254 | ); 255 | inputPaths = ( 256 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 257 | "${PODS_ROOT}/Manifest.lock", 258 | ); 259 | name = "[CP] Check Pods Manifest.lock"; 260 | outputPaths = ( 261 | "$(DERIVED_FILE_DIR)/Pods-AppSwizzle_Tests-checkManifestLockResult.txt", 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | shellPath = /bin/sh; 265 | 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"; 266 | showEnvVarsInLog = 0; 267 | }; 268 | C1AA5E9370E2274451F9FA64 /* [CP] Embed Pods Frameworks */ = { 269 | isa = PBXShellScriptBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | ); 273 | inputPaths = ( 274 | "${SRCROOT}/Pods/Target Support Files/Pods-AppSwizzle_Tests/Pods-AppSwizzle_Tests-frameworks.sh", 275 | "${BUILT_PRODUCTS_DIR}/AppSwizzle/AppSwizzle.framework", 276 | ); 277 | name = "[CP] Embed Pods Frameworks"; 278 | outputPaths = ( 279 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AppSwizzle.framework", 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | shellPath = /bin/sh; 283 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AppSwizzle_Tests/Pods-AppSwizzle_Tests-frameworks.sh\"\n"; 284 | showEnvVarsInLog = 0; 285 | }; 286 | /* End PBXShellScriptBuildPhase section */ 287 | 288 | /* Begin PBXSourcesBuildPhase section */ 289 | 607FACE11AFB9204008FA782 /* Sources */ = { 290 | isa = PBXSourcesBuildPhase; 291 | buildActionMask = 2147483647; 292 | files = ( 293 | 607FACEC1AFB9204008FA782 /* AppSwizzleTests.swift in Sources */, 294 | ); 295 | runOnlyForDeploymentPostprocessing = 0; 296 | }; 297 | 9E24F9D01E7FB91A001AD0D7 /* Sources */ = { 298 | isa = PBXSourcesBuildPhase; 299 | buildActionMask = 2147483647; 300 | files = ( 301 | 9E24F9E11E7FB92D001AD0D7 /* AppSwizzle.swift in Sources */, 302 | ); 303 | runOnlyForDeploymentPostprocessing = 0; 304 | }; 305 | /* End PBXSourcesBuildPhase section */ 306 | 307 | /* Begin XCBuildConfiguration section */ 308 | 607FACED1AFB9204008FA782 /* Debug */ = { 309 | isa = XCBuildConfiguration; 310 | buildSettings = { 311 | ALWAYS_SEARCH_USER_PATHS = NO; 312 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 313 | CLANG_CXX_LIBRARY = "libc++"; 314 | CLANG_ENABLE_MODULES = YES; 315 | CLANG_ENABLE_OBJC_ARC = 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_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 321 | CLANG_WARN_EMPTY_BODY = YES; 322 | CLANG_WARN_ENUM_CONVERSION = YES; 323 | CLANG_WARN_INFINITE_RECURSION = YES; 324 | CLANG_WARN_INT_CONVERSION = YES; 325 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 329 | CLANG_WARN_STRICT_PROTOTYPES = YES; 330 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 331 | CLANG_WARN_UNREACHABLE_CODE = YES; 332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 334 | COPY_PHASE_STRIP = NO; 335 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 336 | ENABLE_STRICT_OBJC_MSGSEND = YES; 337 | ENABLE_TESTABILITY = YES; 338 | GCC_C_LANGUAGE_STANDARD = gnu99; 339 | GCC_DYNAMIC_NO_PIC = NO; 340 | GCC_NO_COMMON_BLOCKS = YES; 341 | GCC_OPTIMIZATION_LEVEL = 0; 342 | GCC_PREPROCESSOR_DEFINITIONS = ( 343 | "DEBUG=1", 344 | "$(inherited)", 345 | ); 346 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 347 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 348 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 349 | GCC_WARN_UNDECLARED_SELECTOR = YES; 350 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 351 | GCC_WARN_UNUSED_FUNCTION = YES; 352 | GCC_WARN_UNUSED_VARIABLE = YES; 353 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 354 | MTL_ENABLE_DEBUG_INFO = YES; 355 | ONLY_ACTIVE_ARCH = YES; 356 | SDKROOT = iphoneos; 357 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 358 | }; 359 | name = Debug; 360 | }; 361 | 607FACEE1AFB9204008FA782 /* Release */ = { 362 | isa = XCBuildConfiguration; 363 | buildSettings = { 364 | ALWAYS_SEARCH_USER_PATHS = NO; 365 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 366 | CLANG_CXX_LIBRARY = "libc++"; 367 | CLANG_ENABLE_MODULES = YES; 368 | CLANG_ENABLE_OBJC_ARC = YES; 369 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 370 | CLANG_WARN_BOOL_CONVERSION = YES; 371 | CLANG_WARN_COMMA = YES; 372 | CLANG_WARN_CONSTANT_CONVERSION = YES; 373 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 374 | CLANG_WARN_EMPTY_BODY = YES; 375 | CLANG_WARN_ENUM_CONVERSION = YES; 376 | CLANG_WARN_INFINITE_RECURSION = YES; 377 | CLANG_WARN_INT_CONVERSION = YES; 378 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 380 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 381 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 382 | CLANG_WARN_STRICT_PROTOTYPES = YES; 383 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 384 | CLANG_WARN_UNREACHABLE_CODE = YES; 385 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 386 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 387 | COPY_PHASE_STRIP = NO; 388 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 389 | ENABLE_NS_ASSERTIONS = NO; 390 | ENABLE_STRICT_OBJC_MSGSEND = YES; 391 | GCC_C_LANGUAGE_STANDARD = gnu99; 392 | GCC_NO_COMMON_BLOCKS = YES; 393 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 394 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 395 | GCC_WARN_UNDECLARED_SELECTOR = YES; 396 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 397 | GCC_WARN_UNUSED_FUNCTION = YES; 398 | GCC_WARN_UNUSED_VARIABLE = YES; 399 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 400 | MTL_ENABLE_DEBUG_INFO = NO; 401 | SDKROOT = iphoneos; 402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 403 | VALIDATE_PRODUCT = YES; 404 | }; 405 | name = Release; 406 | }; 407 | 607FACF31AFB9204008FA782 /* Debug */ = { 408 | isa = XCBuildConfiguration; 409 | baseConfigurationReference = EF9F0C8A4C454C95207FD5A2 /* Pods-AppSwizzle_Tests.debug.xcconfig */; 410 | buildSettings = { 411 | FRAMEWORK_SEARCH_PATHS = ( 412 | "$(SDKROOT)/Developer/Library/Frameworks", 413 | "$(inherited)", 414 | ); 415 | GCC_PREPROCESSOR_DEFINITIONS = ( 416 | "DEBUG=1", 417 | "$(inherited)", 418 | ); 419 | INFOPLIST_FILE = Tests/Info.plist; 420 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)"; 421 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 422 | PRODUCT_NAME = "$(TARGET_NAME)"; 423 | SWIFT_VERSION = 4.0; 424 | }; 425 | name = Debug; 426 | }; 427 | 607FACF41AFB9204008FA782 /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 2E3BA46813095DB970DC7076 /* Pods-AppSwizzle_Tests.release.xcconfig */; 430 | buildSettings = { 431 | FRAMEWORK_SEARCH_PATHS = ( 432 | "$(SDKROOT)/Developer/Library/Frameworks", 433 | "$(inherited)", 434 | ); 435 | INFOPLIST_FILE = Tests/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)"; 437 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | SWIFT_VERSION = 4.0; 440 | }; 441 | name = Release; 442 | }; 443 | 9E24F9DA1E7FB91A001AD0D7 /* Debug */ = { 444 | isa = XCBuildConfiguration; 445 | buildSettings = { 446 | CLANG_ANALYZER_NONNULL = YES; 447 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 448 | CLANG_WARN_INFINITE_RECURSION = YES; 449 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 450 | CODE_SIGN_IDENTITY = ""; 451 | CURRENT_PROJECT_VERSION = 1; 452 | DEBUG_INFORMATION_FORMAT = dwarf; 453 | DEFINES_MODULE = YES; 454 | DEVELOPMENT_TEAM = L35WZWVC98; 455 | DYLIB_COMPATIBILITY_VERSION = 1; 456 | DYLIB_CURRENT_VERSION = 1; 457 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 458 | INFOPLIST_FILE = AppSwizzle/Info.plist; 459 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 460 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 461 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 462 | PRODUCT_BUNDLE_IDENTIFIER = com.zixun.AppSwizzle; 463 | PRODUCT_NAME = "$(TARGET_NAME)"; 464 | SKIP_INSTALL = YES; 465 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 466 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 467 | SWIFT_VERSION = 4.0; 468 | TARGETED_DEVICE_FAMILY = "1,2"; 469 | VERSIONING_SYSTEM = "apple-generic"; 470 | VERSION_INFO_PREFIX = ""; 471 | }; 472 | name = Debug; 473 | }; 474 | 9E24F9DB1E7FB91A001AD0D7 /* Release */ = { 475 | isa = XCBuildConfiguration; 476 | buildSettings = { 477 | CLANG_ANALYZER_NONNULL = YES; 478 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 479 | CLANG_WARN_INFINITE_RECURSION = YES; 480 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 481 | CODE_SIGN_IDENTITY = ""; 482 | CURRENT_PROJECT_VERSION = 1; 483 | DEFINES_MODULE = YES; 484 | DEVELOPMENT_TEAM = L35WZWVC98; 485 | DYLIB_COMPATIBILITY_VERSION = 1; 486 | DYLIB_CURRENT_VERSION = 1; 487 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 488 | INFOPLIST_FILE = AppSwizzle/Info.plist; 489 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 490 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 491 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 492 | PRODUCT_BUNDLE_IDENTIFIER = com.zixun.AppSwizzle; 493 | PRODUCT_NAME = "$(TARGET_NAME)"; 494 | SKIP_INSTALL = YES; 495 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 496 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 497 | SWIFT_VERSION = 4.0; 498 | TARGETED_DEVICE_FAMILY = "1,2"; 499 | VERSIONING_SYSTEM = "apple-generic"; 500 | VERSION_INFO_PREFIX = ""; 501 | }; 502 | name = Release; 503 | }; 504 | /* End XCBuildConfiguration section */ 505 | 506 | /* Begin XCConfigurationList section */ 507 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "AppSwizzle" */ = { 508 | isa = XCConfigurationList; 509 | buildConfigurations = ( 510 | 607FACED1AFB9204008FA782 /* Debug */, 511 | 607FACEE1AFB9204008FA782 /* Release */, 512 | ); 513 | defaultConfigurationIsVisible = 0; 514 | defaultConfigurationName = Release; 515 | }; 516 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "AppSwizzle_Tests" */ = { 517 | isa = XCConfigurationList; 518 | buildConfigurations = ( 519 | 607FACF31AFB9204008FA782 /* Debug */, 520 | 607FACF41AFB9204008FA782 /* Release */, 521 | ); 522 | defaultConfigurationIsVisible = 0; 523 | defaultConfigurationName = Release; 524 | }; 525 | 9E24F9DC1E7FB91A001AD0D7 /* Build configuration list for PBXNativeTarget "AppSwizzle" */ = { 526 | isa = XCConfigurationList; 527 | buildConfigurations = ( 528 | 9E24F9DA1E7FB91A001AD0D7 /* Debug */, 529 | 9E24F9DB1E7FB91A001AD0D7 /* Release */, 530 | ); 531 | defaultConfigurationIsVisible = 0; 532 | defaultConfigurationName = Release; 533 | }; 534 | /* End XCConfigurationList section */ 535 | }; 536 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 537 | } 538 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/Example/AppSwizzle.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/Example/AppSwizzle.xcodeproj/project.xcworkspace/xcshareddata/AppSwizzle.xcscmblueprint: -------------------------------------------------------------------------------- 1 | { 2 | "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "5C65E1A0DF07B186C275611DFCB6907F9BD8DAC0", 3 | "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { 4 | 5 | }, 6 | "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { 7 | "5C65E1A0DF07B186C275611DFCB6907F9BD8DAC0" : 9223372036854775807, 8 | "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" : 9223372036854775807 9 | }, 10 | "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "0CB12C37-D96F-4E37-99A6-EA1B9BB695B0", 11 | "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { 12 | "5C65E1A0DF07B186C275611DFCB6907F9BD8DAC0" : "AppSwizzle\/", 13 | "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" : "..\/.." 14 | }, 15 | "DVTSourceControlWorkspaceBlueprintNameKey" : "AppSwizzle", 16 | "DVTSourceControlWorkspaceBlueprintVersion" : 204, 17 | "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "Example\/AppSwizzle.xcodeproj", 18 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ 19 | { 20 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "github.com:zixun\/AppSwizzle.git", 21 | "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", 22 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "5C65E1A0DF07B186C275611DFCB6907F9BD8DAC0" 23 | }, 24 | { 25 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "git.oschina.net:zixunapp\/AppSaber-MAC.git", 26 | "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", 27 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" 28 | } 29 | ] 30 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/Example/AppSwizzle.xcodeproj/xcshareddata/xcschemes/AppSwizzle-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/Example/AppSwizzle.xcodeproj/xcshareddata/xcschemes/AppSwizzle.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 47 | 48 | 54 | 55 | 56 | 57 | 58 | 59 | 65 | 66 | 72 | 73 | 74 | 75 | 77 | 78 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/Example/AppSwizzle.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/Example/AppSwizzle/AppSwizzle.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppSwizzle.h 3 | // AppSwizzle 4 | // 5 | // Created by zixun on 2017/3/20. 6 | // Copyright © 2017年 CocoaPods. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for AppSwizzle. 12 | FOUNDATION_EXPORT double AppSwizzleVersionNumber; 13 | 14 | //! Project version string for AppSwizzle. 15 | FOUNDATION_EXPORT const unsigned char AppSwizzleVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/Example/AppSwizzle/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 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | target 'AppSwizzle_Tests' do 3 | pod 'AppSwizzle', :path => '../' 4 | 5 | 6 | end 7 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AppSwizzle (1.3) 3 | 4 | DEPENDENCIES: 5 | - AppSwizzle (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | AppSwizzle: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | AppSwizzle: 283c8f5b60e8638e6803383f6bbfd03af42cc01f 13 | 14 | PODFILE CHECKSUM: 939ed1355ec6a0adef5ae3f3b1e627821b2fc52a 15 | 16 | COCOAPODS: 1.5.0 17 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/Example/Tests/AppSwizzleTests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import AppSwizzle 4 | 5 | class AppSwizzleTests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | } 10 | 11 | override func tearDown() { 12 | super.tearDown() 13 | } 14 | 15 | func testSwizzleInstanceMethod() { 16 | let orig = #selector(AppSwizzleTests.origSelector_testSwizzleInstanceMethod) 17 | let alter = #selector(AppSwizzleTests.alterSelector_testSwizzleInstanceMethod) 18 | AppSwizzleTests.swizzleInstanceMethod(origSelector: orig, toAlterSelector: alter) 19 | 20 | self.origSelector_testSwizzleInstanceMethod() 21 | } 22 | 23 | func testSwizzleClassMethod() { 24 | let orig = #selector(AppSwizzleTests.origSelector_testSwizzleClassMethod) 25 | let alter = #selector(AppSwizzleTests.alterSelector_testSwizzleClassMethod) 26 | AppSwizzleTests.swizzleClassMethod(origSelector: orig, toAlterSelector: alter) 27 | 28 | AppSwizzleTests.origSelector_testSwizzleClassMethod() 29 | } 30 | 31 | func testSwizzleInstanceMethodToAlterClass() { 32 | let orig = #selector(AppSwizzleTests.origSelector_testSwizzleInstanceMethodToAlterClass) 33 | let alter = #selector(OtherClass.alterSelector_testSwizzleInstanceMethodToAlterClass) 34 | AppSwizzleTests.swizzleInstanceMethod(origSelector: orig, toAlterSelector: alter, inAlterClass: OtherClass.classForCoder()) 35 | self.origSelector_testSwizzleInstanceMethodToAlterClass() 36 | } 37 | 38 | func testSwizzleClassMethodToAlterClass() { 39 | let orig = #selector(AppSwizzleTests.origSelector_testSwizzleClassMethodToAlterClass) 40 | let alter = #selector(OtherClass.alterSelector_testSwizzleClassMethodToAlterClass) 41 | 42 | AppSwizzleTests.swizzleClassMethod(origSelector: orig, toAlterSelector: alter, inAlterClass: OtherClass.classForCoder()) 43 | 44 | AppSwizzleTests.origSelector_testSwizzleClassMethodToAlterClass() 45 | } 46 | 47 | } 48 | 49 | //MARK: testSwizzleInstanceMethod extension 50 | extension AppSwizzleTests { 51 | 52 | func origSelector_testSwizzleInstanceMethod() { 53 | XCTFail("Failed") 54 | } 55 | 56 | func alterSelector_testSwizzleInstanceMethod() { 57 | XCTAssert(true, "Pass") 58 | } 59 | } 60 | 61 | //MARK: testSwizzleClassMethod extension 62 | extension AppSwizzleTests { 63 | 64 | class func origSelector_testSwizzleClassMethod() { 65 | XCTFail("Failed") 66 | } 67 | 68 | class func alterSelector_testSwizzleClassMethod() { 69 | XCTAssert(true, "Pass") 70 | } 71 | } 72 | 73 | //MARK: testSwizzleInstanceMethodToAlterClass extension 74 | extension AppSwizzleTests { 75 | func origSelector_testSwizzleInstanceMethodToAlterClass() { 76 | XCTFail("Failed") 77 | } 78 | } 79 | 80 | extension AppSwizzleTests { 81 | class func origSelector_testSwizzleClassMethodToAlterClass() { 82 | XCTFail("Failed") 83 | } 84 | } 85 | 86 | 87 | class OtherClass: NSObject { 88 | 89 | @objc func alterSelector_testSwizzleInstanceMethodToAlterClass() { 90 | XCTAssert(true, "Pass") 91 | } 92 | 93 | @objc class func alterSelector_testSwizzleClassMethodToAlterClass() { 94 | XCTAssert(true, "Pass") 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/Example/Tests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 陈奕龙(子循) 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 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/README.md: -------------------------------------------------------------------------------- 1 | # AppSwizzle 2 | 3 | [![Swift 4.0+](https://img.shields.io/badge/Swift-4.0%2B-orange.svg)](https://github.com/zixun/AppBaseKit) 4 | [![Platform](https://img.shields.io/badge/Platform-iOS-lightgrey.svg)](https://github.com/zixun/AppBaseKit) 5 | [![MIT](https://img.shields.io/badge/License-MIT-red.svg)](https://opensource.org/licenses/MIT) 6 | 7 | ## Context 8 | This library is derived from the [GodEye](https://github.com/zixun/GodEye) project which can automaticly disply Log,Crash,Network,ANR,Leak,CPU,RAM,FPS,NetFlow,Folder and etc with one line of code. Just like god opened his eyes 9 | 10 | ## Example 11 | 12 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 13 | 14 | ## Requirements 15 | 16 | ## Installation 17 | 18 | ### CocoaPods 19 | AppSwizzle is available through [CocoaPods](http://cocoapods.org). To install 20 | it, simply add the following line to your Podfile: 21 | 22 | ```ruby 23 | pod "AppSwizzle" 24 | ``` 25 | 26 | ### Carthage 27 | Or, if you’re using [Carthage](https://github.com/Carthage/Carthage), add SwViewCapture to your Cartfile: 28 | 29 | ``` 30 | github "zixun/AppSwizzle" 31 | ``` 32 | ## Usage 33 | 34 | ### Swizzle Instance Method 35 | 36 | ```swift 37 | let orig = #selector(AppSwizzleTests.origSelector_testSwizzleInstanceMethod) 38 | let alter = #selector(AppSwizzleTests.alterSelector_testSwizzleInstanceMethod) 39 | AppSwizzleTests.swizzleInstanceMethod(origSelector: orig, toAlterSelector: alter) 40 | ``` 41 | 42 | ### Swizzle Class Method 43 | 44 | ```swift 45 | let orig = #selector(AppSwizzleTests.origSelector_testSwizzleClassMethod) 46 | let alter = #selector(AppSwizzleTests.alterSelector_testSwizzleClassMethod) 47 | AppSwizzleTests.swizzleClassMethod(origSelector: orig, toAlterSelector: alter) 48 | ``` 49 | 50 | ### Swizzle Instance Method To Alter Class 51 | 52 | ```swift 53 | let orig = #selector(AppSwizzleTests.origSelector_testSwizzleInstanceMethodToAlterClass) 54 | let alter = #selector(OtherClass.alterSelector_testSwizzleInstanceMethodToAlterClass) 55 | AppSwizzleTests.swizzleInstanceMethod(origSelector: orig, toAlterSelector: alter, inAlterClass: OtherClass.classForCoder()) 56 | ``` 57 | 58 | ### Swizzle Class Method To Alter Class 59 | 60 | ```swift 61 | let orig = #selector(AppSwizzleTests.origSelector_testSwizzleClassMethodToAlterClass) 62 | let alter = #selector(OtherClass.alterSelector_testSwizzleClassMethodToAlterClass) 63 | AppSwizzleTests.swizzleClassMethod(origSelector: orig, toAlterSelector: alter, inAlterClass: OtherClass.classForCoder()) 64 | ``` 65 | 66 | ## Author 67 | 68 | name: 陈奕龙 69 | 70 | twitter: [@zixun_](https://twitter.com/zixun_) 71 | 72 | email: chenyl.exe@gmail.com 73 | 74 | github: [zixun](https://github.com/zixun) 75 | 76 | blog: [子循(SubCycle)](http://zixun.github.io/) 77 | 78 | ## License 79 | 80 | AppSwizzle is available under the MIT license. See the LICENSE file for more info. 81 | -------------------------------------------------------------------------------- /Carthage/Checkouts/AppSwizzle/_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /Example/NetworkEye.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 356CB9B31BBAB922655390FB /* Pods_NetworkEye_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 57B16F4A02777F243934C8BE /* Pods_NetworkEye_Example.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* NetworkEyeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* NetworkEyeTests.swift */; }; 17 | 9E24F9FE1E7FC46C001AD0D7 /* NetworkEye.h in Headers */ = {isa = PBXBuildFile; fileRef = 9E24F9FC1E7FC46C001AD0D7 /* NetworkEye.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | 9E24FA081E7FC47E001AD0D7 /* EyeProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E24FA051E7FC47E001AD0D7 /* EyeProtocol.swift */; }; 19 | 9E24FA091E7FC47E001AD0D7 /* NetworkEye.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E24FA061E7FC47E001AD0D7 /* NetworkEye.swift */; }; 20 | 9E24FA0A1E7FC47E001AD0D7 /* URLSession+Eye.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E24FA071E7FC47E001AD0D7 /* URLSession+Eye.swift */; }; 21 | 9E24FA0B1E7FC498001AD0D7 /* AppSwizzle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9E24F9E21E7FBA0E001AD0D7 /* AppSwizzle.framework */; }; 22 | 9E24FAF31E817F68001AD0D7 /* NetworkEye.swift.podspec in Resources */ = {isa = PBXBuildFile; fileRef = 9E24FAF21E817F68001AD0D7 /* NetworkEye.swift.podspec */; }; 23 | AAEA25B20B7FF6B23C52F683 /* Pods_NetworkEye_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F765BDD2DBAAE07BE313E70F /* Pods_NetworkEye_Tests.framework */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXContainerItemProxy section */ 27 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 32 | remoteInfo = NetworkEye; 33 | }; 34 | /* End PBXContainerItemProxy section */ 35 | 36 | /* Begin PBXFileReference section */ 37 | 3DFD45BBB9133D6E496FDA52 /* Pods-NetworkEye_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NetworkEye_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-NetworkEye_Tests/Pods-NetworkEye_Tests.debug.xcconfig"; sourceTree = ""; }; 38 | 531A0E864ADD71D18060EE17 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 39 | 57B16F4A02777F243934C8BE /* Pods_NetworkEye_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NetworkEye_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 607FACD01AFB9204008FA782 /* NetworkEye_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NetworkEye_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 43 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 44 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 45 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 46 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 47 | 607FACE51AFB9204008FA782 /* NetworkEye_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NetworkEye_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 607FACEB1AFB9204008FA782 /* NetworkEyeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NetworkEyeTests.swift; sourceTree = ""; }; 50 | 8F3D12B008DCACFB88CF31AC /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 51 | 9E24F9CE1E7FB8D3001AD0D7 /* AppBaseKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppBaseKit.framework; path = ../Carthage/Build/iOS/AppBaseKit.framework; sourceTree = ""; }; 52 | 9E24F9E21E7FBA0E001AD0D7 /* AppSwizzle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppSwizzle.framework; path = ../Carthage/Build/iOS/AppSwizzle.framework; sourceTree = ""; }; 53 | 9E24F9FA1E7FC46C001AD0D7 /* NetworkEye.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = NetworkEye.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 9E24F9FC1E7FC46C001AD0D7 /* NetworkEye.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NetworkEye.h; sourceTree = ""; }; 55 | 9E24F9FD1E7FC46C001AD0D7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 9E24FA051E7FC47E001AD0D7 /* EyeProtocol.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EyeProtocol.swift; sourceTree = ""; }; 57 | 9E24FA061E7FC47E001AD0D7 /* NetworkEye.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NetworkEye.swift; sourceTree = ""; }; 58 | 9E24FA071E7FC47E001AD0D7 /* URLSession+Eye.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "URLSession+Eye.swift"; sourceTree = ""; }; 59 | 9E24FAF21E817F68001AD0D7 /* NetworkEye.swift.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = NetworkEye.swift.podspec; path = ../NetworkEye.swift.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 60 | B44E08D635539770D577545B /* Pods-NetworkEye_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NetworkEye_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-NetworkEye_Tests/Pods-NetworkEye_Tests.release.xcconfig"; sourceTree = ""; }; 61 | F50399156AE7AD82AA49298B /* Pods-NetworkEye_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NetworkEye_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-NetworkEye_Example/Pods-NetworkEye_Example.release.xcconfig"; sourceTree = ""; }; 62 | F765BDD2DBAAE07BE313E70F /* Pods_NetworkEye_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NetworkEye_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | F882F7C00A27B2F7998755D6 /* Pods-NetworkEye_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NetworkEye_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-NetworkEye_Example/Pods-NetworkEye_Example.debug.xcconfig"; sourceTree = ""; }; 64 | /* End PBXFileReference section */ 65 | 66 | /* Begin PBXFrameworksBuildPhase section */ 67 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | 356CB9B31BBAB922655390FB /* Pods_NetworkEye_Example.framework in Frameworks */, 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 76 | isa = PBXFrameworksBuildPhase; 77 | buildActionMask = 2147483647; 78 | files = ( 79 | AAEA25B20B7FF6B23C52F683 /* Pods_NetworkEye_Tests.framework in Frameworks */, 80 | ); 81 | runOnlyForDeploymentPostprocessing = 0; 82 | }; 83 | 9E24F9F61E7FC46C001AD0D7 /* Frameworks */ = { 84 | isa = PBXFrameworksBuildPhase; 85 | buildActionMask = 2147483647; 86 | files = ( 87 | 9E24FA0B1E7FC498001AD0D7 /* AppSwizzle.framework in Frameworks */, 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | /* End PBXFrameworksBuildPhase section */ 92 | 93 | /* Begin PBXGroup section */ 94 | 607FACC71AFB9204008FA782 = { 95 | isa = PBXGroup; 96 | children = ( 97 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 98 | 607FACD21AFB9204008FA782 /* Example for NetworkEye */, 99 | 607FACE81AFB9204008FA782 /* Tests */, 100 | 9E24F9FB1E7FC46C001AD0D7 /* NetworkEye */, 101 | 607FACD11AFB9204008FA782 /* Products */, 102 | 7D8DC146EB5F6A6B7CF10CBF /* Pods */, 103 | CB5F7003653478F03A948BBC /* Frameworks */, 104 | ); 105 | sourceTree = ""; 106 | }; 107 | 607FACD11AFB9204008FA782 /* Products */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 607FACD01AFB9204008FA782 /* NetworkEye_Example.app */, 111 | 607FACE51AFB9204008FA782 /* NetworkEye_Tests.xctest */, 112 | 9E24F9FA1E7FC46C001AD0D7 /* NetworkEye.framework */, 113 | ); 114 | name = Products; 115 | sourceTree = ""; 116 | }; 117 | 607FACD21AFB9204008FA782 /* Example for NetworkEye */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 121 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 122 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 123 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 124 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 125 | 607FACD31AFB9204008FA782 /* Supporting Files */, 126 | ); 127 | name = "Example for NetworkEye"; 128 | path = NetworkEye; 129 | sourceTree = ""; 130 | }; 131 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 607FACD41AFB9204008FA782 /* Info.plist */, 135 | ); 136 | name = "Supporting Files"; 137 | sourceTree = ""; 138 | }; 139 | 607FACE81AFB9204008FA782 /* Tests */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | 607FACEB1AFB9204008FA782 /* NetworkEyeTests.swift */, 143 | 607FACE91AFB9204008FA782 /* Supporting Files */, 144 | ); 145 | path = Tests; 146 | sourceTree = ""; 147 | }; 148 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 149 | isa = PBXGroup; 150 | children = ( 151 | 607FACEA1AFB9204008FA782 /* Info.plist */, 152 | ); 153 | name = "Supporting Files"; 154 | sourceTree = ""; 155 | }; 156 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 9E24FAF21E817F68001AD0D7 /* NetworkEye.swift.podspec */, 160 | 8F3D12B008DCACFB88CF31AC /* README.md */, 161 | 531A0E864ADD71D18060EE17 /* LICENSE */, 162 | ); 163 | name = "Podspec Metadata"; 164 | sourceTree = ""; 165 | }; 166 | 7D8DC146EB5F6A6B7CF10CBF /* Pods */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | F882F7C00A27B2F7998755D6 /* Pods-NetworkEye_Example.debug.xcconfig */, 170 | F50399156AE7AD82AA49298B /* Pods-NetworkEye_Example.release.xcconfig */, 171 | 3DFD45BBB9133D6E496FDA52 /* Pods-NetworkEye_Tests.debug.xcconfig */, 172 | B44E08D635539770D577545B /* Pods-NetworkEye_Tests.release.xcconfig */, 173 | ); 174 | name = Pods; 175 | sourceTree = ""; 176 | }; 177 | 9E24F9FB1E7FC46C001AD0D7 /* NetworkEye */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | 9E24FA021E7FC47E001AD0D7 /* NetworkEye */, 181 | 9E24F9FC1E7FC46C001AD0D7 /* NetworkEye.h */, 182 | 9E24F9FD1E7FC46C001AD0D7 /* Info.plist */, 183 | ); 184 | path = NetworkEye; 185 | sourceTree = ""; 186 | }; 187 | 9E24FA021E7FC47E001AD0D7 /* NetworkEye */ = { 188 | isa = PBXGroup; 189 | children = ( 190 | 9E24FA031E7FC47E001AD0D7 /* Assets */, 191 | 9E24FA041E7FC47E001AD0D7 /* Classes */, 192 | ); 193 | name = NetworkEye; 194 | path = ../../NetworkEye; 195 | sourceTree = ""; 196 | }; 197 | 9E24FA031E7FC47E001AD0D7 /* Assets */ = { 198 | isa = PBXGroup; 199 | children = ( 200 | ); 201 | path = Assets; 202 | sourceTree = ""; 203 | }; 204 | 9E24FA041E7FC47E001AD0D7 /* Classes */ = { 205 | isa = PBXGroup; 206 | children = ( 207 | 9E24FA051E7FC47E001AD0D7 /* EyeProtocol.swift */, 208 | 9E24FA061E7FC47E001AD0D7 /* NetworkEye.swift */, 209 | 9E24FA071E7FC47E001AD0D7 /* URLSession+Eye.swift */, 210 | ); 211 | path = Classes; 212 | sourceTree = ""; 213 | }; 214 | CB5F7003653478F03A948BBC /* Frameworks */ = { 215 | isa = PBXGroup; 216 | children = ( 217 | 9E24F9E21E7FBA0E001AD0D7 /* AppSwizzle.framework */, 218 | 9E24F9CE1E7FB8D3001AD0D7 /* AppBaseKit.framework */, 219 | 57B16F4A02777F243934C8BE /* Pods_NetworkEye_Example.framework */, 220 | F765BDD2DBAAE07BE313E70F /* Pods_NetworkEye_Tests.framework */, 221 | ); 222 | name = Frameworks; 223 | sourceTree = ""; 224 | }; 225 | /* End PBXGroup section */ 226 | 227 | /* Begin PBXHeadersBuildPhase section */ 228 | 9E24F9F71E7FC46C001AD0D7 /* Headers */ = { 229 | isa = PBXHeadersBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 9E24F9FE1E7FC46C001AD0D7 /* NetworkEye.h in Headers */, 233 | ); 234 | runOnlyForDeploymentPostprocessing = 0; 235 | }; 236 | /* End PBXHeadersBuildPhase section */ 237 | 238 | /* Begin PBXNativeTarget section */ 239 | 607FACCF1AFB9204008FA782 /* NetworkEye_Example */ = { 240 | isa = PBXNativeTarget; 241 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "NetworkEye_Example" */; 242 | buildPhases = ( 243 | 57524D40493C1A9DE16452BC /* [CP] Check Pods Manifest.lock */, 244 | 607FACCC1AFB9204008FA782 /* Sources */, 245 | 607FACCD1AFB9204008FA782 /* Frameworks */, 246 | 607FACCE1AFB9204008FA782 /* Resources */, 247 | 099BB149E9B1B9A91BCB6709 /* [CP] Embed Pods Frameworks */, 248 | ); 249 | buildRules = ( 250 | ); 251 | dependencies = ( 252 | ); 253 | name = NetworkEye_Example; 254 | productName = NetworkEye; 255 | productReference = 607FACD01AFB9204008FA782 /* NetworkEye_Example.app */; 256 | productType = "com.apple.product-type.application"; 257 | }; 258 | 607FACE41AFB9204008FA782 /* NetworkEye_Tests */ = { 259 | isa = PBXNativeTarget; 260 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "NetworkEye_Tests" */; 261 | buildPhases = ( 262 | 7EDF56C3F5DEA3BAE339D2C7 /* [CP] Check Pods Manifest.lock */, 263 | 607FACE11AFB9204008FA782 /* Sources */, 264 | 607FACE21AFB9204008FA782 /* Frameworks */, 265 | 607FACE31AFB9204008FA782 /* Resources */, 266 | ); 267 | buildRules = ( 268 | ); 269 | dependencies = ( 270 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 271 | ); 272 | name = NetworkEye_Tests; 273 | productName = Tests; 274 | productReference = 607FACE51AFB9204008FA782 /* NetworkEye_Tests.xctest */; 275 | productType = "com.apple.product-type.bundle.unit-test"; 276 | }; 277 | 9E24F9F91E7FC46C001AD0D7 /* NetworkEye */ = { 278 | isa = PBXNativeTarget; 279 | buildConfigurationList = 9E24F9FF1E7FC46C001AD0D7 /* Build configuration list for PBXNativeTarget "NetworkEye" */; 280 | buildPhases = ( 281 | 9E24F9F51E7FC46C001AD0D7 /* Sources */, 282 | 9E24F9F61E7FC46C001AD0D7 /* Frameworks */, 283 | 9E24F9F71E7FC46C001AD0D7 /* Headers */, 284 | 9E24F9F81E7FC46C001AD0D7 /* Resources */, 285 | 9E24FA0C1E7FC49F001AD0D7 /* ShellScript */, 286 | ); 287 | buildRules = ( 288 | ); 289 | dependencies = ( 290 | ); 291 | name = NetworkEye; 292 | productName = NetworkEye; 293 | productReference = 9E24F9FA1E7FC46C001AD0D7 /* NetworkEye.framework */; 294 | productType = "com.apple.product-type.framework"; 295 | }; 296 | /* End PBXNativeTarget section */ 297 | 298 | /* Begin PBXProject section */ 299 | 607FACC81AFB9204008FA782 /* Project object */ = { 300 | isa = PBXProject; 301 | attributes = { 302 | LastSwiftUpdateCheck = 0720; 303 | LastUpgradeCheck = 0720; 304 | ORGANIZATIONNAME = CocoaPods; 305 | TargetAttributes = { 306 | 607FACCF1AFB9204008FA782 = { 307 | CreatedOnToolsVersion = 6.3.1; 308 | LastSwiftMigration = 0810; 309 | }; 310 | 607FACE41AFB9204008FA782 = { 311 | CreatedOnToolsVersion = 6.3.1; 312 | LastSwiftMigration = 0810; 313 | TestTargetID = 607FACCF1AFB9204008FA782; 314 | }; 315 | 9E24F9F91E7FC46C001AD0D7 = { 316 | CreatedOnToolsVersion = 8.2.1; 317 | DevelopmentTeam = L35WZWVC98; 318 | LastSwiftMigration = 0920; 319 | ProvisioningStyle = Automatic; 320 | }; 321 | }; 322 | }; 323 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "NetworkEye" */; 324 | compatibilityVersion = "Xcode 3.2"; 325 | developmentRegion = English; 326 | hasScannedForEncodings = 0; 327 | knownRegions = ( 328 | en, 329 | Base, 330 | ); 331 | mainGroup = 607FACC71AFB9204008FA782; 332 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 333 | projectDirPath = ""; 334 | projectRoot = ""; 335 | targets = ( 336 | 607FACCF1AFB9204008FA782 /* NetworkEye_Example */, 337 | 607FACE41AFB9204008FA782 /* NetworkEye_Tests */, 338 | 9E24F9F91E7FC46C001AD0D7 /* NetworkEye */, 339 | ); 340 | }; 341 | /* End PBXProject section */ 342 | 343 | /* Begin PBXResourcesBuildPhase section */ 344 | 607FACCE1AFB9204008FA782 /* Resources */ = { 345 | isa = PBXResourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | 9E24FAF31E817F68001AD0D7 /* NetworkEye.swift.podspec in Resources */, 349 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 350 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 351 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | 607FACE31AFB9204008FA782 /* Resources */ = { 356 | isa = PBXResourcesBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | ); 360 | runOnlyForDeploymentPostprocessing = 0; 361 | }; 362 | 9E24F9F81E7FC46C001AD0D7 /* Resources */ = { 363 | isa = PBXResourcesBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | ); 367 | runOnlyForDeploymentPostprocessing = 0; 368 | }; 369 | /* End PBXResourcesBuildPhase section */ 370 | 371 | /* Begin PBXShellScriptBuildPhase section */ 372 | 099BB149E9B1B9A91BCB6709 /* [CP] Embed Pods Frameworks */ = { 373 | isa = PBXShellScriptBuildPhase; 374 | buildActionMask = 2147483647; 375 | files = ( 376 | ); 377 | inputPaths = ( 378 | "${SRCROOT}/Pods/Target Support Files/Pods-NetworkEye_Example/Pods-NetworkEye_Example-frameworks.sh", 379 | "${BUILT_PRODUCTS_DIR}/AppSwizzle/AppSwizzle.framework", 380 | "${BUILT_PRODUCTS_DIR}/NetworkEye.swift/NetworkEye.framework", 381 | ); 382 | name = "[CP] Embed Pods Frameworks"; 383 | outputPaths = ( 384 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AppSwizzle.framework", 385 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/NetworkEye.framework", 386 | ); 387 | runOnlyForDeploymentPostprocessing = 0; 388 | shellPath = /bin/sh; 389 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-NetworkEye_Example/Pods-NetworkEye_Example-frameworks.sh\"\n"; 390 | showEnvVarsInLog = 0; 391 | }; 392 | 57524D40493C1A9DE16452BC /* [CP] Check Pods Manifest.lock */ = { 393 | isa = PBXShellScriptBuildPhase; 394 | buildActionMask = 2147483647; 395 | files = ( 396 | ); 397 | inputPaths = ( 398 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 399 | "${PODS_ROOT}/Manifest.lock", 400 | ); 401 | name = "[CP] Check Pods Manifest.lock"; 402 | outputPaths = ( 403 | "$(DERIVED_FILE_DIR)/Pods-NetworkEye_Example-checkManifestLockResult.txt", 404 | ); 405 | runOnlyForDeploymentPostprocessing = 0; 406 | shellPath = /bin/sh; 407 | 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"; 408 | showEnvVarsInLog = 0; 409 | }; 410 | 7EDF56C3F5DEA3BAE339D2C7 /* [CP] Check Pods Manifest.lock */ = { 411 | isa = PBXShellScriptBuildPhase; 412 | buildActionMask = 2147483647; 413 | files = ( 414 | ); 415 | inputPaths = ( 416 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 417 | "${PODS_ROOT}/Manifest.lock", 418 | ); 419 | name = "[CP] Check Pods Manifest.lock"; 420 | outputPaths = ( 421 | "$(DERIVED_FILE_DIR)/Pods-NetworkEye_Tests-checkManifestLockResult.txt", 422 | ); 423 | runOnlyForDeploymentPostprocessing = 0; 424 | shellPath = /bin/sh; 425 | 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"; 426 | showEnvVarsInLog = 0; 427 | }; 428 | 9E24FA0C1E7FC49F001AD0D7 /* ShellScript */ = { 429 | isa = PBXShellScriptBuildPhase; 430 | buildActionMask = 2147483647; 431 | files = ( 432 | ); 433 | inputPaths = ( 434 | "$(SRCROOT)/../Carthage/Build/iOS/AppSwizzle.framework", 435 | ); 436 | outputPaths = ( 437 | ); 438 | runOnlyForDeploymentPostprocessing = 0; 439 | shellPath = "/bin/sh "; 440 | shellScript = "/usr/local/bin/carthage copy-frameworks"; 441 | }; 442 | /* End PBXShellScriptBuildPhase section */ 443 | 444 | /* Begin PBXSourcesBuildPhase section */ 445 | 607FACCC1AFB9204008FA782 /* Sources */ = { 446 | isa = PBXSourcesBuildPhase; 447 | buildActionMask = 2147483647; 448 | files = ( 449 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 450 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 451 | ); 452 | runOnlyForDeploymentPostprocessing = 0; 453 | }; 454 | 607FACE11AFB9204008FA782 /* Sources */ = { 455 | isa = PBXSourcesBuildPhase; 456 | buildActionMask = 2147483647; 457 | files = ( 458 | 607FACEC1AFB9204008FA782 /* NetworkEyeTests.swift in Sources */, 459 | ); 460 | runOnlyForDeploymentPostprocessing = 0; 461 | }; 462 | 9E24F9F51E7FC46C001AD0D7 /* Sources */ = { 463 | isa = PBXSourcesBuildPhase; 464 | buildActionMask = 2147483647; 465 | files = ( 466 | 9E24FA0A1E7FC47E001AD0D7 /* URLSession+Eye.swift in Sources */, 467 | 9E24FA091E7FC47E001AD0D7 /* NetworkEye.swift in Sources */, 468 | 9E24FA081E7FC47E001AD0D7 /* EyeProtocol.swift in Sources */, 469 | ); 470 | runOnlyForDeploymentPostprocessing = 0; 471 | }; 472 | /* End PBXSourcesBuildPhase section */ 473 | 474 | /* Begin PBXTargetDependency section */ 475 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 476 | isa = PBXTargetDependency; 477 | target = 607FACCF1AFB9204008FA782 /* NetworkEye_Example */; 478 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 479 | }; 480 | /* End PBXTargetDependency section */ 481 | 482 | /* Begin PBXVariantGroup section */ 483 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 484 | isa = PBXVariantGroup; 485 | children = ( 486 | 607FACDA1AFB9204008FA782 /* Base */, 487 | ); 488 | name = Main.storyboard; 489 | sourceTree = ""; 490 | }; 491 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 492 | isa = PBXVariantGroup; 493 | children = ( 494 | 607FACDF1AFB9204008FA782 /* Base */, 495 | ); 496 | name = LaunchScreen.xib; 497 | sourceTree = ""; 498 | }; 499 | /* End PBXVariantGroup section */ 500 | 501 | /* Begin XCBuildConfiguration section */ 502 | 607FACED1AFB9204008FA782 /* Debug */ = { 503 | isa = XCBuildConfiguration; 504 | buildSettings = { 505 | ALWAYS_SEARCH_USER_PATHS = NO; 506 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 507 | CLANG_CXX_LIBRARY = "libc++"; 508 | CLANG_ENABLE_MODULES = YES; 509 | CLANG_ENABLE_OBJC_ARC = YES; 510 | CLANG_WARN_BOOL_CONVERSION = YES; 511 | CLANG_WARN_CONSTANT_CONVERSION = YES; 512 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 513 | CLANG_WARN_EMPTY_BODY = YES; 514 | CLANG_WARN_ENUM_CONVERSION = YES; 515 | CLANG_WARN_INT_CONVERSION = YES; 516 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 517 | CLANG_WARN_UNREACHABLE_CODE = YES; 518 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 519 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 520 | COPY_PHASE_STRIP = NO; 521 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 522 | ENABLE_STRICT_OBJC_MSGSEND = YES; 523 | ENABLE_TESTABILITY = YES; 524 | GCC_C_LANGUAGE_STANDARD = gnu99; 525 | GCC_DYNAMIC_NO_PIC = NO; 526 | GCC_NO_COMMON_BLOCKS = YES; 527 | GCC_OPTIMIZATION_LEVEL = 0; 528 | GCC_PREPROCESSOR_DEFINITIONS = ( 529 | "DEBUG=1", 530 | "$(inherited)", 531 | ); 532 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 533 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 534 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 535 | GCC_WARN_UNDECLARED_SELECTOR = YES; 536 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 537 | GCC_WARN_UNUSED_FUNCTION = YES; 538 | GCC_WARN_UNUSED_VARIABLE = YES; 539 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 540 | MTL_ENABLE_DEBUG_INFO = YES; 541 | ONLY_ACTIVE_ARCH = YES; 542 | SDKROOT = iphoneos; 543 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 544 | }; 545 | name = Debug; 546 | }; 547 | 607FACEE1AFB9204008FA782 /* Release */ = { 548 | isa = XCBuildConfiguration; 549 | buildSettings = { 550 | ALWAYS_SEARCH_USER_PATHS = NO; 551 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 552 | CLANG_CXX_LIBRARY = "libc++"; 553 | CLANG_ENABLE_MODULES = YES; 554 | CLANG_ENABLE_OBJC_ARC = YES; 555 | CLANG_WARN_BOOL_CONVERSION = YES; 556 | CLANG_WARN_CONSTANT_CONVERSION = YES; 557 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 558 | CLANG_WARN_EMPTY_BODY = YES; 559 | CLANG_WARN_ENUM_CONVERSION = YES; 560 | CLANG_WARN_INT_CONVERSION = YES; 561 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 562 | CLANG_WARN_UNREACHABLE_CODE = YES; 563 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 564 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 565 | COPY_PHASE_STRIP = NO; 566 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 567 | ENABLE_NS_ASSERTIONS = NO; 568 | ENABLE_STRICT_OBJC_MSGSEND = YES; 569 | GCC_C_LANGUAGE_STANDARD = gnu99; 570 | GCC_NO_COMMON_BLOCKS = YES; 571 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 572 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 573 | GCC_WARN_UNDECLARED_SELECTOR = YES; 574 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 575 | GCC_WARN_UNUSED_FUNCTION = YES; 576 | GCC_WARN_UNUSED_VARIABLE = YES; 577 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 578 | MTL_ENABLE_DEBUG_INFO = NO; 579 | SDKROOT = iphoneos; 580 | VALIDATE_PRODUCT = YES; 581 | }; 582 | name = Release; 583 | }; 584 | 607FACF01AFB9204008FA782 /* Debug */ = { 585 | isa = XCBuildConfiguration; 586 | baseConfigurationReference = F882F7C00A27B2F7998755D6 /* Pods-NetworkEye_Example.debug.xcconfig */; 587 | buildSettings = { 588 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 589 | INFOPLIST_FILE = NetworkEye/Info.plist; 590 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 591 | MODULE_NAME = ExampleApp; 592 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 593 | PRODUCT_NAME = "$(TARGET_NAME)"; 594 | SWIFT_VERSION = 4.0; 595 | }; 596 | name = Debug; 597 | }; 598 | 607FACF11AFB9204008FA782 /* Release */ = { 599 | isa = XCBuildConfiguration; 600 | baseConfigurationReference = F50399156AE7AD82AA49298B /* Pods-NetworkEye_Example.release.xcconfig */; 601 | buildSettings = { 602 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 603 | INFOPLIST_FILE = NetworkEye/Info.plist; 604 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 605 | MODULE_NAME = ExampleApp; 606 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 607 | PRODUCT_NAME = "$(TARGET_NAME)"; 608 | SWIFT_VERSION = 4.0; 609 | }; 610 | name = Release; 611 | }; 612 | 607FACF31AFB9204008FA782 /* Debug */ = { 613 | isa = XCBuildConfiguration; 614 | baseConfigurationReference = 3DFD45BBB9133D6E496FDA52 /* Pods-NetworkEye_Tests.debug.xcconfig */; 615 | buildSettings = { 616 | FRAMEWORK_SEARCH_PATHS = ( 617 | "$(SDKROOT)/Developer/Library/Frameworks", 618 | "$(inherited)", 619 | ); 620 | GCC_PREPROCESSOR_DEFINITIONS = ( 621 | "DEBUG=1", 622 | "$(inherited)", 623 | ); 624 | INFOPLIST_FILE = Tests/Info.plist; 625 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)"; 626 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 627 | PRODUCT_NAME = "$(TARGET_NAME)"; 628 | SWIFT_VERSION = 4.0; 629 | }; 630 | name = Debug; 631 | }; 632 | 607FACF41AFB9204008FA782 /* Release */ = { 633 | isa = XCBuildConfiguration; 634 | baseConfigurationReference = B44E08D635539770D577545B /* Pods-NetworkEye_Tests.release.xcconfig */; 635 | buildSettings = { 636 | FRAMEWORK_SEARCH_PATHS = ( 637 | "$(SDKROOT)/Developer/Library/Frameworks", 638 | "$(inherited)", 639 | ); 640 | INFOPLIST_FILE = Tests/Info.plist; 641 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)"; 642 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 643 | PRODUCT_NAME = "$(TARGET_NAME)"; 644 | SWIFT_VERSION = 4.0; 645 | }; 646 | name = Release; 647 | }; 648 | 9E24FA001E7FC46C001AD0D7 /* Debug */ = { 649 | isa = XCBuildConfiguration; 650 | buildSettings = { 651 | CLANG_ANALYZER_NONNULL = YES; 652 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 653 | CLANG_WARN_INFINITE_RECURSION = YES; 654 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 655 | CODE_SIGN_IDENTITY = ""; 656 | CURRENT_PROJECT_VERSION = 1; 657 | DEBUG_INFORMATION_FORMAT = dwarf; 658 | DEFINES_MODULE = YES; 659 | DEVELOPMENT_TEAM = L35WZWVC98; 660 | DYLIB_COMPATIBILITY_VERSION = 1; 661 | DYLIB_CURRENT_VERSION = 1; 662 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 663 | FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../Carthage/Build/iOS/**"; 664 | INFOPLIST_FILE = NetworkEye/Info.plist; 665 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 666 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 667 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 668 | LIBRARY_SEARCH_PATHS = ""; 669 | PRODUCT_BUNDLE_IDENTIFIER = com.zixun.NetworkEye; 670 | PRODUCT_NAME = "$(TARGET_NAME)"; 671 | SKIP_INSTALL = YES; 672 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 673 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 674 | SWIFT_VERSION = 4.0; 675 | TARGETED_DEVICE_FAMILY = "1,2"; 676 | VERSIONING_SYSTEM = "apple-generic"; 677 | VERSION_INFO_PREFIX = ""; 678 | }; 679 | name = Debug; 680 | }; 681 | 9E24FA011E7FC46C001AD0D7 /* Release */ = { 682 | isa = XCBuildConfiguration; 683 | buildSettings = { 684 | CLANG_ANALYZER_NONNULL = YES; 685 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 686 | CLANG_WARN_INFINITE_RECURSION = YES; 687 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 688 | CODE_SIGN_IDENTITY = ""; 689 | CURRENT_PROJECT_VERSION = 1; 690 | DEFINES_MODULE = YES; 691 | DEVELOPMENT_TEAM = L35WZWVC98; 692 | DYLIB_COMPATIBILITY_VERSION = 1; 693 | DYLIB_CURRENT_VERSION = 1; 694 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 695 | FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../Carthage/Build/iOS/**"; 696 | INFOPLIST_FILE = NetworkEye/Info.plist; 697 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 698 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 699 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 700 | LIBRARY_SEARCH_PATHS = ""; 701 | PRODUCT_BUNDLE_IDENTIFIER = com.zixun.NetworkEye; 702 | PRODUCT_NAME = "$(TARGET_NAME)"; 703 | SKIP_INSTALL = YES; 704 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 705 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 706 | SWIFT_VERSION = 4.0; 707 | TARGETED_DEVICE_FAMILY = "1,2"; 708 | VERSIONING_SYSTEM = "apple-generic"; 709 | VERSION_INFO_PREFIX = ""; 710 | }; 711 | name = Release; 712 | }; 713 | /* End XCBuildConfiguration section */ 714 | 715 | /* Begin XCConfigurationList section */ 716 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "NetworkEye" */ = { 717 | isa = XCConfigurationList; 718 | buildConfigurations = ( 719 | 607FACED1AFB9204008FA782 /* Debug */, 720 | 607FACEE1AFB9204008FA782 /* Release */, 721 | ); 722 | defaultConfigurationIsVisible = 0; 723 | defaultConfigurationName = Release; 724 | }; 725 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "NetworkEye_Example" */ = { 726 | isa = XCConfigurationList; 727 | buildConfigurations = ( 728 | 607FACF01AFB9204008FA782 /* Debug */, 729 | 607FACF11AFB9204008FA782 /* Release */, 730 | ); 731 | defaultConfigurationIsVisible = 0; 732 | defaultConfigurationName = Release; 733 | }; 734 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "NetworkEye_Tests" */ = { 735 | isa = XCConfigurationList; 736 | buildConfigurations = ( 737 | 607FACF31AFB9204008FA782 /* Debug */, 738 | 607FACF41AFB9204008FA782 /* Release */, 739 | ); 740 | defaultConfigurationIsVisible = 0; 741 | defaultConfigurationName = Release; 742 | }; 743 | 9E24F9FF1E7FC46C001AD0D7 /* Build configuration list for PBXNativeTarget "NetworkEye" */ = { 744 | isa = XCConfigurationList; 745 | buildConfigurations = ( 746 | 9E24FA001E7FC46C001AD0D7 /* Debug */, 747 | 9E24FA011E7FC46C001AD0D7 /* Release */, 748 | ); 749 | defaultConfigurationIsVisible = 0; 750 | defaultConfigurationName = Release; 751 | }; 752 | /* End XCConfigurationList section */ 753 | }; 754 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 755 | } 756 | -------------------------------------------------------------------------------- /Example/NetworkEye.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/NetworkEye.xcodeproj/project.xcworkspace/xcshareddata/NetworkEye.xcscmblueprint: -------------------------------------------------------------------------------- 1 | { 2 | "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "D59A67FE6CA170C15FD7BFC20A431E042F4DA650", 3 | "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { 4 | 5 | }, 6 | "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { 7 | "D59A67FE6CA170C15FD7BFC20A431E042F4DA650" : 9223372036854775807, 8 | "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" : 9223372036854775807 9 | }, 10 | "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "4A406088-E56E-46E9-AADA-9C8F4B62E982", 11 | "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { 12 | "D59A67FE6CA170C15FD7BFC20A431E042F4DA650" : "NetworkEye\/", 13 | "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" : "..\/.." 14 | }, 15 | "DVTSourceControlWorkspaceBlueprintNameKey" : "NetworkEye", 16 | "DVTSourceControlWorkspaceBlueprintVersion" : 204, 17 | "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "Example\/NetworkEye.xcodeproj", 18 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ 19 | { 20 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "git.oschina.net:zixunapp\/AppSaber-MAC.git", 21 | "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", 22 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" 23 | }, 24 | { 25 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "github.com:zixun\/NetworkEye.git", 26 | "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", 27 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "D59A67FE6CA170C15FD7BFC20A431E042F4DA650" 28 | } 29 | ] 30 | } -------------------------------------------------------------------------------- /Example/NetworkEye.xcodeproj/xcshareddata/xcschemes/NetworkEye-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Example/NetworkEye.xcodeproj/xcshareddata/xcschemes/NetworkEye.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Example/NetworkEye.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/NetworkEye.xcworkspace/xcshareddata/NetworkEye.xcscmblueprint: -------------------------------------------------------------------------------- 1 | { 2 | "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "D59A67FE6CA170C15FD7BFC20A431E042F4DA650", 3 | "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { 4 | 5 | }, 6 | "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { 7 | "D59A67FE6CA170C15FD7BFC20A431E042F4DA650" : 9223372036854775807, 8 | "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" : 9223372036854775807 9 | }, 10 | "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "ED28BAF9-68A9-49D5-B497-F7E8651AA86D", 11 | "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { 12 | "D59A67FE6CA170C15FD7BFC20A431E042F4DA650" : "NetworkEye\/", 13 | "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" : "..\/.." 14 | }, 15 | "DVTSourceControlWorkspaceBlueprintNameKey" : "NetworkEye", 16 | "DVTSourceControlWorkspaceBlueprintVersion" : 204, 17 | "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "Example\/NetworkEye.xcworkspace", 18 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ 19 | { 20 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "git.oschina.net:zixunapp\/AppSaber-MAC.git", 21 | "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", 22 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" 23 | }, 24 | { 25 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "github.com:zixun\/NetworkEye.git", 26 | "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", 27 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "D59A67FE6CA170C15FD7BFC20A431E042F4DA650" 28 | } 29 | ] 30 | } -------------------------------------------------------------------------------- /Example/NetworkEye/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // NetworkEye 4 | // 5 | // Created by zixun on 12/25/2016. 6 | // Copyright (c) 2016 zixun. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/NetworkEye/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/NetworkEye/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 | -------------------------------------------------------------------------------- /Example/NetworkEye/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/NetworkEye/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 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/NetworkEye/NetworkEye.h: -------------------------------------------------------------------------------- 1 | // 2 | // NetworkEye.h 3 | // NetworkEye 4 | // 5 | // Created by zixun on 2017/3/20. 6 | // Copyright © 2017年 CocoaPods. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for NetworkEye. 12 | FOUNDATION_EXPORT double NetworkEyeVersionNumber; 13 | 14 | //! Project version string for NetworkEye. 15 | FOUNDATION_EXPORT const unsigned char NetworkEyeVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Example/NetworkEye/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // NetworkEye 4 | // 5 | // Created by zixun on 12/25/2016. 6 | // Copyright (c) 2016 zixun. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import NetworkEye 11 | 12 | class ViewController: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | // Do any additional setup after loading the view, typically from a nib. 17 | } 18 | 19 | override func didReceiveMemoryWarning() { 20 | super.didReceiveMemoryWarning() 21 | // Dispose of any resources that can be recreated. 22 | } 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'NetworkEye_Example' do 4 | pod 'NetworkEye.swift', :path => '../' 5 | 6 | target 'NetworkEye_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AppSwizzle (1.3.1) 3 | - NetworkEye.swift (1.2.0): 4 | - AppSwizzle (~> 1.3.1) 5 | 6 | DEPENDENCIES: 7 | - NetworkEye.swift (from `../`) 8 | 9 | SPEC REPOS: 10 | https://github.com/CocoaPods/Specs.git: 11 | - AppSwizzle 12 | 13 | EXTERNAL SOURCES: 14 | NetworkEye.swift: 15 | :path: "../" 16 | 17 | SPEC CHECKSUMS: 18 | AppSwizzle: db36e436f56110d93e5ae0147683435df593cabc 19 | NetworkEye.swift: 23f9f48f42261cbb42e4165e5339efa655ee96c1 20 | 21 | PODFILE CHECKSUM: fb21f5492104a96e2a848f861b53aa7335fe9ded 22 | 23 | COCOAPODS: 1.5.0 24 | -------------------------------------------------------------------------------- /Example/Tests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/NetworkEyeTests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import NetworkEye 4 | 5 | class NetworkEyeTests: XCTestCase, NetworkEyeDelegate { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | NetworkEye.add(observer: self) 10 | } 11 | 12 | override func tearDown() { 13 | NetworkEye.remove(observer: self) 14 | super.tearDown() 15 | } 16 | 17 | //MARK: Test Case 18 | func testConnection() { 19 | self.expectation = self.expectation(description: "testConnection") 20 | 21 | let data = try! NSURLConnection.sendSynchronousRequest(request, returning: nil) 22 | print(data) 23 | 24 | self.waitForExpectations(timeout: 4) { (error:Error?) in 25 | if (error != nil) { 26 | XCTFail("Expectation Failed with error: \(error)") 27 | } 28 | } 29 | } 30 | 31 | func testSession() { 32 | self.expectation = self.expectation(description: "testConfigurationSession") 33 | 34 | let session = URLSession.shared 35 | URLSession.shared.dataTask(with: self.request) 36 | let task = session.dataTask(with: self.request) { (data:Data?, response:URLResponse?, error:Error?) in 37 | print(response) 38 | } 39 | task.resume() 40 | 41 | self.waitForExpectations(timeout: 4) { (error:Error?) in 42 | if (error != nil) { 43 | XCTFail("Expectation Failed with error: \(error)") 44 | } 45 | } 46 | } 47 | 48 | func testConfigurationSession() { 49 | self.expectation = self.expectation(description: "testConfigurationSession") 50 | 51 | let configure = URLSessionConfiguration.default 52 | let session = URLSession(configuration: configure, 53 | delegate: nil, 54 | delegateQueue: OperationQueue.current) 55 | let task = session.dataTask(with: self.request) { (data:Data?, response:URLResponse?, error:Error?) in 56 | print(response) 57 | } 58 | task.resume() 59 | 60 | self.waitForExpectations(timeout: 4) { (error:Error?) in 61 | if (error != nil) { 62 | XCTFail("Expectation Failed with error: \(error)") 63 | } 64 | } 65 | } 66 | 67 | func networkEyeDidCatch(with request:URLRequest?,response:URLResponse?,data:Data?) { 68 | XCTAssert(true, "Pass") 69 | self.expectation?.fulfill() 70 | } 71 | 72 | //MARK: Private var 73 | private lazy var request: URLRequest = { 74 | let urlString = "https://api.github.com/search/users?q=language:objective-c&sort=followers&order=desc" 75 | let url = URL(string: urlString) 76 | return URLRequest(url: url!) 77 | }() 78 | 79 | private var expectation:XCTestExpectation? 80 | 81 | } 82 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 陈奕龙(子循) 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 | -------------------------------------------------------------------------------- /NetworkEye.swift.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint NetworkEye.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'NetworkEye.swift' 11 | s.version = '1.2.0' 12 | s.summary = 'NetworkEye is a network monitor,automatic catch the request and response infomation of all kinds of request send.' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | NetworkEye is a network monitor,automatic catch the request and response infomation of all kinds of request send.. 22 | DESC 23 | 24 | s.module_name = 'NetworkEye' 25 | s.homepage = 'https://github.com/zixun/NetworkEye' 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { 'zixun' => 'chenyl.exe@gmail.com' } 28 | s.source = { :git => 'https://github.com/zixun/NetworkEye.git', :tag => s.version.to_s } 29 | s.social_media_url = 'https://twitter.com/zixun_' 30 | 31 | s.ios.deployment_target = '8.0' 32 | 33 | s.source_files = 'NetworkEye/Classes/**/*' 34 | s.dependency 'AppSwizzle', '~> 1.3.1' 35 | end 36 | -------------------------------------------------------------------------------- /NetworkEye/Classes/EyeProtocol.swift: -------------------------------------------------------------------------------- 1 | // 2 | // EyeProtocol.swift 3 | // Pods 4 | // 5 | // Created by zixun on 16/12/25. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | 12 | 13 | class EyeProtocol: URLProtocol { 14 | 15 | class func open() { 16 | URLProtocol.registerClass(self.classForCoder()) 17 | } 18 | 19 | class func close() { 20 | URLProtocol.unregisterClass(self.classForCoder()) 21 | } 22 | 23 | open class func add(delegate:NetworkEyeDelegate) { 24 | // delete null week delegate 25 | self.delegates = self.delegates.filter { 26 | return $0.delegate != nil 27 | } 28 | 29 | // judge if contains the delegate from parameter 30 | let contains = self.delegates.contains { 31 | return $0.delegate?.hash == delegate.hash 32 | } 33 | // if not contains, append it with weak wrapped 34 | if contains == false { 35 | let week = WeakNetworkEyeDelegate(delegate: delegate) 36 | 37 | self.delegates.append(week) 38 | } 39 | } 40 | 41 | open class func remove(delegate:NetworkEyeDelegate) { 42 | self.delegates = self.delegates.filter { 43 | // filter null weak delegate 44 | return $0.delegate != nil 45 | }.filter { 46 | // filter the delegate from parameter 47 | return $0.delegate?.hash != delegate.hash 48 | } 49 | } 50 | 51 | fileprivate var connection: NSURLConnection? 52 | 53 | fileprivate var ca_request: URLRequest? 54 | fileprivate var ca_response: URLResponse? 55 | fileprivate var ca_data:Data? 56 | 57 | fileprivate static let AppNetworkGreenCard = "AppNetworkGreenCard" 58 | 59 | private(set) static var delegates = [WeakNetworkEyeDelegate]() 60 | 61 | } 62 | 63 | extension EyeProtocol { 64 | override class func canInit(with request: URLRequest) -> Bool { 65 | 66 | guard let scheme = request.url?.scheme else { 67 | return false 68 | } 69 | 70 | guard scheme == "http" || scheme == "https" else { 71 | return false 72 | } 73 | 74 | guard URLProtocol.property(forKey: AppNetworkGreenCard, in: request) == nil else { 75 | return false 76 | } 77 | 78 | return true 79 | } 80 | 81 | override class func canonicalRequest(for request: URLRequest) -> URLRequest { 82 | 83 | let req = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest 84 | URLProtocol.setProperty(true, forKey: AppNetworkGreenCard, in: req) 85 | return req.copy() as! URLRequest 86 | } 87 | 88 | override func startLoading() { 89 | let request = EyeProtocol.canonicalRequest(for: self.request) 90 | self.connection = NSURLConnection(request: request, delegate: self, startImmediately: true) 91 | 92 | self.ca_request = self.request 93 | } 94 | 95 | override func stopLoading() { 96 | self.connection?.cancel() 97 | for element in EyeProtocol.delegates { 98 | element.delegate?.networkEyeDidCatch(with: self.ca_request, response: self.ca_response, data: self.ca_data) 99 | } 100 | } 101 | } 102 | 103 | extension EyeProtocol: NSURLConnectionDelegate { 104 | func connection(_ connection: NSURLConnection, didFailWithError error: Error) { 105 | self.client?.urlProtocol(self, didFailWithError: error) 106 | } 107 | 108 | func connectionShouldUseCredentialStorage(_ connection: NSURLConnection) -> Bool { 109 | return true 110 | } 111 | 112 | func connection(_ connection: NSURLConnection, didReceive challenge: URLAuthenticationChallenge) { 113 | self.client?.urlProtocol(self, didReceive: challenge) 114 | } 115 | 116 | func connection(_ connection: NSURLConnection, didCancel challenge: URLAuthenticationChallenge) { 117 | self.client?.urlProtocol(self, didCancel: challenge) 118 | } 119 | } 120 | 121 | extension EyeProtocol: NSURLConnectionDataDelegate { 122 | 123 | func connection(_ connection: NSURLConnection, willSend request: URLRequest, redirectResponse response: URLResponse?) -> URLRequest? { 124 | if response != nil { 125 | self.ca_response = response 126 | self.client?.urlProtocol(self, wasRedirectedTo: request, redirectResponse: response!) 127 | } 128 | return request 129 | } 130 | 131 | func connection(_ connection: NSURLConnection, didReceive response: URLResponse) { 132 | self.client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: URLCache.StoragePolicy.allowed) 133 | self.ca_response = response 134 | } 135 | 136 | func connection(_ connection: NSURLConnection, didReceive data: Data) { 137 | self.client?.urlProtocol(self, didLoad: data) 138 | if self.ca_data == nil { 139 | self.ca_data = data 140 | }else { 141 | self.ca_data!.append(data) 142 | } 143 | } 144 | 145 | func connection(_ connection: NSURLConnection, willCacheResponse cachedResponse: CachedURLResponse) -> CachedURLResponse? { 146 | return cachedResponse 147 | } 148 | 149 | func connectionDidFinishLoading(_ connection: NSURLConnection) { 150 | self.client?.urlProtocolDidFinishLoading(self) 151 | } 152 | } 153 | -------------------------------------------------------------------------------- /NetworkEye/Classes/NetworkEye.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NetworkEye.swift 3 | // Pods 4 | // 5 | // Created by zixun on 16/12/26. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | public protocol NetworkEyeDelegate: NSObjectProtocol { 12 | func networkEyeDidCatch(with request:URLRequest?,response:URLResponse?,data:Data?) 13 | } 14 | 15 | class WeakNetworkEyeDelegate: NSObject { 16 | weak var delegate : NetworkEyeDelegate? 17 | init (delegate: NetworkEyeDelegate) { 18 | super.init() 19 | self.delegate = delegate 20 | } 21 | } 22 | 23 | 24 | open class NetworkEye: NSObject { 25 | 26 | open static var isWatching: Bool { 27 | get { 28 | return EyeProtocol.delegates.count > 0 29 | } 30 | } 31 | 32 | open class func add(observer:NetworkEyeDelegate) { 33 | if EyeProtocol.delegates.count == 0 { 34 | EyeProtocol.open() 35 | URLSession.open() 36 | } 37 | EyeProtocol.add(delegate: observer) 38 | } 39 | 40 | open class func remove(observer:NetworkEyeDelegate) { 41 | EyeProtocol.remove(delegate: observer) 42 | if EyeProtocol.delegates.count == 0 { 43 | EyeProtocol.close() 44 | URLSession.close() 45 | } 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /NetworkEye/Classes/URLSession+Eye.swift: -------------------------------------------------------------------------------- 1 | // 2 | // URLSession+Eye.swift 3 | // Pods 4 | // 5 | // Created by zixun on 16/12/26. 6 | // 7 | // 8 | 9 | import Foundation 10 | import AppSwizzle 11 | 12 | extension URLSession { 13 | @objc convenience init(configurationMonitor: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?) { 14 | 15 | if configurationMonitor.protocolClasses != nil { 16 | configurationMonitor.protocolClasses!.insert(EyeProtocol.classForCoder(), at: 0) 17 | }else { 18 | configurationMonitor.protocolClasses = [EyeProtocol.classForCoder()] 19 | } 20 | 21 | self.init(configurationMonitor: configurationMonitor, delegate: delegate, delegateQueue: queue) 22 | } 23 | 24 | class func open() { 25 | if self.isSwizzled == false && self.hook() == .Succeed { 26 | self.isSwizzled = true 27 | }else { 28 | print("[NetworkEye] already started or hook failure") 29 | } 30 | } 31 | 32 | class func close() { 33 | if self.isSwizzled == true && self.hook() == .Succeed { 34 | self.isSwizzled = false 35 | }else { 36 | print("[NetworkEye] already stoped or hook failure") 37 | } 38 | } 39 | 40 | 41 | private class func hook() -> SwizzleResult { 42 | // let orig = #selector(URLSession.init(configuration:delegate:delegateQueue:)) 43 | // the result is sessionWithConfiguration:delegate:delegateQueue: which runtime can't find it 44 | 45 | let orig = Selector("initWithConfiguration:delegate:delegateQueue:") 46 | let alter = #selector(URLSession.init(configurationMonitor:delegate:delegateQueue:)) 47 | let result = URLSession.swizzleInstanceMethod(origSelector: orig, toAlterSelector: alter) 48 | return result 49 | } 50 | 51 | 52 | 53 | private static var isSwizzled:Bool { 54 | set{ 55 | objc_setAssociatedObject(self, &key.isSwizzled, isSwizzled, .OBJC_ASSOCIATION_ASSIGN); 56 | } 57 | get{ 58 | let result = objc_getAssociatedObject(self, &key.isSwizzled) as? Bool 59 | if result == nil { 60 | return false 61 | } 62 | return result! 63 | } 64 | } 65 | 66 | private struct key { 67 | static var isSwizzled: Character = "c" 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NetworkEye 2 | 3 | [![License](https://img.shields.io/cocoapods/l/NetworkEye.svg?style=flat)](http://cocoapods.org/pods/NetworkEye) 4 | [![Platform](https://img.shields.io/cocoapods/p/NetworkEye.svg?style=flat)](http://cocoapods.org/pods/NetworkEye) 5 | [![Carthage compatible](https://img.shields.io/badge/Carthage-Compatible-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage) 6 | 7 | NetworkEye is a network monitor,automatic catch the request and response infomation of all kinds of request send 8 | 9 | ## Family 10 | This library is derived from the [GodEye](https://github.com/zixun/GodEye) project which can automaticly display Log,Crash,Network,ANR,Leak,CPU,RAM,FPS,NetFlow,Folder and etc with one line of code. Just like god opened his eyes 11 | 12 | ## Book & Principle 13 | 14 | **I has wrote a book named [《iOS监控编程》](https://www.qingdan.us/product/25),each chapter records the course function of the implementation details and the way to explore.sorry for english friends,this book wrote by chineses.** 15 | 16 | ## Example 17 | 18 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 19 | 20 | ## Usage 21 | 22 | add observer: 23 | 24 | ```swift 25 | NetworkEye.add(observer: self) 26 | ``` 27 | implement the observer delegate: 28 | 29 | ```swift 30 | func networkEyeDidCatch(with request:URLRequest?,response:URLResponse?,data:Data?) { 31 | XCTAssert(true, "Pass") 32 | } 33 | ``` 34 | 35 | 36 | 37 | ## Installation 38 | 39 | ### CocoaPods 40 | NetworkEye is available through [CocoaPods](http://cocoapods.org). To install 41 | it, simply add the following line to your Podfile: 42 | 43 | ```ruby 44 | pod "NetworkEye" 45 | ``` 46 | ### Carthage 47 | Or, if you’re using [Carthage](https://github.com/Carthage/Carthage), add NetworkEye to your Cartfile: 48 | 49 | ``` 50 | github "zixun/NetworkEye" 51 | ``` 52 | 53 | ## Author 54 | 55 | name: 陈奕龙 56 | 57 | twitter: [@zixun_](https://twitter.com/zixun_) 58 | 59 | email: chenyl.exe@gmail.com 60 | 61 | github: [zixun](https://github.com/zixun) 62 | 63 | blog: [子循(SubCycle)](http://zixun.github.io/) 64 | 65 | ## License 66 | 67 | NetworkEye is available under the MIT license. See the LICENSE file for more info. 68 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------