美文网首页
fastlane/sigh的安装及用法

fastlane/sigh的安装及用法

作者: 歌手的剑 | 来源:发表于2019-08-22 10:54 被阅读0次

    1.安装fastlane

    1.安装fastlane
        sudo gem install -n /usr/local/bin fastlane
    
    2.启动spaceship(后台运行)
        fastlane spaceship
    
    3.安装pry
        sudo gem install -n /usr/local/bin pry
    

    2.fastlane Spaceship登录apple developer portal:

    1.fastlane Spaceship
    2.输入Apple ID及密码,以及双重验证的验证码
    
    login

    2.查找及创建app

    Spaceship::Portal.app.find("com.xskj.first.demo")
    
    Spaceship::Portal.app.create!(bundle_id: "com.xskj.first.demo", name: "fastlane App")
    

    3.增加及禁用device

    Spaceship::Portal.device.create!(name: "wanghui", udid: "f1e124a25a3c8d41faa1c38b4ff4d7a4327720d9") 
    
    Spaceship::Portal.device.find_by_udid("f1e124a25a3c8d41faa1c38b4ff4d7a4327720d9", include_disabled: true).disable!
    

    4.生成及下载描述文件

    cert = Spaceship::Portal.certificate.production.all.first
    
    profile = Spaceship::Portal.provisioning_profile.ad_hoc.create!(bundle_id: "com.xskj.first.demo",certificate: cert,name: "adprofile")
    
    File.write("NewProfile.mobileprovision", profile.download)
    

    5.安装并使用sigh重签ipa

    sudo gem install -n /usr/local/bin sigh --pre
    
    sigh resign
    

    相关文章

      网友评论

          本文标题:fastlane/sigh的安装及用法

          本文链接:https://www.haomeiwen.com/subject/jtngsctx.html