Telegram-iOS
Telegram-iOS copied to clipboard
xcode 15 run error
Description after successful build from terminal when i run the project i got this error :
Unable to discover swiftc command line tool info: Could not parse Swift versions from: Swift/ErrorType.swift:200: Fatal error: Error raised at top level: Error Domain=NSCocoaErrorDomain Code=4 "The file “swiftc” doesn’t exist." UserInfo= {NSFilePath=swiftc}
Environment Device: simulator
Xcode version: 15.0
iOS version: 17.0
App version: 10.0.3 and 10.1.1
MacOS sonoma 14.0 Xcode version: 15.0 iOS version: 17.0
same error
What does xcode-select -p
print?
What does
xcode-select -p
print?
/Desktop/xcode/Xcode15.0.app/Contents/Developer
/Applications/Xcode.app/Contents/Developer
clean all build file:
- run
python3 build-system/Make/Make.py clean
- delte
telegram-bazel-cache
rebuild bazel
but build third-party/libjxl
occur error:
-- Performing Test JXL_HWY_DISABLED_TARGETS_FORCED
-- Performing Test JXL_HWY_DISABLED_TARGETS_FORCED - Failed
-- Compiled IDs C:AppleClang, C++:AppleClang
-- Disabled AVX512 (set JPEGXL_ENABLE_AVX512 to enable it)
-- Disabled AVX512_ZEN4 (set JPEGXL_ENABLE_AVX512_ZEN4 to enable it)
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test ATOMICS_LOCK_FREE_INSTRUCTIONS
-- Performing Test ATOMICS_LOCK_FREE_INSTRUCTIONS - Failed
-- Performing Test ATOMICS_IN_LIBRARY
-- Performing Test ATOMICS_IN_LIBRARY - Failed
CMake Error at cmake/FindAtomics.cmake:49 (message):
Neither lock free instructions nor -latomic found.
Call Stack (most recent call first):
CMakeLists.txt:254 (find_package)
@ali-fareed can you please help me ?
- make sure your code base is up to date
- try
git submodule update --recursive
- clean build file
python3 build-system/Make/Make.py clean
telegram-bazel-cache
- build again
In my case, I believe some outdated / bazel related submodules cause these errors.
I am encountering the same error. Has this been solved yet?
I am also facing this error. I have tried everything mentioned above. Nothing seems to be working.
I'm also facing the same issue
Nothing above working.
Worked for me after 10 days, just opening in the Xcode and changing Project Format to 14.0 for Pods and 15.0 to my app folder. Plus signing. So weird...but yeah, worked.