ios – Xcode 9.2存档成功但无法导出IPA

ios – Xcode 9.2存档成功但无法导出IPA,第1张

概述我正在尝试为AdhocProd持续集成企业 IOS Build.使用以下命令进行构建和存档. 构建命令: /usr/bin/xcodebuild -workspace "Project.xcworkspace" -scheme "ProjectiOSPROD" -archivePath build/ProjectiOS -configuration Release archiv 我正在尝试为AdhocProd持续集成企业 IOS Build.使用以下命令进行构建和存档.

构建命令:

/usr/bin/xcodebuild -workspace "Project.xcworkspace" -scheme     "ProjectiOSPROD" -archivePath build/ProjectiOS -configuration Release     archive CODE_SIGN_STYLE=Manual    PROVISIONING_PROfile=”CompanynameProdAdhocdistribution”    CODE_SIGNING_IDENTITY="iPhone Developer: Build Machine(XXXXXX)"     PRODUCT_BUNDLE_IDENTIFIER="com.Companyname.prod.ProjectiOS"

OUTPUT:
**存档成功**

出口指令:

/usr/bin/xcodebuild -exportArchive -archivePath "build/ProjectiOS.xcarchive" -exportPath "build/ProjectiOS.ipa" -exportoptionsplist"../../Exportoptions.pList"

此PList是从xcode IDE获取的Exportoptions.PList.并将其用于jenkins工作空间

输出:

error: exportArchive: SDWebImage.framework does not support provisioning profiles.Error Domain=IDEProvisioningErrorDomain Code=10 "SDWebImage.framework does not support provisioning profiles." UserInfo={NSLocalizedDescription=SDWebImage.framework does not support provisioning profiles.,NSLocalizedRecoverySuggestion=SDWebImage.framework does not support provisioning profiles,but provisioning profile CompanynameProdAdhocdistribution has been manually specifIEd. Remove this item from the "provisioningProfiles" dictionary in your Export Options property List.}error: exportArchive: Stripe.framework does not support provisioning profiles.Error Domain=IDEProvisioningErrorDomain Code=10 "Stripe.framework does not support provisioning profiles." UserInfo={NSLocalizedDescription=Stripe.framework does not support provisioning profiles.,NSLocalizedRecoverySuggestion=Stripe.framework does not support provisioning profiles,but provisioning profile CompanynameProdAdhocdistribution has been manually specifIEd. Remove this item from the "provisioningProfiles" dictionary in your Export Options property List.}

provisioningProfiles字典已存在于“属性”列表中.如果我删除它,它说添加到属性列表.

任何建议将不胜感激.

解决方法 >您必须使用Xcode9.2手动生成和导出IPA.这将在导出的文件夹中创建文件名Exportoptions.pList.
>将该文件复制到工作区根文件夹.
>在Execute shell中写下面的命令.

xcodebuild -exportArchive -archivePath ${WORKSPACE}/build/YourProject.xcarchive -exportPath ${JENKINS_HOME}/jobs/${JOB_name}/builds/${BUILD_NUMBER}/archive -exportoptionsplist ${WORKSPACE}/Exportoptions.pList
总结

以上是内存溢出为你收集整理的ios – Xcode 9.2存档成功但无法导出IPA全部内容,希望文章能够帮你解决ios – Xcode 9.2存档成功但无法导出IPA所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1040633.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-24
下一篇2022-05-24

发表评论

登录后才能评论

评论列表(0条)

    保存