flutter运行项目签名不对,重新配置签名. NSLocalizedDescription=An App ID with Identifier 'com.esurfingpay.licai'...

报错

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 可以查看一些配置的修改命令


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容