TelegramMessenger / Telegram-iOS

Telegram-iOS
5.97k stars 1.59k forks source link

xcode Build error #935

Open LandfallSituated opened 1 year ago

LandfallSituated commented 1 year ago

hi I'm a newbie about iOS development and bazel, Building the project on macOS Monterey 12.6.1 with xcode 14.1,follow the steps in readme.md (generate xcode project) there are some errors when trying build xcode project. image It is looks like a target platform problem. Modify the deployment target options but this error still exists image

Then I modify the value of minimum_os_version values from 11.0 to 9.0 in file: Telegram/BUILD image

some different problem appears: image

So what am I supposed to do?

wweevv-johndpope commented 1 year ago

I raised a stack of legacy tech debt tickets to upgrade min target to ios 13. these findings may help you https://github.com/TelegramMessenger/Telegram-iOS/issues/829

prikhodkoalexey commented 1 year ago

I have the same problem. Tried setting Xcode C Language Dialect to GNU99 - didn't help.

ali-fareed commented 1 year ago

There is an issue that affects simulator builds at the moment. As a workaround, build for a real device, or use Apple Silicon-based hardware.