Telegram-ios 运行ipa到iPhone上

需要外网环境下载代码(https://github.com/TelegramMessenger/Telegram-iOS)

  1. 下载代码: git clone --recursive -j8 https://github.com/TelegramMessenger/Telegram-iOS.git

  2. 设置build-system/template_minimal_development_configuration.json文件

    {

    "bundle_id": "com.yishuihuayuan.TelegraphPro", // 设置成自己项目的bundleid

    "api_id": "27520296",

    "api_hash": "2fce9ab4fe9a73225ee7b7e4b4f4625c", // api_id和api_hash 登录网站生成(https://core.telegram.org/api/obtaining_api_id)

    "team_id": "W394K7A46S", // 苹果开发者账号的teamid

    "app_center_id": "0",

    "is_internal_build": "true",

    "is_appstore_build": "false",

    "appstore_id": "0",

    "app_specific_url_scheme": "tg",

    "premium_iap_product_id": "",

    "enable_siri": false,

    "enable_icloud": false

    }

  3. 拷贝Telegram-iOS下的build-system部分内容到Home路径下,并且创建对应的profile文件,需要和权限和官方保持一致

  1. 生成自己环境的工程项目(执行完后,会自动打开Xcode)

    python3 build-system/Make/Make.py \

    复制代码
     --cacheDir="$HOME/telegram-bazel-cache" \
    
     generateProject \
    
     --configurationPath="$HOME/telegram-configuration/development_configuration.json" \
    
     --codesigningInformationPath="$HOME/telegram-configuration/fake-codesigning"
  2. 生成ipa文件

    python3 build-system/Make/Make.py \

    复制代码
     --cacheDir="$HOME/telegram-bazel-cache" \
    
     build \
    
     --configurationPath="$HOME/telegram-configuration/development_configuration.json" \
    
     --codesigningInformationPath="$HOME/telegram-configuration/fake-codesigning" \
    
     --buildNumber=100001 \
    
     --configuration=debug_arm64

choose from debug_universal, debug_arm64, debug_armv7, debug_sim_arm64, release_sim_arm64, release_arm64, release_armv7, release_universal

编译成功

问题1: error: unexpected input file: "-j7",error: unexpected input file: "-whole-module-optimization"

解决办法:vim build-system/Make/Make.py 注释对应的代码(96,97行)

相关推荐
CocoaKier14 小时前
苹果谷歌商店:如何监控并维护用户评分评论
ios·google·apple
iOS日常16 小时前
iOS设备崩溃日志获取与查看
ios·xcode
wangruofeng1 天前
AI 助力 Flutter 3.27 升级到 3.38 完整指南:两周踩坑与实战复盘
flutter·ios·ai编程
iOS日常2 天前
Xcode 垃圾清理
ios·xcode
开心就好20252 天前
不越狱能抓到 HTTPS 吗?在未越狱 iPhone 上抓取 HTTPS
后端·ios
傅里叶2 天前
iOS相机权限获取
flutter·ios
zhangkai3 天前
flutter存储知识点总结
flutter·ios
齐生13 天前
网络知识点 - TCP/IP 四层模型知识大扫盲
笔记·ios
IT技术分享社区3 天前
数码资讯:iPhone 18 Pro,十大升级细节浮出水面
ios·手机·iphone
嵌入式学习菌3 天前
https不校验证书实现及https接口实现
ios·iphone