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

相关推荐
UTF_819 小时前
iOS动画浅谈
ios·客户端
2501_9160074720 小时前
HTTPS 抓包的流程,代理抓包、设备数据线直连抓包、TCP 数据分析
网络协议·tcp/ip·ios·小程序·https·uni-app·iphone
eleven409621 小时前
穿透内容审查与阻断:基于 DNS TXT 记录的动态服务发现与客户端安全加固实践
网络协议·ios·app
游戏开发爱好者81 天前
React Native iOS 代码如何加密,JS 打包 和 IPA 混淆
android·javascript·react native·ios·小程序·uni-app·iphone
A澄澄1 天前
MIX BypassA12+下载注册
windows·电脑·iphone
2501_916007471 天前
在非 Xcode 环境下完成苹果开发编译的记录 iOS 编译与调试
ide·vscode·ios·cocoa·个人开发·xcode·敏捷流程
1024小神1 天前
记录xcode项目swiftui配置APP加载启动图
前端·ios·swiftui·swift
2501_915918411 天前
iOS mobileprovision 描述文件管理,新建、下载和内容查看
android·ios·小程序·https·uni-app·iphone·webview
00后程序员张1 天前
iOS 应用程序使用历史记录和耗能记录怎么查?
android·ios·小程序·https·uni-app·iphone·webview
Coolmuster_cn1 天前
删除 iPhone/iPad 上所有内容和设置的 4 种有效方法
ios·iphone·ipad