TelegramMessenger / Telegram-iOS

Telegram-iOS
5.89k stars 1.57k forks source link

xcode 15 run error #1235

Open alirezarabiei7239 opened 11 months ago

alirezarabiei7239 commented 11 months ago

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
w1217358955 commented 11 months ago

MacOS sonoma 14.0 Xcode version: 15.0 iOS version: 17.0

same error

ali-fareed commented 11 months ago

What does xcode-select -p print?

w1217358955 commented 11 months ago

What does xcode-select -p print?

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

alirezarabiei7239 commented 11 months ago

/Applications/Xcode.app/Contents/Developer

williamleecn commented 11 months ago

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)
alirezarabiei7239 commented 10 months ago

@ali-fareed can you please help me ?

andy-sheng commented 9 months ago
  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.

imooccodejesse commented 9 months ago

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

DhruvGovani commented 9 months ago

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

infinigent-solutions commented 8 months ago

I'm also facing the same issue

315567599 commented 6 months ago

Nothing above working.

naguilarp commented 5 months ago

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.