Мне нужно собрать
исходный код телеграм для iOS . Я скачал репозитория через команду написаную на гитхабе:
git clone --recursive -j8 https://github.com/TelegramMessenger/Telegram-iOS.git
Затем выполнил
python3 build-system/Make/Make.py --overrideXcodeVersion \
--cacheDir="$HOME/telegram-bazel-cache" \
generateProject \
--configurationPath=path-to-configuration.json \
--codesigningInformationPath=path-to-provisioning-data \
--disableProvisioningProfiles
И получил:
Overriding the required Xcode version 16.0 with 10.2 as reported by 'xcode-select -p'
No matching processes belonging to you were found
Starting local Bazel server and connecting to it...
... still trying to connect to local Bazel server (636) after 10 seconds ...
INFO: Analyzed target //Telegram:Telegram_xcodeproj (9 packages loaded, 21 targets configured).
INFO: Found 1 target...
Target //Telegram:Telegram_xcodeproj up-to-date:
bazel-bin/Telegram/Telegram_xcodeproj-runner.sh
INFO: Elapsed time: 17.824s, Critical Path: 0.10s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/Telegram/Telegram_xcodeproj-runner.sh
Generating "Telegram/Telegram.xcodeproj"
Starting local Bazel server and connecting to it...
INFO: Invocation ID: a6abbd82-be25-4805-b17f-a1865b88cf74
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=80
INFO: Reading rc options for 'run' from /Users/svetlanakuzina/Downloads/Telegram-iOS/xcodeproj.bazelrc:
Inherited 'build' options: --announce_rc --features=swift.use_global_module_cache --verbose_failures --experimental_remote_cache_async --features=swift.enable_batch_mode --swiftcopt=-j3 --define=buildNumber=10000 --define=telegramVersion=11.2 --disk_cache=/Users/svetlanakuzina/telegram-bazel-cache --override_repository=build_configuration=/Users/svetlanakuzina/Downloads/Telegram-iOS/build-input/configuration-repository --//Telegram:disableExtensions --//Telegram:disableStripping --features=-swift.debug_prefix_map
INFO: Reading rc options for 'run' from /Users/svetlanakuzina/Downloads/Telegram-iOS/.bazelrc:
Inherited 'build' options: --action_env=ZERO_AR_DATE=1 --apple_platform_type=ios --enable_platform_specific_config --apple_crosstool_top=@local_config_apple_cc//:toolchain --crosstool_top=@local_config_apple_cc//:toolchain --host_crosstool_top=@local_config_apple_cc//:toolchain --cxxopt=-std=c++17 --per_file_copt=third-party/webrtc/.*.cpp$,@-std=c++17 --per_file_copt=third-party/webrtc/.*.cc$,@-std=c++17 --per_file_copt=third-party/webrtc/.*.mm$,@-std=c++17 --per_file_copt=submodules/LottieMeshSwift/LottieMeshBinding/Sources/.*.mm$,@-std=c++17 --per_file_copt=submodules/LottieCpp/lottiecpp/Sources/.*.mm$,@-std=c++17 --per_file_copt=submodules/LottieCpp/lottiecpp/Sources/.*.cpp$,@-std=c++17 --per_file_copt=submodules/LottieCpp/lottiecpp/PlatformSpecific/Darwin/Sources/.*.mm$,@-std=c++17 --per_file_copt=submodules/LottieCpp/lottiecpp/PlatformSpecific/Darwin/Sources/.*.cpp$,@-std=c++17 --per_file_copt=Tests/LottieMetalTest/SoftwareLottieRenderer/Sources/.*.cpp$,@-std=c++17 --per_file_copt=Tests/LottieMetalTest/SoftwareLottieRenderer/Sources/.*.mm$,@-std=c++17 --swiftcopt=-whole-module-optimization --per_file_copt=.*.m$,@-fno-objc-msgsend-selector-stubs --per_file_copt=.*.mm$,@-fno-objc-msgsend-selector-stubs --features=debug_prefix_map_pwd_is_dot --features=swift.cacheable_swiftmodules --features=swift.debug_prefix_map --features=swift.enable_vfsoverlays --strategy=Genrule=standalone --spawn_strategy=standalone --strategy=SwiftCompile=standalone --define RULES_SWIFT_BUILD_DUMMY_WORKER=1 --noenable_bzlmod
INFO: Found applicable config definition common:rules_xcodeproj_generator in file /private/var/tmp/_bazel_svetlanakuzina/f82366feef8a4c77e6fab7857ffa8496/execroot/__main__/bazel-out/darwin_x86_64-fastbuild/bin/Telegram/Telegram_xcodeproj.bazelrc: --config=rules_xcodeproj
INFO: Found applicable config definition common:rules_xcodeproj in file /private/var/folders/l8/92sjq78x4215m7vgnqqns_br0000gn/T/tmp.ps0uQ4jX/pre_xcodeproj.bazelrc: --xcode_version=10E125 --repo_env=DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer --repo_env=USE_CLANG_CL=10E125 --repo_env=XCODE_VERSION=10E125
INFO: Found applicable config definition common:rules_xcodeproj in file /private/var/tmp/_bazel_svetlanakuzina/f82366feef8a4c77e6fab7857ffa8496/execroot/__main__/bazel-out/darwin_x86_64-fastbuild/bin/Telegram/Telegram_xcodeproj.bazelrc: --verbose_failures --cache_computed_file_digests=500000 --compilation_mode=dbg --experimental_action_cache_store_output_metadata --experimental_convenience_symlinks=ignore --experimental_use_cpp_compile_action_args_params_file --define=apple.experimental.tree_artifact_outputs=1 --features=apple.swizzle_absolute_xcttestsourcelocation --features=oso_prefix_is_pwd --features=relative_ast_path --features=swift.cacheable_swiftmodules --features=swift.index_while_building --features=swift.use_global_index_store --features=swift.use_global_module_cache --nolegacy_important_outputs --show_result=0 --noworker_sandboxing --spawn_strategy=remote,worker,local
ERROR: /Users/svetlanakuzina/Downloads/Telegram-iOS/Telegram/BUILD:1106:15: in plist_fragment rule //Telegram:TelegramUIInfoPlist:
Traceback (most recent call last):
File "/Users/svetlanakuzina/Downloads/Telegram-iOS/build-system/bazel-utils/plist_fragment.bzl", line 22, column 17, in _plist_fragment
fail("Expected value for --define={} was not found".format(key))
Error in fail: Expected value for --define=! a random string ! was not found
ERROR: /Users/svetlanakuzina/Downloads/Telegram-iOS/Telegram/BUILD:1106:15: Analysis of target '//Telegram:TelegramUIInfoPlist' failed
ERROR: Analysis of target '@@rules_xcodeproj_generated//generator/Telegram/Telegram_xcodeproj:Telegram_xcodeproj' failed; build aborted: Analysis failed
INFO: Elapsed time: 14.860s, Critical Path: 0.06s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target
FAILED:
Fetching repository @@local_config_xcode; starting
Fetching repository @@local_config_apple_cc; starting
Traceback (most recent call last):
File "/Users/svetlanakuzina/Downloads/Telegram-iOS/build-system/Make/Make.py", line 1049, in <module>
generate_project(bazel=bazel_path, arguments=args)
File "/Users/svetlanakuzina/Downloads/Telegram-iOS/build-system/Make/Make.py", line 566, in generate_project
generate(
File "/Users/svetlanakuzina/Downloads/Telegram-iOS/build-system/Make/ProjectGeneration.py", line 58, in generate
generate_xcodeproj(build_environment, disable_extensions, disable_provisioning_profiles, include_release, generate_dsym, configuration_path, bazel_app_arguments, target_name)
File "/Users/svetlanakuzina/Downloads/Telegram-iOS/build-system/Make/ProjectGeneration.py", line 51, in generate_xcodeproj
call_executable(bazel_generate_arguments)
File "/Users/svetlanakuzina/Downloads/Telegram-iOS/build-system/Make/BuildEnvironment.py", line 81, in call_executable
subprocess.check_call(resolved_arguments, env=resolved_env)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/svetlanakuzina/Downloads/Telegram-iOS/build-input/bazel-7.3.1-darwin-x86_64', 'run', '//Telegram:Telegram_xcodeproj', '--override_repository=build_configuration=/Users/svetlanakuzina/Downloads/Telegram-iOS/build-input/configuration-repository', '--//Telegram:disableExtensions', '--//Telegram:disableStripping']' returned non-zero exit status 1.