• Xcode证书破解 iphone真机部署


    Xcode证书破解 iphone真机部署  

    证书伪造:
    先按照该教程的步骤添加证书。注意,原教程选择的是“系统”证书,这里我们用“登录”证书,切记。

    Xcode破解

    关闭XCode,打开你的命令行终端,复制粘贴下面的代码:

    #!/bin/bash
    cd /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Plug-ins/iPhoneOS Build System Support.xcplugin/Contents/MacOS/
    dd if=iPhoneOS Build System Support of=working bs=500 count=255
    printf “x8fx2ax00x00″ >> working
    dd if=iPhoneOS Build System Support of=working bs=1 skip=127504 seek=127504
    /bin/mv -n iPhoneOS Build System Support iPhoneOS Build System Support.original
    /bin/mv working iPhoneOS Build System Support
    chmod a+x iPhoneOS Build System Support

    执行完后再复制粘贴下面的代码到命令行终端:(需要internet网络连接)

    mkdir /Developer/iphoneentitlements30
    cd /Developer/iphoneentitlements30
    curl -O http://www.alexwhittemore.com/iphone/gen_entitlements.txt
    mv gen_entitlements.txt gen_entitlements.py
    chmod 777 gen_entitlements.py

    执行完脚本后修改”/Developer/Platforms/iPhoneOS.platform/Info.plist”文件,做如下修改:
    新增如下两项:

    PROVISIONING_PROFILE_ALLOWED = NO
    PROVISIONING_PROFILE_REQUIRED = NO

    再用文本编辑器打开”/Developer/Platforms/iPhoneOS.platform/Info.plist”文件,将所有“XCiPhoneOSCodeSignContext”替换为“XCCodeSignContext”,(非常重要,不进行此步骤会导致打开项目文件Xcode会崩溃报错退出)保存退出。

    打开Xcode,打开你的项目,Project>>Edit Project Setting,选择“Build”页面,Configurations和Show都选择All,找到Code Signing Identity项,删除其子项,并将“Code Signing Identity”赋值为“iPhone Developer”(其实是个选项)。

    然后找到你项目的xxx-Info.plist文件,添加“SignerIdentity”项,其值为“Apple iPhone OS Application Signing”.保存。

    将iPhone接入电脑,在Xcode的Window>>Organizer中会侦测到你的iPhone.查看iPhone和你的Xcode识别正常后退出Organizer,选择编译环境为“iPhone Device-3.1.2|Release”,点击”Build and Go”,期间会出现让我们选择签名证书,点选“允许”后,祈祷你的iPhone屏幕亮起吧。

    你的程序会自动下载到你的iPhone中。点触运行无任何错误提示。

  • 相关阅读:
    判断 iframe 是否加载完毕
    iframe跨端口报错 Blocked a frame with origin from accessing a cross-origin frame
    React与Vue
    原生js监听input值发生变化
    防抖函数与节流函数
    原生js 实现better-scroll效果,饿了么菜单内容联动,即粘即用
    力扣数据库的一些题解
    动态代理
    一个能够进行增删改查的数组的构建(数据结构01)
    c语言学习笔记(1)
  • 原文地址:https://www.cnblogs.com/new0801/p/6175857.html
Copyright © 2020-2023  润新知