peter-iakovlev / Telegram

Telegram Messenger for iOS
3.21k stars 855 forks source link

mtprotokit branch mismatch with new version of telegram. #290

Open mehdin13 opened 5 years ago

mehdin13 commented 5 years ago

after clone project , xcode prompts a lot of errors, such as:

No visible @interface for 'MTSocksProxySettings' declares the selector 'initWithIp:port:username:password:secret:'

because secret property not define in MTSocksProxySettings class. (in MtProtoKit @ 515bcf4)

adm1n007 commented 5 years ago

secret is missing. not just MTSocksProxySettings class.

adm1n007 commented 5 years ago

~/Desktop/Telegram/LegacyDatabase/TGShareMtSerialization.m:66:77: No visible @interface for 'MTDatacenterAddress' declares the selector 'initWithIp:port:preferForMedia:restrictToTcp:cdn:preferForProxy:secret:'

while building LegacyDatabase

gitty-kid commented 5 years ago

This is updated just update to latest commit git submodule update --init --recursive --remote

hoootan commented 5 years ago

@Shalabh-Soni can you tell me which commit is correct???

gitty-kid commented 5 years ago

@hoootan 8e44fa1985d2793f0c36aa6fd63b4b61409c73b8 for MTProtoKit, however with --remote it will fetch the latest on its own... commit was around 21 hrs back.

hoootan commented 5 years ago

@Shalabh-Soni look at this, I'm using last commit but have problem to build.

screen shot 2018-09-11 at 11 04 11 pm
gitty-kid commented 5 years ago

What is the Error you getting while building the project?

hoootan commented 5 years ago

@Shalabh-Soni missing secret parameter in MTDataCenter and missing some methods on MTEnviroment

gitty-kid commented 5 years ago

but exactly this is what is fixed in the last commit you can check the history, are you sure the MTProtoKit is picked from your repo - i mean the main project links to it ?

hoootan commented 5 years ago

@Shalabh-Soni I don't know what I've done now, but its fixed, thats unbelievable 👍

gitty-kid commented 5 years ago

@hoootan ;-) Cheers! i'm off to doing it on a device now

hoootan commented 5 years ago

@Shalabh-Soni good luck buddy <3