Giter Club home page Giter Club logo

hsipareplaceicon's Introduction

HSIPAReplaceIcon

Build Status Build Status Build Status Build Status

脚本自动化批量修改ipa的icon、启动图、APP名称等(demo只修改icon,其他原理一样)、重签ipa

运行环境

编译系统:苹果Mac

编译系统版本:MacOS Catalina 10.15.7

需要终端环境::fastlane、ruby、cocoapods 需要安装APP:Xcode12


使用文档

1、cd到当前文档路径

2、终端输入 sh do.sh

 赋值make_ios_replaceIcon.sh 常量 KSigningIdentity(证书名字)
 赋值make_ios_replaceIcon.sh 常量 KMobileprovision(描述文件)

(channel是用来模拟器多渠道)

思路

技术思路:解压ipa文件,替换assets.car文件(更好的方式是解压assets.car文件,替换icon,再压缩,这样速度更快),修改info.plist对于参数。压缩成ipa文件。再对ipa重新签名。

技术难点:好像也没啥难点,就是有个地方卡了一会,不知道是不是xcode12或者ios 14系统的特性,直接修改icon不生效,需要替换资源文件assets.car才生效。(有了解的朋友可以私聊我,可能游戏使用unit3d开发,然后ipa是没有assets.car文件的,外面的icon优先级高)。证书什么的我就不上去了,想试试的可以用自己的证书和描述文件。

以下重签方法任选一种
    1、重签方法一
    codesign -f -s "Apple Distribution: Hengsheng cheng (TB5KM6Y5DQ)" --entitlements ExportOptions.plist Payload/KKDemo.app
    2、重签方法二
    sigh resign
    3、重签方法三
    fastlane -> sigh
    fastlane sigh resign ./path/app.ipa --signing_identity "iPhone Distribution: Felix Krause" -p "my.mobileprovision"    

参考文档

Created by 程恒盛 on 2020/10/25.

Copyright © 2020 力王. All rights reserved.

copy请标明出处,感谢


你还对这些感兴趣吗

1、iOS实现HTML H5秒开、拦截请求替换资源、优化HTML加载速度

2、超级签名中最重要的一步:跳过双重认证,自动化脚本添加udid并下载描述文件(证书和bundleid不存在时,会自动创建)

3、脚本自动化批量修改ipa的icon、启动图、APP名称等(demo只修改icon,其他原理一样)、重签ipa

4、QMKKXProduct iOS技术分享

hsipareplaceicon's People

Contributors

hansenccc avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.