美文网首页
flutter运行项目签名不对,重新配置签名. NSLocal

flutter运行项目签名不对,重新配置签名. NSLocal

作者: 天涯寻梦人 | 来源:发表于2020-06-22 10:35 被阅读0次

    报错

    Found saved certificate choice "Apple Development: XXX (JK7Z652Q55)". To clear, use "flutter config".

    Signing iOS app for device deployment using developer identity: "Apple Development: XXX (JK7Z652Q55)"

    Running Xcode build...

    Xcode build done.                                          10.5s

    Could not build the precompiled application for the device.

    Error launching application on 小枫叶.

    Failed to build iOS app

    Error output from Xcode build:

        2020-06-22 10:10:52.392 xcodebuild[10656:99440]  DTDeviceKit: deviceType from 41a6d48776c0efc212adc0e70a0b13dcd8f2f462 was NULL

        2020-06-22 10:10:52.526 xcodebuild[10656:99445]  DTDeviceKit: deviceType from 41a6d48776c0efc212adc0e70a0b13dcd8f2f462 was NULL

        2020-06-22 10:11:01.447 xcodebuild[10656:99798]  DVTPortal: Service '<DVTPortalAppIDService: 0x7fcb6e4d20e0; action='addAppId'>' encountered an unexpected result code from the portal ('9401')

        2020-06-22 10:11:01.447 xcodebuild[10656:99798]  DVTPortal: Error:

        Error Domain=DVTPortalServiceErrorDomain Code=9401 "An App ID with Identifier 'com.esurfingpay.licai' is not available. Please enter a different string." UserInfo={payload={

            creationTimestamp = "2020-06-22T02:11:01Z";

            httpCode = 200;

            protocolVersion = QH65B2;

            requestId = "2A129278-12AE-471C-90F0-06C26364494B";

            requestUrl = "https://developerservices2.apple.com/services/QH65B2/ios/addAppId.action";

            responseId = "16319c46-24b2-426e-a6a4-e2d3dd2c4597";

            resultCode = 9401;

            resultString = "An App ID with Identifier 'com.esurfingpay.licai' is not available. Please enter a different string.";

            userLocale = "en_US";

            userString = "An App ID with Identifier 'com.esurfingpay.licai' is not available. Please enter a different string.";

        }, NSLocalizedDescription=An App ID with Identifier 'com.esurfingpay.licai' is not available. Please enter a different string.}

        ** BUILD FAILED **

    解决方案

    原因:选择签名信息不对

    1.清理签名信息 (终端运行   flutter config --clear-ios-signing-cert ) 

    2.重新flutter run会提示重新选择签名证书,重新选择即可

    拓展

    flutter config 可以查看一些配置的修改命令


    相关文章

      网友评论

          本文标题:flutter运行项目签名不对,重新配置签名. NSLocal

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