Swiftgram / TDLibKit

Native Swift wrapper for Telegram's TDLib. Available on iOS, macOS, watchOS, tvOS and visionOS.
MIT License
106 stars 23 forks source link

[workaround available] Build stuck on Apple Silicon with Xcode 13.3+ #7

Closed Kylmakalle closed 2 years ago

Kylmakalle commented 2 years ago

Unknown bug affects users of TDLibKit. Your build will stuck if you're building with Xcode 13.3(.1) on Apple Silicon. This issue does not affect x86_64 environment (Intel Macs).

May related to this https://developer.apple.com/forums/thread/704607 Will be probably fixed by Apple in further Xcode releases

Workarounds

Seen at https://github.com/Swiftgram/TDLibKit/issues/5#issuecomment-1099416999, https://github.com/Swiftgram/TDLibKit/issues/5#issuecomment-1105822082 and couple more reports in private.

Kylmakalle commented 2 years ago

There might be some related issues targeting Swift 5.6

Probably a fix

dchudov commented 2 years ago

@Kylmakalle Is there any possible option to exclude building TDLibKit framework for armv7 architecture? The whole project is arm64, but embedded SPM did not inherit this rule and it seems it doesn't have its own. It could be a timesaver for a release. Thank you.

Kylmakalle commented 2 years ago

@dchudov please file a separate issue

Kylmakalle commented 2 years ago

Latest release was built and tested with Xcode 13.4.1 successfully.

Can you please try it with Xcode 13.4.1? @dchudov @happymaskterriblefate @sapoepsilon

https://github.com/Swiftgram/TDLibKit/releases/tag/1.2.1-tdlib-1.8.3-047246f3

Kylmakalle commented 2 years ago

Reopen if needed