TODO:xcodebuild导出ipa证书原因的失败

2018年05月05日 iOS 1条评论 阅读564次

使用shell进行iOS打包的过程中,最后一个步骤是把生成的archive文件导出为ipa文件。也就是下面的命令


# 导出ipa

xcodebuild -exportArchive \
 -archivePath JileniaoApp_20180417_2024.xcarchive' \
 -exportPath jileniao.net.ipa \
 -exportOptionsPlist ExportOptions.plist



刚刚使用xcodebuild 命令导出ipa文件时,没能成功,错误日志如下:


xcodebuild[62910:5607386] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/9z/q6y22r_s4x36vdl_9s4pmq5r0000gn/T/JileniaoApp_2018-05-01_21-47-47.168.xcdistributionlogs'.
xcodebuild[62910:5607386] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7f811a6a8b30>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
    "Error Domain=IDEProfileQualificationErrorDomain Code=8 \"Provisioning profile \"jilenio-dis\" doesn't match the entitlements file's value for the application-identifier entitlement.\" UserInfo={IDEProfileQualificationError_Profile=<DTDKProvisioningProfile 0x7f811a8a0ef0: UUID: fa8e98dc-fda4-4361-b882-8f55c8d81731, name: jilenio-dis, team: H*PWH*G*EC (Jileniao.Net Company Limited), platform: iOS>, NSLocalizedDescription=Provisioning profile \"jilenio-dis\" doesn't match the entitlements file's value for the application-identifier entitlement.}"
)}
error: exportArchive: Provisioning profile "jilenio-dis" doesn't match the entitlements file's value for the application-identifier entitlement.
Error Domain=IDEProfileQualificationErrorDomain Code=8 "Provisioning profile "jilenio-dis" doesn't match the entitlements file's value for the application-identifier entitlement." UserInfo={IDEProfileQualificationError_Profile=<DTDKProvisioningProfile 0x7f811a8a0ef0: UUID: fa8e98dc-fda4-4361-b882-8f55c8d81731, name: jilenio-dis, team: H*PWH*G*EC (Jileniao.Net Company Limited), platform: iOS>, NSLocalizedDescription=Provisioning profile "jilenio-dis" doesn't match the entitlements file's value for the application-identifier entitlement.}
** EXPORT FAILED **
Export ipa Failed



看上起是证书和entitlement文件不匹配,再苹果开发者网站上重新下载了证书,仍然出现这个问题,目前没有查到什么原因。

但不使用命令,直接在Xcode中通过菜单是可以正常打包出ipa的。


命令打包的问题先加个TODO标注着。



分享本文至:

WRITTEN BY

avatar
本文标签:iOSxcodebuild
看了本文是不是觉得很赞,那就赶紧点击下面按钮分享给身边的朋友吧!

1 条评论

  1. avatar 868qkl

    学习啦

欢迎留言




用户登录

sitemap