在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:zixun/GodEye开源软件地址:https://github.com/zixun/GodEye开源编程语言:Swift 98.1%开源软件介绍:GodEyeAutomaticly display Log,Crash,Network,ANR,Leak,CPU,RAM,FPS,NetFlow,Folder and etc with one line of code based on Swift. Just like God opened his eyes. It's so huge that I split it into several independent components:
Features
Characteristics
PreviewBook and PrincipleI has wrote a book named 《iOS监控编程》,each chapter records the course function of the implementation details and the way to explore.sorry for english friends,this book wrote by chineses. InstallationCocoaPodsGodEye is available through CocoaPods. To install it, simply add the following line to your Podfile: pod "GodEye" Not build in ReleaseFirst, add configurations in Podfile. pod 'GodEye', '~> 1.0.0', :configurations => ['Debug'] Then, find Finally, add #if DEBUG
GodEye.makeEye(with: self.window!)
#endif CarthageOr, if you’re using Carthage, add GodEye to your Cartfile:
Add GodEye to Embed FrameworksOn your application targets’ Add Dependency to Linked Frameworks and LibrariesOn your application targets’ Add Run ScriptOn your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script in which you specify your shell (ex: /bin/sh), add the following contents to the script area below the shell:
and add the paths to the frameworks you want to use under “Input Files”: OpenSource Application Use GodEyeCocoaChinaPlus is an open source application wrote by swift, now the GodEye is work well in it! Usageimport at AppDelegate: import GodEye making GodEye at GodEye.makeEye(with:self.window!) well, make GodEye with one line code as above will use default configuration.We also can custom our configuration: let configuration = Configuration()
configuration.command.add(command: "test", description: "test command") { () -> (String) in
return "this is test command result"
}
configuration.command.add(command: "info", description: "print test info") { () -> (String) in
return "info"
}
GodEye.makeEye(with: self.window!, configuration: configuration) the example above is custom command configuration, we also can custom control and switch configuration.see detail at ExampleTo run the example project, clone the repo, and run Authortwitter: @zixun_ email: [email protected] github: zixun blog: 子循(SubCycle) ThanksFirst is Github, it gives me a lot of ideas and inspiration, and even ready-made code:
Secondly is StackOverFlow, it answers a lot of problems encountered in the author's writing and development,here are a few images of deep:
Finally, thanks to several great blog:
LicenseGodEye is available under the MIT license. See the LICENSE file for more info. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论