Description
Checklist
- I am reporting an issue in existing functionality that does not work as intended
- I've searched for existing GitHub issues
Description
Telegram-iOS (master branch 45fa1b5) failed to build on MacOS 15.3 with Xcode 16.2
FYI, I used --overrideXcodeVersion option when generating Xcode project.
Expected Behavior
Should build without failure.
Actual Behavior
Build fails at BazelDependency target. Error message:
+ '[' ios_arm64 == ios_arm64 ']'
+ BUILD_ARCH=arm64
+ BUILD_DIR=bazel-out/ios_arm64-dbg-ios-arm64-min12.0-applebin_ios-ST-5c9f6dfc1c26/bin/third-party/webp/build_arm64
+ rm -rf bazel-out/ios_arm64-dbg-ios-arm64-min12.0-applebin_ios-ST-5c9f6dfc1c26/bin/third-party/webp/build_arm64
+ mkdir -p bazel-out/ios_arm64-dbg-ios-arm64-min12.0-applebin_ios-ST-5c9f6dfc1c26/bin/third-party/webp/build_arm64
++ pwd
+ CMAKE_DIR=/private/var/tmp/_bazel_0xderek/9b29627fd45eaf0283b91b9fcd5a860f/rules_xcodeproj.noindex/build_output_base/execroot/__main__/bazel-out/ios_arm64-dbg-ios-arm64-min12.0-applebin_ios-ST-5c9f6dfc1c26/bin/third-party/webp/build_arm64/cmake
+ rm -rf /private/var/tmp/_bazel_0xderek/9b29627fd45eaf0283b91b9fcd5a860f/rules_xcodeproj.noindex/build_output_base/execroot/__main__/bazel-out/ios_arm64-dbg-ios-arm64-min12.0-applebin_ios-ST-5c9f6dfc1c26/bin/third-party/webp/build_arm64/cmake
+ mkdir -p /private/var/tmp/_bazel_0xderek/9b29627fd45eaf0283b91b9fcd5a860f/rules_xcodeproj.noindex/build_output_base/execroot/__main__/bazel-out/ios_arm64-dbg-ios-arm64-min12.0-applebin_ios-ST-5c9f6dfc1c26/bin/third-party/webp/build_arm64/cmake
+ tar -xzf external/cmake_tar_gz/file/downloaded -C /private/var/tmp/_bazel_0xderek/9b29627fd45eaf0283b91b9fcd5a860f/rules_xcodeproj.noindex/build_output_base/execroot/__main__/bazel-out/ios_arm64-dbg-ios-arm64-min12.0-applebin_ios-ST-5c9f6dfc1c26/bin/third-party/webp/build_arm64/cmake
cmake-3.23.1-macos-universal/CMake.app/: Can't create 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/_CodeSignature/: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/bin/: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/CodeResources: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/doc/: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/Frameworks/: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/Info.plist: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/MacOS/: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/man/: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/PlugIns/: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/Resources/: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/share/: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/share/aclocal/: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
cmake-3.23.1-macos-universal/CMake.app/Contents/share/bash-completion/: Failed to create dir 'cmake-3.23.1-macos-universal/CMake.app'
...
The build fails at extracting cmake tarball which is required by webp (along with some other third-party dependencies).
Telegram-iOS/third-party/webp/BUILD
Line 49 in 45fa1b5
I did some research and found https://support.apple.com/en-hk/guide/mac-help/mchl07817563/mac might be relevant. After allowing iTerm to 'manager' other apps, the build succeeded.
![Image](https://private-user-images.githubusercontent.com/13254295/410585076-f2c41707-418a-48f6-89db-3e88fb371c23.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTQzMTIsIm5iZiI6MTczOTU1NDAxMiwicGF0aCI6Ii8xMzI1NDI5NS80MTA1ODUwNzYtZjJjNDE3MDctNDE4YS00OGY2LTg5ZGItM2U4OGZiMzcxYzIzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE3MjY1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcxNDE1NzQ3YTM0MTYzYTQyZmRlNGEyOTRjNjNmYWY0MDRjNWFhZTE2YjkyNTdiMTliN2MyZjU4ZDgxNDFlMTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.XD1LVV3rAcVql_6okiSBcTKkPtD-L-n848F80TsFr78)
I'm not sure if this only happens to me or not, but I think it may be helpful if others come across similar problems. Also I don't know why it's iTerm instead of something like bash. This is really weird, maybe I'm completely wrong. 🤦
Environment
Device: iPhone/iPad 14
iOS version: 18.2.1
App version: 11.6
45fa1b5