overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
5.06k stars 856 forks source link

Fail to build the project #440

Open openaphid opened 4 years ago

openaphid commented 4 years ago

I couldn't build the project caused by missing files. I think some commits might be not pushed into the repo correctly:

  1. The revision of the submodule telegram-ios is old, which doesn't have files like LineBulletsRenerer.swift (there was a typo in the file name and it has been fixed in upstream)
  2. core-xprojects/GraphCore/GraphCore.xcodeproj/project.pbxproj has an incorrect path ../../../../../../../../../../../builds/jAXw2Tf8/0/overtake/telegrammacos/submodules/telegram-ios/submodules/GraphCore/Sources/Charts/Controllers/Stacked Bars/TwoAxisStepBarsChartController.swift
zweeltow commented 4 years ago

Can you try again now, please?

openaphid commented 4 years ago

Thanks for fixing the errors. Now I have a new build issue:

Telegram-Mac/StorageUsageController.swift:437:113: Value of type 'MediaBox' has no member 'allFileContexts'

https://github.com/overtake/TelegramSwift/blob/master/Telegram-Mac/StorageUsageController.swift#L437

_ = showModalProgress(signal: combineLatest(clearImageCache(), context.account.postbox.mediaBox.allFileContexts() |> mapToSignal { clearCache(path, excludes: $0) })
tubignat commented 4 years ago

Facing the same issue with allFileContexts. @openaphid have you managed to resolve it?

openaphid commented 4 years ago

@tubignat still unlucky about it. It seems there are some code changes that are not present in the repo. The iOS app is easier to deal with though.