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

相关推荐
LorrestGump2 小时前
手游 iOS SDK 改用 CocoaPods 集成
ios
TheNextByte14 小时前
如何通过 4 种简单方法克隆 iPhone
ios·iphone
2501_916007475 小时前
iOS 证书如何创建,从能生成到能长期使用
android·macos·ios·小程序·uni-app·cocoa·iphone
00后程序员张7 小时前
AppStoreInfo.plist 在苹果上架流程中的生成方式和作用
android·小程序·https·uni-app·iphone·webview
2501_915106329 小时前
iOS App 测试方法,通过 Xcode、Instruments、Safari Inspector、克魔(KeyMob)等工具
android·ios·小程序·uni-app·iphone·xcode·safari
游戏开发爱好者89 小时前
对 iOS IPA 文件进行深度混淆的一种实现路径
android·ios·小程序·https·uni-app·iphone·webview
JZXStudio9 小时前
Swift 6 + MLX + SwiftUI:三位一体本地AI架构蓝图
前端·ios
TheNextByte110 小时前
如何将视频从 iPhone 发送到 Redmi
ios·iphone
2501_9160074710 小时前
Xcode 在 iOS 上架中的定位,多工具组合
android·macos·ios·小程序·uni-app·iphone·xcode
游戏开发爱好者810 小时前
uni-app 项目在 iOS 上架过程中常见的问题与应对方式
android·ios·小程序·https·uni-app·iphone·webview