Telegram-iOS
Telegram-iOS copied to clipboard
generate error in Xcode15
Description
An error occurred while running the command
configurationPath="telegram-configuration-dev"
python3 build-system/Make/Make.py \
--cacheDir="$cachePath" \
generateProject \
--codesigningInformationPath="$mainPath/$configurationPath" \
--configurationPath="$mainPath/$configurationPath/appstore-configuration.json" \
--disableExtensions
Screenshots and Videos
Environment
Device: iPhone
CPU: M1 Max
MacOS version: sonoma 14.0
Xcode version: 15.0
iOS version: 17.0
App version: 10.1.1
Bazel version: 6.3.2
Error
Generating "Telegram/Telegram.xcodeproj" Starting local Bazel server and connecting to it... INFO: Invocation ID: d0bcbce3-1898-4d10-a1d8-64b8256d9cfa INFO: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=245 INFO: Reading rc options for 'run' from /Users/xxx/Desktop/workspace/telegram/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=-j9 --define=buildNumber=10000 --define=telegramVersion=3.3.1 --disk_cache=/Users/xxx/Desktop/workspace/telegram/Telegram-iOS-Build/bazel/dev-telegram-bazel-cache --override_repository=build_configuration=/Users/xxx/Desktop/workspace/telegram/Telegram-iOS/build-input/configuration-repository --//Telegram:disableExtensions --//Telegram:disableStripping --features=-swift.debug_prefix_map INFO: Reading rc options for 'run' from /Users/xxx/Desktop/workspace/telegram/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 --swiftcopt=-whole-module-optimization --per_file_copt=..m$,@-fno-objc-msgsend-selector-stubs --per_file_copt=..mm$,@-fno-objc-msgsend-selector-stubs --linkopt=-ld_classic --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 INFO: Found applicable config definition build:rules_xcodeproj_generator in file /private/var/tmp/_bazel_xxx/6a8d506510c6b56bcfb19405a2084479/execroot/main/bazel-out/darwin_arm64-fastbuild/bin/Telegram/Telegram_xcodeproj.bazelrc: --config=rules_xcodeproj INFO: Found applicable config definition common:rules_xcodeproj in file /private/var/tmp/_bazel_xxx/6a8d506510c6b56bcfb19405a2084479/execroot/main/bazel-out/darwin_arm64-fastbuild/bin/Telegram/Telegram_xcodeproj.bazelrc: --verbose_failures --cache_computed_file_digests=500000 INFO: Found applicable config definition build:rules_xcodeproj in file /private/var/tmp/_bazel_xxx/6a8d506510c6b56bcfb19405a2084479/execroot/main/bazel-out/darwin_arm64-fastbuild/bin/Telegram/Telegram_xcodeproj.bazelrc: --compilation_mode=dbg --experimental_action_cache_store_output_metadata --experimental_convenience_symlinks=ignore --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 INFO: Analyzed target @rules_xcodeproj_generated//generator/Telegram/Telegram_xcodeproj:Telegram_xcodeproj (620 packages loaded, 32551 targets configured). INFO: Found 1 target...
ERROR: /private/var/tmp/_bazel_xxx/6a8d506510c6b56bcfb19405a2084479/rules_xcodeproj.noindex/build_output_base/external/build_bazel_rules_swift/tools/worker/BUILD:113:10:
Compiling tools/worker/worker_main.cc [for tool] failed: undeclared inclusion(s) in rule '@build_bazel_rules_swift//tools/worker:worker':
this rule is missing dependency declarations for the following files included by 'tools/worker/worker_main.cc':
'/Users/xxx/Desktop/xcode/Xcode15.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/algorithm' '/Users/xxx/Desktop/xcode/Xcode15.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__assert'
... ... ... ... ... ...
'/Users/xxx/Desktop/xcode/Xcode15.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/cstdarg' '/Users/xxx/Desktop/xcode/Xcode15.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/map' '/Users/xxx/Desktop/xcode/Xcode15.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__tree' INFO: Elapsed time: 26.514s, Critical Path: 0.61s INFO: 23 processes: 23 internal. FAILED: Build did NOT complete successfully ERROR: Build failed. Not running target
Description
An error occurred while running the command
configurationPath="telegram-configuration-dev" python3 build-system/Make/Make.py \ --cacheDir="$cachePath" \ generateProject \ --codesigningInformationPath="$mainPath/$configurationPath" \ --configurationPath="$mainPath/$configurationPath/appstore-configuration.json" \ --disableExtensions
Screenshots and Videos
![]()
Environment
Device:
iPhone
CPU:
M1 Max
MacOS version:
sonoma 14.0
Xcode version:
15.0
iOS version:
17.0
App version:
10.1.1
Bazel version:
6.3.2
Error
Generating "Telegram/Telegram.xcodeproj"
Starting local Bazel server and connecting to it...
INFO: Invocation ID: d0bcbce3-1898-4d10-a1d8-64b8256d9cfa
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=245
INFO: Reading rc options for 'run' from /Users/xxx/Desktop/workspace/telegram/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=-j9 --define=buildNumber=10000 --define=telegramVersion=3.3.1 --disk_cache=/Users/xxx/Desktop/workspace/telegram/Telegram-iOS-Build/bazel/dev-telegram-bazel-cache --override_repository=build_configuration=/Users/xxx/Desktop/workspace/telegram/Telegram-iOS/build-input/configuration-repository --//Telegram:disableExtensions --//Telegram:disableStripping --features=-swift.debug_prefix_map
INFO: Reading rc options for 'run' from /Users/xxx/Desktop/workspace/telegram/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 --swiftcopt=-whole-module-optimization --per_file_copt=..m$,@-fno-objc-msgsend-selector-stubs --per_file_copt=..mm$,@-fno-objc-msgsend-selector-stubs --linkopt=-ld_classic --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
INFO: Found applicable config definition build:rules_xcodeproj_generator in file /private/var/tmp/_bazel_xxx/6a8d506510c6b56bcfb19405a2084479/execroot/main/bazel-out/darwin_arm64-fastbuild/bin/Telegram/Telegram_xcodeproj.bazelrc: --config=rules_xcodeproj
INFO: Found applicable config definition common:rules_xcodeproj in file /private/var/tmp/_bazel_xxx/6a8d506510c6b56bcfb19405a2084479/execroot/main/bazel-out/darwin_arm64-fastbuild/bin/Telegram/Telegram_xcodeproj.bazelrc: --verbose_failures --cache_computed_file_digests=500000
INFO: Found applicable config definition build:rules_xcodeproj in file /private/var/tmp/_bazel_xxx/6a8d506510c6b56bcfb19405a2084479/execroot/main/bazel-out/darwin_arm64-fastbuild/bin/Telegram/Telegram_xcodeproj.bazelrc: --compilation_mode=dbg --experimental_action_cache_store_output_metadata --experimental_convenience_symlinks=ignore --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
INFO: Analyzed target @rules_xcodeproj_generated//generator/Telegram/Telegram_xcodeproj:Telegram_xcodeproj (620 packages loaded, 32551 targets configured).
INFO: Found 1 target...
ERROR: /private/var/tmp/_bazel_xxx/6a8d506510c6b56bcfb19405a2084479/rules_xcodeproj.noindex/build_output_base/external/build_bazel_rules_swift/tools/worker/BUILD:113:10: Compiling tools/worker/worker_main.cc [for tool] failed: undeclared inclusion(s) in rule '@build_bazel_rules_swift//tools/worker:worker': this rule is missing dependency declarations for the following files included by 'tools/worker/worker_main.cc':
'/Users/xxx/Desktop/xcode/Xcode15.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/algorithm'
'/Users/xxx/Desktop/xcode/Xcode15.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__assert'
... ...
... ...
... ...
'/Users/xxx/Desktop/xcode/Xcode15.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/cstdarg'
'/Users/xxx/Desktop/xcode/Xcode15.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/map'
'/Users/xxx/Desktop/xcode/Xcode15.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__tree'
INFO: Elapsed time: 26.514s, Critical Path: 0.61s
INFO: 23 processes: 23 internal.
FAILED: Build did NOT complete successfully
ERROR: Build failed. Not running target
I have exactly the same error. Have you found a solution?
I have exactly the same error:
ERROR: /private/var/tmp/_bazel_xxx/726faa8d00ef37272a30f16cd3cc4342/rules_xcodeproj.noindex/build_output_base/external/build_bazel_rules_swift/tools/worker/BUILD:113:10: Compiling tools/worker/worker_main.cc [for tool] failed: undeclared inclusion(s) in rule '@build_bazel_rules_swift//tools/worker:worker': this rule is missing dependency declarations for the following files included by 'tools/worker/worker_main.cc':