TelegramMessenger / Telegram-iOS

Telegram-iOS
5.89k stars 1.57k forks source link

'OSSpinLock' is deprecated: first deprecated in iOS 10.0 #949

Open jalalimehdi opened 1 year ago

jalalimehdi commented 1 year ago

Xcode building for iOS Simulator show this error 'OSSpinLock' is deprecated: first deprecated in iOS 10.0

I changed ASRecursiveUnfairLock.h:14 (Telegram-iOS/submodules/AsyncDisplayKit/Source/PublicHeaders/AsyncDisplayKit) from

if defined(aarch64)

to

if defined(aarch64) || IPHONE_OS_VERSION_MAX_ALLOWED >= IPHONE_10_0

tboxSol commented 1 year ago

I changed ASRecursiveUnfairLock.h:14 (Telegram-iOS/submodules/AsyncDisplayKit/Source/PublicHeaders/AsyncDisplayKit) from

if defined(aarch64)

to

if defined(aarch64) || IPHONE_OS_VERSION_MAX_ALLOWED >= IPHONE_10_0

Did that work for you?

nikGayko commented 1 year ago

I commented two lines line 18 "-Werror", in submodules/AsyncDisplayKit/BUILD line 10 "-warnings-as-errors", in submodules/Display/BUILD This error become warning and I builded successfully

Xiangao2018 commented 1 year ago

Same issue

xiky commented 1 year ago

Xcode building for iOS Simulator show this error 'OSSpinLock' is deprecated: first deprecated in iOS 10.0

I changed ASRecursiveUnfairLock.h:14 (Telegram-iOS/submodules/AsyncDisplayKit/Source/PublicHeaders/AsyncDisplayKit) from #if defined(aarch64) to #if defined(aarch64) || IPHONE_OS_VERSION_MAX_ALLOWED >= IPHONE_10_0

same issue, it works for me, thank you

Zhuzhune commented 1 year ago

Not me. Please. What i can do? Vào Th 2, 10 thg 4, 2023 lúc 09:33 Livy Yao @.***> đã viết:

Xcode building for iOS Simulator show this error 'OSSpinLock' is deprecated: first deprecated in iOS 10.0

I changed ASRecursiveUnfairLock.h:14 (Telegram-iOS/submodules/AsyncDisplayKit/Source/PublicHeaders/AsyncDisplayKit) from #if defined(aarch64) to #if defined(aarch64) || IPHONE_OS_VERSION_MAX_ALLOWED >= IPHONE_10_0

same issue, it works for me, thank you

— Reply to this email directly, view it on GitHub https://github.com/TelegramMessenger/Telegram-iOS/issues/949#issuecomment-1501316160, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6FMFH322XEU5FP5BRYDCY3XANWPXANCNFSM6AAAAAATQGHUCA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

xiky commented 1 year ago

just like @jalalimehdi said, change ASRecursiveUnfairLock.h:14 from #if defined(aarch64) to #if defined(aarch64) || __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0

DominikBucher12 commented 3 months ago

I commented two lines line 18 "-Werror", in submodules/AsyncDisplayKit/BUILD line 10 "-warnings-as-errors", in submodules/Display/BUILD This error become warning and I builded successfully

Funny enough, year later this still works :D :D