美文网首页
xcode错误信息汇总

xcode错误信息汇总

作者: 小雨雨儿 | 来源:发表于2016-12-12 21:18 被阅读724次

    1.Apple LLVM 8.0 Error Group /'all-product-headers.yaml' not found

    最近升级了xcode打包后出现了个BUG,记录解决的方法。
    现象:报错误信息:“......'all-product-headers.yaml' not found"
    原因:新增加了第三方库
    

    解决:
    1.检查工程-Target-Build Settings 设置Defines Module的值是否为YES
    "Defines Module = YES"
    2.工程-Target-Build Settings - Other Linker Flags
    将pod里面涉及到的第三方框架都加上 “AFNetworing” -framework
    例如:


    这里写图片描述

    2.error: Couldn't materialize

    错误信息: error: Couldn't materialize: couldn't get the
     value of variable amount: variable not available 
     error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression.
    

    解决:Release改为Debug


    这里写图片描述

    3.dyld: Library not loaded

    错误信息:dyld: Library not loaded: /System/Library/Frameworks/UserNotificationsUI.framework/UserNotificationsUI 
     Referenced from: /var/containers/Bundle/Application/82256E34-03A8-47F7-9C74-3EFB5D2D94A7/****
    

    解决:在低版本的系统中不支持高版本的framework
    arget下的Build Phases标签里,
    找到Link Binary With Libraries,
    在里面找到UserNotifications.framework,
    把status由Required 修改成Optional


    这里写图片描述

    4.Domain=NSCocoaErrorDomain Code=3000

    错误信息:Get deviceToken failed, error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment'
     entitlement string found for application" UserInfo={NSLocalizedDescription=no valid 
     'aps-environment' entitlement string found for application}
    

    解决:打开Push Notifications 为ON


    这里写图片描述

    相关文章

      网友评论

          本文标题:xcode错误信息汇总

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