Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode更新到9之后,打包失败. #161

Closed
mqlsq opened this issue Sep 26, 2017 · 8 comments
Closed

Xcode更新到9之后,打包失败. #161

mqlsq opened this issue Sep 26, 2017 · 8 comments

Comments

@mqlsq
Copy link

mqlsq commented Sep 26, 2017

前几天更新到xcode9,然后打包就一直失败,提示是provisioning找不到.

@mqlsq
Copy link
Author

mqlsq commented Sep 26, 2017

错误码如下:
Error Domain=IDEProvisioningErrorDomain Code=9 ""xxx.app" requires a provisioning profile with the Push Notifications and Associated Domains features." UserInfo={NSLocalizedDescription="xxx.app" requires a provisioning profile with the Push Notifications and Associated Domains features., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

@AngryPudge
Copy link

xcodebuild -help,查看最新说明,需要在exportOptions.plist中添加profile相关配置

@iStig
Copy link

iStig commented Sep 28, 2017

@AngryPudge
通过这篇文章这篇
我能理解exportOptions.plist需要增加provisioningProfiles的配置说明
但是目前不知道exportOptions.plist中需要创建在哪里使用。等待继续查资料看看
如果有什么建议请提供下 谢谢

更新
fircli https://github.com/FIRHQ/fir-cli/blob/master/doc/build_ipa.md 有说明

更新 经过测试没问题的脚本

fir build_ipa projectpath -o outputpath -E ad-hoc -O exportOptions.plistpath -w -S xxxxx -C xxxxx -p -Q -T xxxxxxxxxxxxxx

主要在原脚本的基础上增加了

-E ad-hoc -O exportOptions.plistpath

@fujijing
Copy link

fujijing commented Nov 1, 2017

@iStig
你好,我是在exportOptions.plist增加provisioningProfiles配置之后执行脚本的,但是 export 失败,原因是存放exportOptions.plist路径的文件打不开

Couldn't load -exportOptionsPlist: The file “XXX” couldn’t be opened because you don’t have permission to view it.

请问你有遇到过吗?或者是我的执行步骤有问题? 谢谢

更新,已经解决了,路径写的有问题~

@jessecoding
Copy link

错误码如下:

Error Domain=IDEDistributionStripXattrsStepDomain Code=1 "Stripping extended attributes failed." UserInfo={NSLocalizedDescription=Stripping extended attributes failed., NSLocalizedRecoverySuggestion="/usr/bin/xattr -crs /var/folders/4x/clx2dg_d2k9bmywrjmksdw9c0000gn/T/XcodeDistPipeline.xBT/Root/Payload/DesignManager.app" exited with a non-zero status. The /usr/bin/xattr tool may be damaged.}

@crespoxiao
Copy link

我也遇到这个问题了

@jessecoding
Copy link

@crespoxiao 你的命令怎么写的?你的电脑环境是?

@crespoxiao
Copy link

@jessecoding 我解决了

fir build_ipa "$projectDir" -o "$outputDir" -w true -S Canyin -E enterprise -O build/In-house/exportOptions.plist -p -V -T 5a52f03b98c22a916e08c451xxxxxx;

参考楼上 @iStig 的方法 ,exportOptions.plist 加了个字段 provisioningProfiles

    <key>provisioningProfiles</key>
	<dict>
    <key>com.xxx.canyinhdvip</key>
    <string>CanyinHDVip Dis</string>
	</dict>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants