codesign_utils.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:iOS-private-api-checker 作者: NetEaseGame 项目源码 文件源码
def codesignapp(app_path):
    """
    Get codesign informatiob included in app
    About codesign: https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933
    Args:
        Mach-o path
    Returns:
        the content of codesign
    """
    cmd = "/usr/bin/codesign -dvvv %s" % app_path
    out = commands.getstatusoutput(cmd)
    if out and len(out) == 2 and out[0] == 0:
        out = out[1]
    else:
        out = ''
    return out
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号