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

相关推荐
CareyWYR2 小时前
我开发了一款工具箱类型APP:CreativeUtil
ios·app·mac
2501_915918413 小时前
只有 Flutter IPA 文件,通过多工具组合完成有效混淆与保护
android·flutter·ios·小程序·uni-app·iphone·webview
川石课堂软件测试9 小时前
Android和iOS APP平台测试的区别
android·数据库·ios·oracle·单元测试·测试用例·cocoa
liusheng9 小时前
Capacitor + React 的 iOS 侧滑返回手势
前端·ios
2501_9159184110 小时前
除了 Perfdog,如何在 Windows 环境中完成 iOS App 的性能测试工作
android·ios·小程序·https·uni-app·iphone·webview
七月巫山晴11 小时前
【iOS】NSString&NSRange&NSCharacterSet
ios·cocoa·iphone
h-189-53-67120711 小时前
2026(原创)Guideline 4.3(a) - Design - Spam苹果上架iOS审核被拒AppStore卡审解决办法思路
ios
杨武博13 小时前
ios 启动图不生效问题
ios
2501_9151063214 小时前
常见 iOS 抓包工具的使用方式与组合思路
android·ios·小程序·https·uni-app·iphone·webview
SY_FC14 小时前
niapp开发的 H5 被app嵌套,H5调用ios和安卓方法
android·ios·cocoa