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

iOS 打包失败 #2

Open
musicode opened this issue Sep 10, 2019 · 7 comments
Open

iOS 打包失败 #2

musicode opened this issue Sep 10, 2019 · 7 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@musicode
Copy link

安卓成功了,ios 失败,信息如下:

error: exportArchive: exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was provided

Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was provided" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key 'iCloudContainerEnvironment': expected one of {Development, Production}, but no value was provided}

** EXPORT FAILED **

用 xcode 能正常打包上传,想试试你的自动化工具,结果不行,ios_export_method 试过 ad-hocdevelopment

@fwh1990
Copy link
Owner

fwh1990 commented Sep 11, 2019

请问下你的React-Native版本以及Xcode版本

@musicode
Copy link
Author

IDEs:
      Android Studio: 3.4 AI-183.6156.11.34.5522156
      Xcode: 10.3/10G8 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3
      react-native: 0.59.9 => 0.59.9

@fwh1990
Copy link
Owner

fwh1990 commented Sep 11, 2019

在xcode中,点击window -> Organizer -> Distribute App,然后导出并保存 是否能成功保存呢?如果可以的话,您能粘贴一下导出的文件中 ExportOptions.plist 里的内容吗?其中teamID您可以先删除,这属于隐私内容

@fwh1990 fwh1990 added the bug Something isn't working label Sep 11, 2019
@musicode
Copy link
Author

可以导出

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>compileBitcode</key>
	<true/>
	<key>destination</key>
	<string>export</string>
	<key>iCloudContainerEnvironment</key>
	<string>Production</string>
	<key>method</key>
	<string>ad-hoc</string>
	<key>provisioningProfiles</key>
	<dict>
		<key>com.xx.test</key>
		<string>xx Test Ad Hoc</string>
	</dict>
	<key>signingCertificate</key>
	<string>iPhone Distribution</string>
	<key>signingStyle</key>
	<string>manual</string>
	<key>stripSwiftSymbols</key>
	<true/>
	<key>teamID</key>
	<string>xx</string>
	<key>thinning</key>
	<string>&lt;none&gt;</string>
</dict>
</plist>

@fwh1990
Copy link
Owner

fwh1990 commented Sep 11, 2019

@musicode 我发布了新版本0.7.0。伴随破坏性的更新,现在的做法是移除了属性ios_export_method,同时增加了属性ios_export_plist。也就是将您上面的plist文件复制一份到项目中。您可以在README.md文件中寻找到更详细的信息。

邀请您尝试新的版本,并希望您在这里告诉我运行的结果

@fwh1990 fwh1990 added the good first issue Good for newcomers label Sep 12, 2019
@musicode
Copy link
Author

hi,刚迭代了一个版本,使用最新版本,ios 正常,不过上次漏说了一个安卓的问题,fir 上传上去后,名称显示为 null 了,其他都正常,感谢你的付出

@fwh1990
Copy link
Owner

fwh1990 commented Sep 23, 2019

没碰到过这个问题。如果是公开的app,能否将你的apk文件发送到我的邮箱?531362022@qq.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants