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

'OSSpinLock' is deprecated: first deprecated in iOS 10.0

Open jalalimehdi opened this issue 2 years ago • 7 comments

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

jalalimehdi avatar Jan 03 '23 23:01 jalalimehdi

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?

tboxSol avatar Feb 09 '23 21:02 tboxSol

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

nikGayko avatar Feb 25 '23 11:02 nikGayko

Same issue

Xiangao2018 avatar Mar 06 '23 07:03 Xiangao2018

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

xiky avatar Apr 10 '23 02:04 xiky

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: @.***>

Zhuzhune avatar Apr 10 '23 03:04 Zhuzhune

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

xiky avatar Apr 11 '23 02:04 xiky

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

DominikBucher12 avatar May 14 '24 21:05 DominikBucher12