├── .gitignore ├── .swift-version ├── CrashEye.podspec ├── CrashEye └── Classes │ └── CrashEye.swift ├── Example ├── CrashEye.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── CrashEye.xcscmblueprint │ └── xcshareddata │ │ └── xcschemes │ │ ├── CrashEye-Example.xcscheme │ │ └── CrashEye.xcscheme ├── CrashEye.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── CrashEye.xcscmblueprint ├── CrashEye │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── CrashEye.h │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── 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 | -------------------------------------------------------------------------------- /CrashEye.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint CrashEye.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 = 'CrashEye' 11 | s.version = '1.2.0' 12 | s.summary = 'CrashEye is an ios crash monitor,automatic catch exception crash & signal crash and return the stacktrace.' 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 | CrashEye is an ios crash monitor,automatic catch exception crash & signal crash and return the crash stacktrace. 22 | DESC 23 | 24 | s.homepage = 'https://github.com/zixun/CrashEye' 25 | s.license = { :type => 'MIT', :file => 'LICENSE' } 26 | s.author = { 'zixun' => 'chenyl.exe@gmail.com' } 27 | s.source = { :git => 'https://github.com/zixun/CrashEye.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 = 'CrashEye/Classes/**/*' 33 | end 34 | -------------------------------------------------------------------------------- /CrashEye/Classes/CrashEye.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CrashEye.swift 3 | // Pods 4 | // 5 | // Created by zixun on 16/12/23. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | //-------------------------------------------------------------------------- 12 | // MARK: - CrashEyeDelegate 13 | //-------------------------------------------------------------------------- 14 | public protocol CrashEyeDelegate: NSObjectProtocol { 15 | func crashEyeDidCatchCrash(with model:CrashModel) 16 | } 17 | 18 | //-------------------------------------------------------------------------- 19 | // MARK: - WeakCrashEyeDelegate 20 | //-------------------------------------------------------------------------- 21 | class WeakCrashEyeDelegate: NSObject { 22 | weak var delegate: CrashEyeDelegate? 23 | 24 | init(delegate: CrashEyeDelegate) { 25 | super.init() 26 | self.delegate = delegate 27 | } 28 | } 29 | 30 | //-------------------------------------------------------------------------- 31 | // MARK: - CrashModelType 32 | //-------------------------------------------------------------------------- 33 | public enum CrashModelType:Int { 34 | case signal = 1 35 | case exception = 2 36 | } 37 | 38 | //-------------------------------------------------------------------------- 39 | // MARK: - CrashModel 40 | //-------------------------------------------------------------------------- 41 | open class CrashModel: NSObject { 42 | 43 | open var type: CrashModelType! 44 | open var name: String! 45 | open var reason: String! 46 | open var appinfo: String! 47 | open var callStack: String! 48 | 49 | init(type:CrashModelType, 50 | name:String, 51 | reason:String, 52 | appinfo:String, 53 | callStack:String) { 54 | super.init() 55 | self.type = type 56 | self.name = name 57 | self.reason = reason 58 | self.appinfo = appinfo 59 | self.callStack = callStack 60 | } 61 | } 62 | 63 | //-------------------------------------------------------------------------- 64 | // MARK: - GLOBAL VARIABLE 65 | //-------------------------------------------------------------------------- 66 | private var app_old_exceptionHandler:(@convention(c) (NSException) -> Swift.Void)? = nil 67 | 68 | //-------------------------------------------------------------------------- 69 | // MARK: - CrashEye 70 | //-------------------------------------------------------------------------- 71 | public class CrashEye: NSObject { 72 | 73 | //-------------------------------------------------------------------------- 74 | // MARK: OPEN PROPERTY 75 | //-------------------------------------------------------------------------- 76 | public private(set) static var isOpen: Bool = false 77 | 78 | //-------------------------------------------------------------------------- 79 | // MARK: OPEN FUNCTION 80 | //-------------------------------------------------------------------------- 81 | open class func add(delegate:CrashEyeDelegate) { 82 | // delete null week delegate 83 | self.delegates = self.delegates.filter { 84 | return $0.delegate != nil 85 | } 86 | 87 | // judge if contains the delegate from parameter 88 | let contains = self.delegates.contains { 89 | return $0.delegate?.hash == delegate.hash 90 | } 91 | // if not contains, append it with weak wrapped 92 | if contains == false { 93 | let week = WeakCrashEyeDelegate(delegate: delegate) 94 | self.delegates.append(week) 95 | } 96 | 97 | if self.delegates.count > 0 { 98 | self.open() 99 | } 100 | } 101 | 102 | open class func remove(delegate:CrashEyeDelegate) { 103 | self.delegates = self.delegates.filter { 104 | // filter null weak delegate 105 | return $0.delegate != nil 106 | }.filter { 107 | // filter the delegate from parameter 108 | return $0.delegate?.hash != delegate.hash 109 | } 110 | 111 | if self.delegates.count == 0 { 112 | self.close() 113 | } 114 | } 115 | 116 | //-------------------------------------------------------------------------- 117 | // MARK: PRIVATE FUNCTION 118 | //-------------------------------------------------------------------------- 119 | private class func open() { 120 | guard self.isOpen == false else { 121 | return 122 | } 123 | CrashEye.isOpen = true 124 | 125 | app_old_exceptionHandler = NSGetUncaughtExceptionHandler() 126 | NSSetUncaughtExceptionHandler(CrashEye.RecieveException) 127 | self.setCrashSignalHandler() 128 | } 129 | 130 | private class func close() { 131 | guard self.isOpen == true else { 132 | return 133 | } 134 | CrashEye.isOpen = false 135 | NSSetUncaughtExceptionHandler(app_old_exceptionHandler) 136 | } 137 | 138 | private class func setCrashSignalHandler(){ 139 | signal(SIGABRT, CrashEye.RecieveSignal) 140 | signal(SIGILL, CrashEye.RecieveSignal) 141 | signal(SIGSEGV, CrashEye.RecieveSignal) 142 | signal(SIGFPE, CrashEye.RecieveSignal) 143 | signal(SIGBUS, CrashEye.RecieveSignal) 144 | signal(SIGPIPE, CrashEye.RecieveSignal) 145 | //http://stackoverflow.com/questions/36325140/how-to-catch-a-swift-crash-and-do-some-logging 146 | signal(SIGTRAP, CrashEye.RecieveSignal) 147 | } 148 | 149 | private static let RecieveException: @convention(c) (NSException) -> Swift.Void = { 150 | (exteption) -> Void in 151 | if (app_old_exceptionHandler != nil) { 152 | app_old_exceptionHandler!(exteption); 153 | } 154 | 155 | guard CrashEye.isOpen == true else { 156 | return 157 | } 158 | 159 | let callStack = exteption.callStackSymbols.joined(separator: "\r") 160 | let reason = exteption.reason ?? "" 161 | let name = exteption.name 162 | let appinfo = CrashEye.appInfo() 163 | 164 | 165 | let model = CrashModel(type:CrashModelType.exception, 166 | name:name.rawValue, 167 | reason:reason, 168 | appinfo:appinfo, 169 | callStack:callStack) 170 | for delegate in CrashEye.delegates { 171 | delegate.delegate?.crashEyeDidCatchCrash(with: model) 172 | } 173 | } 174 | 175 | private static let RecieveSignal : @convention(c) (Int32) -> Void = { 176 | (signal) -> Void in 177 | 178 | guard CrashEye.isOpen == true else { 179 | return 180 | } 181 | 182 | var stack = Thread.callStackSymbols 183 | stack.removeFirst(2) 184 | let callStack = stack.joined(separator: "\r") 185 | let reason = "Signal \(CrashEye.name(of: signal))(\(signal)) was raised.\n" 186 | let appinfo = CrashEye.appInfo() 187 | 188 | let model = CrashModel(type:CrashModelType.signal, 189 | name:CrashEye.name(of: signal), 190 | reason:reason, 191 | appinfo:appinfo, 192 | callStack:callStack) 193 | 194 | for delegate in CrashEye.delegates { 195 | delegate.delegate?.crashEyeDidCatchCrash(with: model) 196 | } 197 | 198 | CrashEye.killApp() 199 | } 200 | 201 | private class func appInfo() -> String { 202 | let displayName = Bundle.main.object(forInfoDictionaryKey: "CFBundleName") ?? "" 203 | let shortVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") ?? "" 204 | let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") ?? "" 205 | let deviceModel = UIDevice.current.model 206 | let systemName = UIDevice.current.systemName 207 | let systemVersion = UIDevice.current.systemVersion 208 | return "App: \(displayName) \(shortVersion)(\(version))\n" + 209 | "Device:\(deviceModel)\n" + "OS Version:\(systemName) \(systemVersion)" 210 | } 211 | 212 | 213 | private class func name(of signal:Int32) -> String { 214 | switch (signal) { 215 | case SIGABRT: 216 | return "SIGABRT" 217 | case SIGILL: 218 | return "SIGILL" 219 | case SIGSEGV: 220 | return "SIGSEGV" 221 | case SIGFPE: 222 | return "SIGFPE" 223 | case SIGBUS: 224 | return "SIGBUS" 225 | case SIGPIPE: 226 | return "SIGPIPE" 227 | default: 228 | return "OTHER" 229 | } 230 | } 231 | 232 | private class func killApp(){ 233 | NSSetUncaughtExceptionHandler(nil) 234 | 235 | signal(SIGABRT, SIG_DFL) 236 | signal(SIGILL, SIG_DFL) 237 | signal(SIGSEGV, SIG_DFL) 238 | signal(SIGFPE, SIG_DFL) 239 | signal(SIGBUS, SIG_DFL) 240 | signal(SIGPIPE, SIG_DFL) 241 | 242 | kill(getpid(), SIGKILL) 243 | } 244 | 245 | //-------------------------------------------------------------------------- 246 | // MARK: PRIVATE PROPERTY 247 | //-------------------------------------------------------------------------- 248 | fileprivate static var delegates = [WeakCrashEyeDelegate]() 249 | } 250 | -------------------------------------------------------------------------------- /Example/CrashEye.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 30D65D6E9BCAFB2037A8F719 /* Pods_CrashEye_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FBFBA31818B946FCA08DB0E7 /* Pods_CrashEye_Tests.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 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | 9E24FA6B1E810ADC001AD0D7 /* CrashEye.h in Headers */ = {isa = PBXBuildFile; fileRef = 9E24FA691E810ADC001AD0D7 /* CrashEye.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | 9E24FA771E810AE7001AD0D7 /* CrashEye.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9E24FA741E810AE7001AD0D7 /* CrashEye.swift */; }; 19 | AAB8106104EFCA27495FABB1 /* Pods_CrashEye_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B123EE73DD3EAEAE0F3956BD /* Pods_CrashEye_Example.framework */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 28 | remoteInfo = CrashEye; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 607FACD01AFB9204008FA782 /* CrashEye_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CrashEye_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 35 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 36 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 37 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 38 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 39 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 40 | 607FACE51AFB9204008FA782 /* CrashEye_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CrashEye_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 43 | 6414DE440A0BED3968574E13 /* Pods-CrashEye_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CrashEye_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-CrashEye_Example/Pods-CrashEye_Example.release.xcconfig"; sourceTree = ""; }; 44 | 89DA72A5867BF7F7001C5EF1 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 45 | 932D8ED2DBB67EC0A8ACF584 /* Pods-CrashEye_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CrashEye_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CrashEye_Example/Pods-CrashEye_Example.debug.xcconfig"; sourceTree = ""; }; 46 | 9E24FA671E810ADC001AD0D7 /* CrashEye.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CrashEye.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 9E24FA691E810ADC001AD0D7 /* CrashEye.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CrashEye.h; sourceTree = ""; }; 48 | 9E24FA6A1E810ADC001AD0D7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 9E24FA741E810AE7001AD0D7 /* CrashEye.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CrashEye.swift; sourceTree = ""; }; 50 | AF8DE7FCF29A7A3996051AC2 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 51 | B123EE73DD3EAEAE0F3956BD /* Pods_CrashEye_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CrashEye_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | C77933209E64DDD3E21C4ABF /* Pods-CrashEye_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CrashEye_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CrashEye_Tests/Pods-CrashEye_Tests.debug.xcconfig"; sourceTree = ""; }; 53 | E7B22179B657D22D63E85667 /* CrashEye.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CrashEye.podspec; path = ../CrashEye.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 54 | F3045FEAA1FFC0A078DBF094 /* Pods-CrashEye_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CrashEye_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-CrashEye_Tests/Pods-CrashEye_Tests.release.xcconfig"; sourceTree = ""; }; 55 | FBFBA31818B946FCA08DB0E7 /* Pods_CrashEye_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CrashEye_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | AAB8106104EFCA27495FABB1 /* Pods_CrashEye_Example.framework in Frameworks */, 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | 30D65D6E9BCAFB2037A8F719 /* Pods_CrashEye_Tests.framework in Frameworks */, 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | 9E24FA631E810ADC001AD0D7 /* Frameworks */ = { 76 | isa = PBXFrameworksBuildPhase; 77 | buildActionMask = 2147483647; 78 | files = ( 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | /* End PBXFrameworksBuildPhase section */ 83 | 84 | /* Begin PBXGroup section */ 85 | 45119F8C63A827E252799401 /* Frameworks */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | B123EE73DD3EAEAE0F3956BD /* Pods_CrashEye_Example.framework */, 89 | FBFBA31818B946FCA08DB0E7 /* Pods_CrashEye_Tests.framework */, 90 | ); 91 | name = Frameworks; 92 | sourceTree = ""; 93 | }; 94 | 607FACC71AFB9204008FA782 = { 95 | isa = PBXGroup; 96 | children = ( 97 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 98 | 607FACD21AFB9204008FA782 /* Example for CrashEye */, 99 | 607FACE81AFB9204008FA782 /* Tests */, 100 | 9E24FA681E810ADC001AD0D7 /* CrashEye */, 101 | 607FACD11AFB9204008FA782 /* Products */, 102 | A7BF527AF68A689201F113C6 /* Pods */, 103 | 45119F8C63A827E252799401 /* Frameworks */, 104 | ); 105 | sourceTree = ""; 106 | }; 107 | 607FACD11AFB9204008FA782 /* Products */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 607FACD01AFB9204008FA782 /* CrashEye_Example.app */, 111 | 607FACE51AFB9204008FA782 /* CrashEye_Tests.xctest */, 112 | 9E24FA671E810ADC001AD0D7 /* CrashEye.framework */, 113 | ); 114 | name = Products; 115 | sourceTree = ""; 116 | }; 117 | 607FACD21AFB9204008FA782 /* Example for CrashEye */ = { 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 CrashEye"; 128 | path = CrashEye; 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 /* Tests.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 | E7B22179B657D22D63E85667 /* CrashEye.podspec */, 160 | AF8DE7FCF29A7A3996051AC2 /* README.md */, 161 | 89DA72A5867BF7F7001C5EF1 /* LICENSE */, 162 | ); 163 | name = "Podspec Metadata"; 164 | sourceTree = ""; 165 | }; 166 | 9E24FA681E810ADC001AD0D7 /* CrashEye */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | 9E24FA6F1E810AE7001AD0D7 /* CrashEye */, 170 | 9E24FA691E810ADC001AD0D7 /* CrashEye.h */, 171 | 9E24FA6A1E810ADC001AD0D7 /* Info.plist */, 172 | ); 173 | path = CrashEye; 174 | sourceTree = ""; 175 | }; 176 | 9E24FA6F1E810AE7001AD0D7 /* CrashEye */ = { 177 | isa = PBXGroup; 178 | children = ( 179 | 9E24FA721E810AE7001AD0D7 /* Classes */, 180 | ); 181 | name = CrashEye; 182 | path = ../../CrashEye; 183 | sourceTree = ""; 184 | }; 185 | 9E24FA721E810AE7001AD0D7 /* Classes */ = { 186 | isa = PBXGroup; 187 | children = ( 188 | 9E24FA741E810AE7001AD0D7 /* CrashEye.swift */, 189 | ); 190 | path = Classes; 191 | sourceTree = ""; 192 | }; 193 | A7BF527AF68A689201F113C6 /* Pods */ = { 194 | isa = PBXGroup; 195 | children = ( 196 | 932D8ED2DBB67EC0A8ACF584 /* Pods-CrashEye_Example.debug.xcconfig */, 197 | 6414DE440A0BED3968574E13 /* Pods-CrashEye_Example.release.xcconfig */, 198 | C77933209E64DDD3E21C4ABF /* Pods-CrashEye_Tests.debug.xcconfig */, 199 | F3045FEAA1FFC0A078DBF094 /* Pods-CrashEye_Tests.release.xcconfig */, 200 | ); 201 | name = Pods; 202 | sourceTree = ""; 203 | }; 204 | /* End PBXGroup section */ 205 | 206 | /* Begin PBXHeadersBuildPhase section */ 207 | 9E24FA641E810ADC001AD0D7 /* Headers */ = { 208 | isa = PBXHeadersBuildPhase; 209 | buildActionMask = 2147483647; 210 | files = ( 211 | 9E24FA6B1E810ADC001AD0D7 /* CrashEye.h in Headers */, 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | }; 215 | /* End PBXHeadersBuildPhase section */ 216 | 217 | /* Begin PBXNativeTarget section */ 218 | 607FACCF1AFB9204008FA782 /* CrashEye_Example */ = { 219 | isa = PBXNativeTarget; 220 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CrashEye_Example" */; 221 | buildPhases = ( 222 | F054FD555903E2293623FE81 /* [CP] Check Pods Manifest.lock */, 223 | 607FACCC1AFB9204008FA782 /* Sources */, 224 | 607FACCD1AFB9204008FA782 /* Frameworks */, 225 | 607FACCE1AFB9204008FA782 /* Resources */, 226 | D8C6B6E74A50EE0CA59984C4 /* [CP] Embed Pods Frameworks */, 227 | ); 228 | buildRules = ( 229 | ); 230 | dependencies = ( 231 | ); 232 | name = CrashEye_Example; 233 | productName = CrashEye; 234 | productReference = 607FACD01AFB9204008FA782 /* CrashEye_Example.app */; 235 | productType = "com.apple.product-type.application"; 236 | }; 237 | 607FACE41AFB9204008FA782 /* CrashEye_Tests */ = { 238 | isa = PBXNativeTarget; 239 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CrashEye_Tests" */; 240 | buildPhases = ( 241 | CB12523A6EDDC1A1AFEFCBBF /* [CP] Check Pods Manifest.lock */, 242 | 607FACE11AFB9204008FA782 /* Sources */, 243 | 607FACE21AFB9204008FA782 /* Frameworks */, 244 | 607FACE31AFB9204008FA782 /* Resources */, 245 | ); 246 | buildRules = ( 247 | ); 248 | dependencies = ( 249 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 250 | ); 251 | name = CrashEye_Tests; 252 | productName = Tests; 253 | productReference = 607FACE51AFB9204008FA782 /* CrashEye_Tests.xctest */; 254 | productType = "com.apple.product-type.bundle.unit-test"; 255 | }; 256 | 9E24FA661E810ADC001AD0D7 /* CrashEye */ = { 257 | isa = PBXNativeTarget; 258 | buildConfigurationList = 9E24FA6E1E810ADC001AD0D7 /* Build configuration list for PBXNativeTarget "CrashEye" */; 259 | buildPhases = ( 260 | 9E24FA621E810ADC001AD0D7 /* Sources */, 261 | 9E24FA631E810ADC001AD0D7 /* Frameworks */, 262 | 9E24FA641E810ADC001AD0D7 /* Headers */, 263 | 9E24FA651E810ADC001AD0D7 /* Resources */, 264 | ); 265 | buildRules = ( 266 | ); 267 | dependencies = ( 268 | ); 269 | name = CrashEye; 270 | productName = CrashEye; 271 | productReference = 9E24FA671E810ADC001AD0D7 /* CrashEye.framework */; 272 | productType = "com.apple.product-type.framework"; 273 | }; 274 | /* End PBXNativeTarget section */ 275 | 276 | /* Begin PBXProject section */ 277 | 607FACC81AFB9204008FA782 /* Project object */ = { 278 | isa = PBXProject; 279 | attributes = { 280 | LastSwiftUpdateCheck = 0720; 281 | LastUpgradeCheck = 0720; 282 | ORGANIZATIONNAME = CocoaPods; 283 | TargetAttributes = { 284 | 607FACCF1AFB9204008FA782 = { 285 | CreatedOnToolsVersion = 6.3.1; 286 | LastSwiftMigration = 0810; 287 | }; 288 | 607FACE41AFB9204008FA782 = { 289 | CreatedOnToolsVersion = 6.3.1; 290 | LastSwiftMigration = 0810; 291 | TestTargetID = 607FACCF1AFB9204008FA782; 292 | }; 293 | 9E24FA661E810ADC001AD0D7 = { 294 | CreatedOnToolsVersion = 8.2.1; 295 | DevelopmentTeam = L35WZWVC98; 296 | LastSwiftMigration = 0920; 297 | ProvisioningStyle = Automatic; 298 | }; 299 | }; 300 | }; 301 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "CrashEye" */; 302 | compatibilityVersion = "Xcode 3.2"; 303 | developmentRegion = English; 304 | hasScannedForEncodings = 0; 305 | knownRegions = ( 306 | en, 307 | Base, 308 | ); 309 | mainGroup = 607FACC71AFB9204008FA782; 310 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 311 | projectDirPath = ""; 312 | projectRoot = ""; 313 | targets = ( 314 | 607FACCF1AFB9204008FA782 /* CrashEye_Example */, 315 | 607FACE41AFB9204008FA782 /* CrashEye_Tests */, 316 | 9E24FA661E810ADC001AD0D7 /* CrashEye */, 317 | ); 318 | }; 319 | /* End PBXProject section */ 320 | 321 | /* Begin PBXResourcesBuildPhase section */ 322 | 607FACCE1AFB9204008FA782 /* Resources */ = { 323 | isa = PBXResourcesBuildPhase; 324 | buildActionMask = 2147483647; 325 | files = ( 326 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 327 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 328 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 329 | ); 330 | runOnlyForDeploymentPostprocessing = 0; 331 | }; 332 | 607FACE31AFB9204008FA782 /* Resources */ = { 333 | isa = PBXResourcesBuildPhase; 334 | buildActionMask = 2147483647; 335 | files = ( 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | }; 339 | 9E24FA651E810ADC001AD0D7 /* Resources */ = { 340 | isa = PBXResourcesBuildPhase; 341 | buildActionMask = 2147483647; 342 | files = ( 343 | ); 344 | runOnlyForDeploymentPostprocessing = 0; 345 | }; 346 | /* End PBXResourcesBuildPhase section */ 347 | 348 | /* Begin PBXShellScriptBuildPhase section */ 349 | CB12523A6EDDC1A1AFEFCBBF /* [CP] Check Pods Manifest.lock */ = { 350 | isa = PBXShellScriptBuildPhase; 351 | buildActionMask = 2147483647; 352 | files = ( 353 | ); 354 | inputPaths = ( 355 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 356 | "${PODS_ROOT}/Manifest.lock", 357 | ); 358 | name = "[CP] Check Pods Manifest.lock"; 359 | outputPaths = ( 360 | "$(DERIVED_FILE_DIR)/Pods-CrashEye_Tests-checkManifestLockResult.txt", 361 | ); 362 | runOnlyForDeploymentPostprocessing = 0; 363 | shellPath = /bin/sh; 364 | 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"; 365 | showEnvVarsInLog = 0; 366 | }; 367 | D8C6B6E74A50EE0CA59984C4 /* [CP] Embed Pods Frameworks */ = { 368 | isa = PBXShellScriptBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | ); 372 | inputPaths = ( 373 | "${SRCROOT}/Pods/Target Support Files/Pods-CrashEye_Example/Pods-CrashEye_Example-frameworks.sh", 374 | "${BUILT_PRODUCTS_DIR}/CrashEye/CrashEye.framework", 375 | ); 376 | name = "[CP] Embed Pods Frameworks"; 377 | outputPaths = ( 378 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CrashEye.framework", 379 | ); 380 | runOnlyForDeploymentPostprocessing = 0; 381 | shellPath = /bin/sh; 382 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CrashEye_Example/Pods-CrashEye_Example-frameworks.sh\"\n"; 383 | showEnvVarsInLog = 0; 384 | }; 385 | F054FD555903E2293623FE81 /* [CP] Check Pods Manifest.lock */ = { 386 | isa = PBXShellScriptBuildPhase; 387 | buildActionMask = 2147483647; 388 | files = ( 389 | ); 390 | inputPaths = ( 391 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 392 | "${PODS_ROOT}/Manifest.lock", 393 | ); 394 | name = "[CP] Check Pods Manifest.lock"; 395 | outputPaths = ( 396 | "$(DERIVED_FILE_DIR)/Pods-CrashEye_Example-checkManifestLockResult.txt", 397 | ); 398 | runOnlyForDeploymentPostprocessing = 0; 399 | shellPath = /bin/sh; 400 | 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"; 401 | showEnvVarsInLog = 0; 402 | }; 403 | /* End PBXShellScriptBuildPhase section */ 404 | 405 | /* Begin PBXSourcesBuildPhase section */ 406 | 607FACCC1AFB9204008FA782 /* Sources */ = { 407 | isa = PBXSourcesBuildPhase; 408 | buildActionMask = 2147483647; 409 | files = ( 410 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 411 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 412 | ); 413 | runOnlyForDeploymentPostprocessing = 0; 414 | }; 415 | 607FACE11AFB9204008FA782 /* Sources */ = { 416 | isa = PBXSourcesBuildPhase; 417 | buildActionMask = 2147483647; 418 | files = ( 419 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 420 | ); 421 | runOnlyForDeploymentPostprocessing = 0; 422 | }; 423 | 9E24FA621E810ADC001AD0D7 /* Sources */ = { 424 | isa = PBXSourcesBuildPhase; 425 | buildActionMask = 2147483647; 426 | files = ( 427 | 9E24FA771E810AE7001AD0D7 /* CrashEye.swift in Sources */, 428 | ); 429 | runOnlyForDeploymentPostprocessing = 0; 430 | }; 431 | /* End PBXSourcesBuildPhase section */ 432 | 433 | /* Begin PBXTargetDependency section */ 434 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 435 | isa = PBXTargetDependency; 436 | target = 607FACCF1AFB9204008FA782 /* CrashEye_Example */; 437 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 438 | }; 439 | /* End PBXTargetDependency section */ 440 | 441 | /* Begin PBXVariantGroup section */ 442 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 443 | isa = PBXVariantGroup; 444 | children = ( 445 | 607FACDA1AFB9204008FA782 /* Base */, 446 | ); 447 | name = Main.storyboard; 448 | sourceTree = ""; 449 | }; 450 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 451 | isa = PBXVariantGroup; 452 | children = ( 453 | 607FACDF1AFB9204008FA782 /* Base */, 454 | ); 455 | name = LaunchScreen.xib; 456 | sourceTree = ""; 457 | }; 458 | /* End PBXVariantGroup section */ 459 | 460 | /* Begin XCBuildConfiguration section */ 461 | 607FACED1AFB9204008FA782 /* Debug */ = { 462 | isa = XCBuildConfiguration; 463 | buildSettings = { 464 | ALWAYS_SEARCH_USER_PATHS = NO; 465 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 466 | CLANG_CXX_LIBRARY = "libc++"; 467 | CLANG_ENABLE_MODULES = YES; 468 | CLANG_ENABLE_OBJC_ARC = YES; 469 | CLANG_WARN_BOOL_CONVERSION = YES; 470 | CLANG_WARN_CONSTANT_CONVERSION = YES; 471 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 472 | CLANG_WARN_EMPTY_BODY = YES; 473 | CLANG_WARN_ENUM_CONVERSION = YES; 474 | CLANG_WARN_INT_CONVERSION = YES; 475 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 476 | CLANG_WARN_UNREACHABLE_CODE = YES; 477 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 478 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 479 | COPY_PHASE_STRIP = NO; 480 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 481 | ENABLE_STRICT_OBJC_MSGSEND = YES; 482 | ENABLE_TESTABILITY = YES; 483 | GCC_C_LANGUAGE_STANDARD = gnu99; 484 | GCC_DYNAMIC_NO_PIC = NO; 485 | GCC_NO_COMMON_BLOCKS = YES; 486 | GCC_OPTIMIZATION_LEVEL = 0; 487 | GCC_PREPROCESSOR_DEFINITIONS = ( 488 | "DEBUG=1", 489 | "$(inherited)", 490 | ); 491 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 492 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 493 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 494 | GCC_WARN_UNDECLARED_SELECTOR = YES; 495 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 496 | GCC_WARN_UNUSED_FUNCTION = YES; 497 | GCC_WARN_UNUSED_VARIABLE = YES; 498 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 499 | MTL_ENABLE_DEBUG_INFO = YES; 500 | ONLY_ACTIVE_ARCH = YES; 501 | SDKROOT = iphoneos; 502 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 503 | }; 504 | name = Debug; 505 | }; 506 | 607FACEE1AFB9204008FA782 /* Release */ = { 507 | isa = XCBuildConfiguration; 508 | buildSettings = { 509 | ALWAYS_SEARCH_USER_PATHS = NO; 510 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 511 | CLANG_CXX_LIBRARY = "libc++"; 512 | CLANG_ENABLE_MODULES = YES; 513 | CLANG_ENABLE_OBJC_ARC = YES; 514 | CLANG_WARN_BOOL_CONVERSION = YES; 515 | CLANG_WARN_CONSTANT_CONVERSION = YES; 516 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 517 | CLANG_WARN_EMPTY_BODY = YES; 518 | CLANG_WARN_ENUM_CONVERSION = YES; 519 | CLANG_WARN_INT_CONVERSION = YES; 520 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 521 | CLANG_WARN_UNREACHABLE_CODE = YES; 522 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 523 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 524 | COPY_PHASE_STRIP = NO; 525 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 526 | ENABLE_NS_ASSERTIONS = NO; 527 | ENABLE_STRICT_OBJC_MSGSEND = YES; 528 | GCC_C_LANGUAGE_STANDARD = gnu99; 529 | GCC_NO_COMMON_BLOCKS = YES; 530 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 531 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 532 | GCC_WARN_UNDECLARED_SELECTOR = YES; 533 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 534 | GCC_WARN_UNUSED_FUNCTION = YES; 535 | GCC_WARN_UNUSED_VARIABLE = YES; 536 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 537 | MTL_ENABLE_DEBUG_INFO = NO; 538 | SDKROOT = iphoneos; 539 | VALIDATE_PRODUCT = YES; 540 | }; 541 | name = Release; 542 | }; 543 | 607FACF01AFB9204008FA782 /* Debug */ = { 544 | isa = XCBuildConfiguration; 545 | baseConfigurationReference = 932D8ED2DBB67EC0A8ACF584 /* Pods-CrashEye_Example.debug.xcconfig */; 546 | buildSettings = { 547 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 548 | INFOPLIST_FILE = CrashEye/Info.plist; 549 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 550 | MODULE_NAME = ExampleApp; 551 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 552 | PRODUCT_NAME = "$(TARGET_NAME)"; 553 | SWIFT_VERSION = 3.0; 554 | }; 555 | name = Debug; 556 | }; 557 | 607FACF11AFB9204008FA782 /* Release */ = { 558 | isa = XCBuildConfiguration; 559 | baseConfigurationReference = 6414DE440A0BED3968574E13 /* Pods-CrashEye_Example.release.xcconfig */; 560 | buildSettings = { 561 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 562 | INFOPLIST_FILE = CrashEye/Info.plist; 563 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 564 | MODULE_NAME = ExampleApp; 565 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 566 | PRODUCT_NAME = "$(TARGET_NAME)"; 567 | SWIFT_VERSION = 3.0; 568 | }; 569 | name = Release; 570 | }; 571 | 607FACF31AFB9204008FA782 /* Debug */ = { 572 | isa = XCBuildConfiguration; 573 | baseConfigurationReference = C77933209E64DDD3E21C4ABF /* Pods-CrashEye_Tests.debug.xcconfig */; 574 | buildSettings = { 575 | FRAMEWORK_SEARCH_PATHS = ( 576 | "$(SDKROOT)/Developer/Library/Frameworks", 577 | "$(inherited)", 578 | ); 579 | GCC_PREPROCESSOR_DEFINITIONS = ( 580 | "DEBUG=1", 581 | "$(inherited)", 582 | ); 583 | INFOPLIST_FILE = Tests/Info.plist; 584 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 585 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 586 | PRODUCT_NAME = "$(TARGET_NAME)"; 587 | SWIFT_VERSION = 3.0; 588 | }; 589 | name = Debug; 590 | }; 591 | 607FACF41AFB9204008FA782 /* Release */ = { 592 | isa = XCBuildConfiguration; 593 | baseConfigurationReference = F3045FEAA1FFC0A078DBF094 /* Pods-CrashEye_Tests.release.xcconfig */; 594 | buildSettings = { 595 | FRAMEWORK_SEARCH_PATHS = ( 596 | "$(SDKROOT)/Developer/Library/Frameworks", 597 | "$(inherited)", 598 | ); 599 | INFOPLIST_FILE = Tests/Info.plist; 600 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 601 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 602 | PRODUCT_NAME = "$(TARGET_NAME)"; 603 | SWIFT_VERSION = 3.0; 604 | }; 605 | name = Release; 606 | }; 607 | 9E24FA6C1E810ADC001AD0D7 /* Debug */ = { 608 | isa = XCBuildConfiguration; 609 | buildSettings = { 610 | CLANG_ANALYZER_NONNULL = YES; 611 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 612 | CLANG_WARN_INFINITE_RECURSION = YES; 613 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 614 | CODE_SIGN_IDENTITY = ""; 615 | CURRENT_PROJECT_VERSION = 1; 616 | DEBUG_INFORMATION_FORMAT = dwarf; 617 | DEFINES_MODULE = YES; 618 | DEVELOPMENT_TEAM = L35WZWVC98; 619 | DYLIB_COMPATIBILITY_VERSION = 1; 620 | DYLIB_CURRENT_VERSION = 1; 621 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 622 | INFOPLIST_FILE = CrashEye/Info.plist; 623 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 624 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 625 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 626 | PRODUCT_BUNDLE_IDENTIFIER = com.zixun.CrashEye; 627 | PRODUCT_NAME = "$(TARGET_NAME)"; 628 | SKIP_INSTALL = YES; 629 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 630 | SWIFT_VERSION = 4.0; 631 | TARGETED_DEVICE_FAMILY = "1,2"; 632 | VERSIONING_SYSTEM = "apple-generic"; 633 | VERSION_INFO_PREFIX = ""; 634 | }; 635 | name = Debug; 636 | }; 637 | 9E24FA6D1E810ADC001AD0D7 /* Release */ = { 638 | isa = XCBuildConfiguration; 639 | buildSettings = { 640 | CLANG_ANALYZER_NONNULL = YES; 641 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 642 | CLANG_WARN_INFINITE_RECURSION = YES; 643 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 644 | CODE_SIGN_IDENTITY = ""; 645 | CURRENT_PROJECT_VERSION = 1; 646 | DEFINES_MODULE = YES; 647 | DEVELOPMENT_TEAM = L35WZWVC98; 648 | DYLIB_COMPATIBILITY_VERSION = 1; 649 | DYLIB_CURRENT_VERSION = 1; 650 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 651 | INFOPLIST_FILE = CrashEye/Info.plist; 652 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 653 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 654 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 655 | PRODUCT_BUNDLE_IDENTIFIER = com.zixun.CrashEye; 656 | PRODUCT_NAME = "$(TARGET_NAME)"; 657 | SKIP_INSTALL = YES; 658 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 659 | SWIFT_VERSION = 4.0; 660 | TARGETED_DEVICE_FAMILY = "1,2"; 661 | VERSIONING_SYSTEM = "apple-generic"; 662 | VERSION_INFO_PREFIX = ""; 663 | }; 664 | name = Release; 665 | }; 666 | /* End XCBuildConfiguration section */ 667 | 668 | /* Begin XCConfigurationList section */ 669 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "CrashEye" */ = { 670 | isa = XCConfigurationList; 671 | buildConfigurations = ( 672 | 607FACED1AFB9204008FA782 /* Debug */, 673 | 607FACEE1AFB9204008FA782 /* Release */, 674 | ); 675 | defaultConfigurationIsVisible = 0; 676 | defaultConfigurationName = Release; 677 | }; 678 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CrashEye_Example" */ = { 679 | isa = XCConfigurationList; 680 | buildConfigurations = ( 681 | 607FACF01AFB9204008FA782 /* Debug */, 682 | 607FACF11AFB9204008FA782 /* Release */, 683 | ); 684 | defaultConfigurationIsVisible = 0; 685 | defaultConfigurationName = Release; 686 | }; 687 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "CrashEye_Tests" */ = { 688 | isa = XCConfigurationList; 689 | buildConfigurations = ( 690 | 607FACF31AFB9204008FA782 /* Debug */, 691 | 607FACF41AFB9204008FA782 /* Release */, 692 | ); 693 | defaultConfigurationIsVisible = 0; 694 | defaultConfigurationName = Release; 695 | }; 696 | 9E24FA6E1E810ADC001AD0D7 /* Build configuration list for PBXNativeTarget "CrashEye" */ = { 697 | isa = XCConfigurationList; 698 | buildConfigurations = ( 699 | 9E24FA6C1E810ADC001AD0D7 /* Debug */, 700 | 9E24FA6D1E810ADC001AD0D7 /* Release */, 701 | ); 702 | defaultConfigurationIsVisible = 0; 703 | defaultConfigurationName = Release; 704 | }; 705 | /* End XCConfigurationList section */ 706 | }; 707 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 708 | } 709 | -------------------------------------------------------------------------------- /Example/CrashEye.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/CrashEye.xcodeproj/project.xcworkspace/xcshareddata/CrashEye.xcscmblueprint: -------------------------------------------------------------------------------- 1 | { 2 | "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "176CADFAA9739C57FD277A2658D64742B30CB35F", 3 | "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { 4 | 5 | }, 6 | "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { 7 | "176CADFAA9739C57FD277A2658D64742B30CB35F" : 9223372036854775807, 8 | "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" : 9223372036854775807 9 | }, 10 | "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "F43A6501-4107-4D16-8686-45CDAFC42EAA", 11 | "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { 12 | "176CADFAA9739C57FD277A2658D64742B30CB35F" : "CrashEye\/", 13 | "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" : "..\/.." 14 | }, 15 | "DVTSourceControlWorkspaceBlueprintNameKey" : "CrashEye", 16 | "DVTSourceControlWorkspaceBlueprintVersion" : 204, 17 | "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "Example\/CrashEye.xcodeproj", 18 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ 19 | { 20 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "github.com:zixun\/CrashEye.git", 21 | "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", 22 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "176CADFAA9739C57FD277A2658D64742B30CB35F" 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 | } -------------------------------------------------------------------------------- /Example/CrashEye.xcodeproj/xcshareddata/xcschemes/CrashEye-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/CrashEye.xcodeproj/xcshareddata/xcschemes/CrashEye.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/CrashEye.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/CrashEye.xcworkspace/xcshareddata/CrashEye.xcscmblueprint: -------------------------------------------------------------------------------- 1 | { 2 | "DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "176CADFAA9739C57FD277A2658D64742B30CB35F", 3 | "DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : { 4 | 5 | }, 6 | "DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : { 7 | "176CADFAA9739C57FD277A2658D64742B30CB35F" : 9223372036854775807, 8 | "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" : 9223372036854775807 9 | }, 10 | "DVTSourceControlWorkspaceBlueprintIdentifierKey" : "46A1C854-1ED4-478B-BCA5-627F7125A0A8", 11 | "DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : { 12 | "176CADFAA9739C57FD277A2658D64742B30CB35F" : "CrashEye\/", 13 | "BF1F56C483977AC36F575A9C50FB74A7EFF41C69" : "..\/.." 14 | }, 15 | "DVTSourceControlWorkspaceBlueprintNameKey" : "CrashEye", 16 | "DVTSourceControlWorkspaceBlueprintVersion" : 204, 17 | "DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "Example\/CrashEye.xcworkspace", 18 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [ 19 | { 20 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "git.oschina.net:GodEyeSwift\/CrashEye.git", 21 | "DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git", 22 | "DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "176CADFAA9739C57FD277A2658D64742B30CB35F" 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 | } -------------------------------------------------------------------------------- /Example/CrashEye/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // CrashEye 4 | // 5 | // Created by zixun on 12/23/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/CrashEye/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/CrashEye/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/CrashEye/CrashEye.h: -------------------------------------------------------------------------------- 1 | // 2 | // CrashEye.h 3 | // CrashEye 4 | // 5 | // Created by zixun on 2017/3/21. 6 | // Copyright © 2017年 CocoaPods. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for CrashEye. 12 | FOUNDATION_EXPORT double CrashEyeVersionNumber; 13 | 14 | //! Project version string for CrashEye. 15 | FOUNDATION_EXPORT const unsigned char CrashEyeVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /Example/CrashEye/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/CrashEye/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/CrashEye/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // CrashEye 4 | // 5 | // Created by zixun on 12/23/2016. 6 | // Copyright (c) 2016 zixun. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CrashEye 11 | 12 | class ViewController: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | 17 | CrashEye.add(delegate: self) 18 | let arr = NSArray() 19 | arr[10] 20 | } 21 | 22 | } 23 | 24 | extension ViewController: CrashEyeDelegate { 25 | 26 | func crashEyeDidCatchCrash(with model:CrashModel) { 27 | print(model) 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'CrashEye_Example' do 4 | pod 'CrashEye', :path => '../' 5 | 6 | target 'CrashEye_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - CrashEye (1.1.2) 3 | 4 | DEPENDENCIES: 5 | - CrashEye (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | CrashEye: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | CrashEye: b96e2f93d770677cf3c50e134e8123207d8a6623 13 | 14 | PODFILE CHECKSUM: 9e0da17e46e41bc2d6df8c392ec74790b310654f 15 | 16 | COCOAPODS: 1.5.0 17 | -------------------------------------------------------------------------------- /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/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import CrashEye 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measure() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #CrashEye 2 | 3 | [![Version](https://img.shields.io/cocoapods/v/CrashEye.svg?style=flat)](http://cocoapods.org/pods/CrashEye) 4 | [![License](https://img.shields.io/cocoapods/l/CrashEye.svg?style=flat)](http://cocoapods.org/pods/CrashEye) 5 | [![Platform](https://img.shields.io/cocoapods/p/CrashEye.svg?style=flat)](http://cocoapods.org/pods/CrashEye) 6 | [![Carthage compatible](https://img.shields.io/badge/Carthage-Compatible-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage) 7 | 8 | CrashEye is an ios crash monitor,automatic catch exception crash & signal crash and return the stacktrace 9 | 10 | ## Family 11 | 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 12 | 13 | ## Book & Principle 14 | 15 | **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.** 16 | 17 | ## Features 18 | 19 | - [x] monitor uncatched exception crash. 20 | - [x] monitor signal crash. 21 | 22 | 23 | ## Installation 24 | 25 | ### CocoaPods 26 | CrashEye is available through [CocoaPods](http://cocoapods.org). To install 27 | it, simply add the following line to your Podfile: 28 | 29 | ```ruby 30 | pod "CrashEye" 31 | ``` 32 | 33 | ### Carthage 34 | Or, if you’re using [Carthage](https://github.com/Carthage/Carthage), add SwViewCapture to your Cartfile: 35 | 36 | ``` 37 | github "zixun/CrashEye" 38 | ``` 39 | 40 | ## Usage 41 | ### open and add delegate 42 | 43 | ```swift 44 | CrashEye.add(delegate: self) 45 | ``` 46 | 47 | ### implement the delegate 48 | 49 | ```swift 50 | extension ViewController: CrashEyeDelegate { 51 | func crashEyeDidCatchCrash(with model:CrashModel) { 52 | print(model) 53 | } 54 | } 55 | ``` 56 | 57 | ## Author 58 | 59 | name: 陈奕龙 60 | 61 | twitter: [@zixun_](https://twitter.com/zixun_) 62 | 63 | email: chenyl.exe@gmail.com 64 | 65 | github: [zixun](https://github.com/zixun) 66 | 67 | blog: [子循(SubCycle)](http://zixun.github.io/) 68 | 69 | 70 | 71 | ## License 72 | 73 | CrashEye is available under the MIT license. See the LICENSE file for more info. 74 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------