美文网首页
编译Nicegram-5.12

编译Nicegram-5.12

作者: 灰原丶逗 | 来源:发表于2019-10-19 11:03 被阅读0次

    第一步:
    Scheme选择
    Telegram-iOS-AppStoreLLC

    第二步:
    #include "../../Telegram-iOS-Shared/Config/AppStoreLLC/Config.xcconfig"
    这个路径是Nicegram自己添加的一个工程配置路径,代码中未开放,所以这里需要注释掉
    换回Telegram的配置

    APP_NAME=Nicegram
    APP_BUNDLE_ID=com.nicegram.Telegram-iOS
    APP_SPECIFIC_URL_SCHEME=tgapp
    
    GLOBAL_CONSTANTS = APP_CONFIG_IS_INTERNAL_BUILD=false APP_CONFIG_IS_APPSTORE_BUILD=true APP_CONFIG_APPSTORE_ID=686449807 APP_SPECIFIC_URL_SCHEME="\"$(APP_SPECIFIC_URL_SCHEME)\""
    GCC_PREPROCESSOR_DEFINITIONS = $(inherited) $(GLOBAL_CONSTANTS)
    
    GCC_PREPROCESSOR_DEFINITIONS = $(inherited) APP_CONFIG_API_ID=8 APP_CONFIG_API_HASH="\"7245de8e747a0d6fbe11f7cc14fcc0bb\"" APP_CONFIG_HOCKEYAPP_ID="\"ad8831329ffc8f8aff9a2b0b86558b24\""
    

    第三步:
    自定义宏修复
    Use of undeclared identifier 'NG_API_URL'

    第四步:
    适配iOS13/Xcode11
    Switch must be exhaustive
    'voIP' is only available in iOS 9.0 or newer
    var statusBarWindow: UIView?

    相关文章

      网友评论

          本文标题:编译Nicegram-5.12

          本文链接:https://www.haomeiwen.com/subject/qjvgmctx.html