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行)

相关推荐
未来侦察班3 小时前
一晃13年过去了,苹果的Airdrop依然很坚挺。
macos·ios·苹果vision pro
锐意无限9 小时前
Swift 扩展归纳--- UIView
开发语言·ios·swift
符哥20089 小时前
用Apollo + RxSwift + RxCocoa搭建一套网络请求框架
网络·ios·rxswift
文件夹__iOS13 小时前
AsyncStream 进阶实战:SwiftUI 全局消息流极简实现
ios·swiftui·swift
2501_9160088916 小时前
深入解析iOS机审4.3原理与混淆实战方法
android·java·开发语言·ios·小程序·uni-app·iphone
忆江南16 小时前
Flutter深度全解析
ios
山水域16 小时前
Swift 6 严格并发检查:@Sendable 与 Actor 隔离的深度解析
ios
楚轩努力变强17 小时前
iOS 自动化环境配置指南 (Appium + WebDriverAgent)
javascript·学习·macos·ios·appium·自动化
BBNbQKHXygfU2 天前
课程管理平台 SSM 技术栈:Java EE、Mysql-5.6、Spring、SpringM...
iphone
游戏开发爱好者82 天前
日常开发与测试的 App 测试方法、查看设备状态、实时日志、应用数据
android·ios·小程序·https·uni-app·iphone·webview