首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Telegram IOS应用程序无法使用XCode 12.4构建

Telegram IOS应用程序无法使用XCode 12.4构建
EN

Stack Overflow用户
提问于 2021-06-28 01:13:47
回答 1查看 235关注 0票数 2

我正在尝试为我的模拟器构建最新的Telegram IOS应用程序,但我遇到了python错误。我已经按照下面提到的所有步骤进行了操作,并安装了Bazel和yasm https://github.com/TelegramMessenger/Telegram-iOS

我已经用Telegram 7.6和7.8试过了,性能是一样的。有人能帮帮忙吗?

代码语言:javascript
复制
bazel --version
bazel 4.1.0-homebrew

yasm --version
yasm 1.3.0

当我尝试生成XCode项目时,

代码语言:javascript
复制
python3 build-system/Make/Make.py \
    --bazel="$HOME/bazel-dist/bazel" \
    --cacheDir="$HOME/telegram-bazel-cache" \
    generateProject \
    --configurationPath="$HOME/telegram-configuration" \
    --disableExtensions \
    --disableProvisioningProfiles

我看到了这个错误

代码语言:javascript
复制
Traceback (most recent call last):
  File "build-system/Make/Make.py", line 560, in <module>
    generate_project(arguments=args)
  File "build-system/Make/Make.py", line 339, in generate_project
    bazel_command_line = BazelCommandLine(
  File "build-system/Make/Make.py", line 16, in __init__
    self.build_environment = BuildEnvironment(
  File "/Users/srcomp1/Downloads/Telegram-iOS-release-7.6/build-system/Make/BuildEnvironment.py", line 123, in __init__
    actual_bazel_version = get_bazel_version(self.bazel_path)
  File "/Users/srcomp1/Downloads/Telegram-iOS-release-7.6/build-system/Make/BuildEnvironment.py", line 66, in get_bazel_version
    command_result = run_executable_with_output(bazel_path, ['--version']).strip('\n')
  File "/Users/srcomp1/Downloads/Telegram-iOS-release-7.6/build-system/Make/BuildEnvironment.py", line 36, in run_executable_with_output
    process = subprocess.Popen(
  File "/Users/srcomp1/Downloads/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Users/srcomp1/Downloads/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/Users/srcomp1/bazel-dist/bazel'
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-07-03 22:24:29

这个问题是因为系统无法链接下载的Bazel来构建按照ReadMe指令下载的submodules.The bazel不能在我的XCode版本中工作。

通过下面的链接重新安装bazel会有所帮助

https://docs.bazel.build/versions/4.1.0/install-os-x.html

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68153604

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档