Telegram не поддерживается Xcode 8
Я попытался загрузить исходный код телеграммы " http://www.telegramdownload.com/download-telegram-source-codes" и запустить его, используя мой Xcode 8, но я получил следующие ошибки
"_BN_rshift1", referenced from:
_MTCheckIsSafePrime in MtProtoKit iOS(MTEncryption.o)
"_BIO_new", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
"_BIO_write", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
"_BIO_s_mem", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
"_BN_CTX_new", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
_MTExp in MtProtoKit iOS(MTEncryption.o)
_MTCheckIsSafePrime in MtProtoKit iOS(MTEncryption.o)
_MTCheckIsSafeGAOrB in MtProtoKit iOS(MTEncryption.o)
_MTCheckMod in MtProtoKit iOS(MTEncryption.o)
"_BN_sub", referenced from:
_MTCheckIsSafePrime in MtProtoKit iOS(MTEncryption.o)
_MTCheckIsSafeGAOrB in MtProtoKit iOS(MTEncryption.o)
"_BN_new", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
_MTExp in MtProtoKit iOS(MTEncryption.o)
_MTCheckIsSafePrime in MtProtoKit iOS(MTEncryption.o)
_MTCheckIsSafeGAOrB in MtProtoKit iOS(MTEncryption.o)
"_BN_value_one", referenced from:
_MTCheckIsSafePrime in MtProtoKit iOS(MTEncryption.o)
_MTCheckIsSafeGAOrB in MtProtoKit iOS(MTEncryption.o)
"_AES_ige_encrypt", referenced from:
_MTAesEncryptInplace in MtProtoKit iOS(MTEncryption.o)
_MTAesEncryptInplaceAndModifyIv in MtProtoKit iOS(MTEncryption.o)
_MTAesDecryptInplace in MtProtoKit iOS(MTEncryption.o)
_MTAesDecryptInplaceAndModifyIv in MtProtoKit iOS(MTEncryption.o)
_MTAesEncrypt in MtProtoKit iOS(MTEncryption.o)
_MTAesDecrypt in MtProtoKit iOS(MTEncryption.o)
"_BN_num_bits", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
_MTExp in MtProtoKit iOS(MTEncryption.o)
"_BN_cmp", referenced from:
_MTCheckIsSafeGAOrB in MtProtoKit iOS(MTEncryption.o)
"_PEM_read_bio_RSAPublicKey", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
"_BN_CTX_free", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
_MTExp in MtProtoKit iOS(MTEncryption.o)
_MTCheckIsSafePrime in MtProtoKit iOS(MTEncryption.o)
_MTCheckIsSafeGAOrB in MtProtoKit iOS(MTEncryption.o)
_MTCheckMod in MtProtoKit iOS(MTEncryption.o)
"_BN_free", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
_MTExp in MtProtoKit iOS(MTEncryption.o)
_MTCheckIsSafePrime in MtProtoKit iOS(MTEncryption.o)
_MTCheckIsSafeGAOrB in MtProtoKit iOS(MTEncryption.o)
_MTCheckMod in MtProtoKit iOS(MTEncryption.o)
"_RSA_free", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
"_BN_mod_word", referenced from:
_MTCheckMod in MtProtoKit iOS(MTEncryption.o)
"_BN_bn2bin", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
_MTExp in MtProtoKit iOS(MTEncryption.o)
"_BN_is_prime_ex", referenced from:
_MTCheckIsSafePrime in MtProtoKit iOS(MTEncryption.o)
"_BIO_free", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
"_BN_mod_exp", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
_MTExp in MtProtoKit iOS(MTEncryption.o)
"_AES_set_decrypt_key", referenced from:
_MTAesDecryptInplace in MtProtoKit iOS(MTEncryption.o)
_MTAesDecryptInplaceAndModifyIv in MtProtoKit iOS(MTEncryption.o)
_MTAesDecrypt in MtProtoKit iOS(MTEncryption.o)
"_BN_bin2bn", referenced from:
_MTRsaEncrypt in MtProtoKit iOS(MTEncryption.o)
_MTExp in MtProtoKit iOS(MTEncryption.o)
_MTCheckIsSafePrime in MtProtoKit iOS(MTEncryption.o)
_MTCheckIsSafeGAOrB in MtProtoKit iOS(MTEncryption.o)
_MTCheckMod in MtProtoKit iOS(MTEncryption.o)
"_AES_set_encrypt_key", referenced from:
_MTAesEncryptInplace in MtProtoKit iOS(MTEncryption.o)
_MTAesEncryptInplaceAndModifyIv in MtProtoKit iOS(MTEncryption.o)
_MTAesEncrypt in MtProtoKit iOS(MTEncryption.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
и я обнаружил, что мне нужно установить универсальные рамки, но я всегда получаю сообщение об ошибке
1 ответ
Решение
Шаги, чтобы заставить это работать:
- Загрузите старый Xcode, Xcode 7.x или старше. Этот ответ поможет вам установить его рядом с вашей актуальной версией.
- Скачайте iOS Universal Frameworks и установите его, используя Old Xcode Path. Используйте Real Framework.
- Загрузите код с этой неофициальной, но рабочей версии.
- Откройте файл проекта Telegram Xcode Project> Telegraph Target > Настройки сборки> Поиск путей поиска в заголовке > MtProotoKit>> сделайте его рекурсивным.
- НЕ принимайте всплывающее окно с сообщением об ошибке платформы POP, которая появится для вас. Отмените его и запустите приложение независимо от этой ошибки, оно будет успешно запущено.
- установите appID внутри TGTelegramNetworking.m и Hash и appId внутри TGTelegraph.mm для вашего.
- Наслаждайтесь!
ПРИМЕЧАНИЕ. Сделайте снимки своей работы или зафиксируйте свой репозиторий после каждого обновления в проекте, чтобы избежать перезапуска всей работы, если на каком-либо этапе вы сделали что-то не так.