Telegram-iOS icon indicating copy to clipboard operation
Telegram-iOS copied to clipboard

xcode 15 run error

Open alirezarabiei7239 opened this issue 1 year ago • 16 comments

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 271825126-da2f2caa-9e7f-4c05-883a-524a57e9e6f9

alirezarabiei7239 avatar Oct 08 '23 08:10 alirezarabiei7239

MacOS sonoma 14.0 Xcode version: 15.0 iOS version: 17.0

same error

w1217358955 avatar Oct 08 '23 08:10 w1217358955

What does xcode-select -p print?

ali-fareed avatar Oct 08 '23 16:10 ali-fareed

What does xcode-select -p print?

/Desktop/xcode/Xcode15.0.app/Contents/Developer

w1217358955 avatar Oct 09 '23 02:10 w1217358955

/Applications/Xcode.app/Contents/Developer

alirezarabiei7239 avatar Oct 09 '23 07:10 alirezarabiei7239

clean all build file:

  1. run python3 build-system/Make/Make.py clean
  2. deltetelegram-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)

williamleecn avatar Oct 11 '23 13:10 williamleecn

@ali-fareed can you please help me ?

alirezarabiei7239 avatar Nov 08 '23 12:11 alirezarabiei7239

  1. make sure your code base is up to date
  2. try git submodule update --recursive
  3. clean build file python3 build-system/Make/Make.py clean telegram-bazel-cache
  4. build again

In my case, I believe some outdated / bazel related submodules cause these errors.

andy-sheng avatar Nov 12 '23 11:11 andy-sheng

I am encountering the same error. Has this been solved yet?

imooccodejesse avatar Dec 09 '23 20:12 imooccodejesse

I am also facing this error. I have tried everything mentioned above. Nothing seems to be working.

DhruvGovani avatar Dec 10 '23 09:12 DhruvGovani

I'm also facing the same issue

infinigent-solutions avatar Dec 18 '23 09:12 infinigent-solutions

Nothing above working.

315567599 avatar Mar 05 '24 03:03 315567599

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.

naguilarp avatar Mar 14 '24 02:03 naguilarp