TDLibKit: Release build configuration gets stuck and never ends

When trying to build a project with TDLibKit added, using Release build configuration, the build never ends. But when trying to build using Debug build configuration everything is OK. I suppose, providing the compile command won’t give any info, really, but here is a screenshot: telegram-cloud-photo-size-2-5359409872015313623-x

As I remember, I was able to build Release, when generating .ipa file for BetterTG v2 release. So, in the beginning of December 2022 everything was working. Now I’ve tried some commits after that and none of them built.

I’ve created a minimal reproducible example for you to check out. It’s just a fresh created SwiftUI app with latest TDLibKit package added.

I’m not sure how xcodebuild works and what the issue is, but I have some thoughts:

  • XCode is building Release, combining all files to one compile command and is struggling to do that, whereas Debug is built using different compile commands.
  • The solution might be in separating TDLibKit into several packages, that would also help in this issue
  • Not using xcodebuild?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (17 by maintainers)

Commits related to this issue

Most upvoted comments

@levochkaa I would love to see https://github.com/Swiftgram/TDLibKit/issues/26 to be implemented.

Identifiable - AFAIK some TDLib objects may have non-unique properties.

Hashable - keep an eye on TdInt64 and similar types