JBInspector 1.4.0

JBInspector 1.4.0

Yusuke Arakawa 维护。



JBInspector

Language Carthage compatible Version License Platform

此模块可以帮助您检测 iOS 项目中的越狱状态,支持 Unity。

准备就绪,可以用于 Sileo。

使用方法

请初始化 JBInspector

#import <JBInspector/JBInspector.h>

Objective-C

if ([JBInspector isJailbreak]) {
    // JailBreak detect.
}

Swift

if (JBInspector.isJailbreak) {
    // JailBreak detect.
}

Unity(C#)

using System.Runtime.InteropServices;

public class Sample {
    [DllImport("JBInspector")]
    private static extern bool isJailbreak();
    if (isJailbreak) {
        // JailBreak detect.
    }
}

示例

要运行示例项目,请克隆仓库,然后先从 JBInspectorExample 目录运行 pod install

要求

  • 支持iOS 5或更高版本

安装

Carthage

如果你在使用 Carthage,只需简单地将 JBInspector 添加到你的 Cartfile 中。

github "mofneko/JBInspector"

CocoaPods

JBInspector 可通过 CocoaPods 获取。要安装,只需将以下行添加到你的 Podfile 中。

pod 'JBInspector'

Unity

在你的 Unity 项目中,创建一个名为 Assets/Plugin/iOS 的文件夹。将 Sources/ 目录中的 JBInspector.h 和 JBInspector.mm 文件复制到该目录。

  • JBInspector.h
  • JBInspector.mm

许可协议

MIT License

Copyright (c) 2019 Yusuke Arakawa

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.