xcode 只能上传到 Apple App Store 并将 bitcode 设置为 yes

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/41683888/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 09:43:42  来源:igfitidea点击:

Can only upload to Apple App Store with bitcode set to yes

iosxcodeionic-frameworkapp-store-connectapplication-loader

提问by Alex Tarkowski

I was having some trouble uploading my Ionic Ios App to the App Store through Xcode(v 7.2).

我在通过 Xcode(v 7.2) 将 Ionic Ios 应用程序上传到 App Store 时遇到了一些问题。

I was constantly faced with the error: "upload failed: You are not authorized to use this service for provider XXXXXX"

我经常遇到错误:“上传失败:您无权为提供商 XXXXXX 使用此服务”

After some careful problem solving I was able to resolve that I needed to have "Enable Bitcode: Yes" under my project's Target. This allowed me to upload the app through Application Loader by exporting the app with bitcode attached.

经过一些仔细的问题解决后,我能够解决我需要在我的项目的目标下有“启用位码:是”的问题。这允许我通过导出附加位代码的应用程序,通过应用程序加载器上传应用程序。

My question is in terms of my wanting to better understand what is going on under the hood here.

我的问题是我想更好地了解这里的幕后情况。

What difference did the enabling of bitcode make to allow the app to upload vs not having it? I tested this out to confirm and this one change was the difference in the success and failure of uploading.

启用 bitcode 以允许应用程序上传与没有它有什么区别?我对此进行了测试以确认,这一更改是上传成功与失败的差异。

Thanks.

谢谢。

回答by Amod Gokhale

What difference did the enabling of bitcode make to allow the app to upload vs not having it? I tested this out to confirm and this one change was the difference in the success and failure of uploading.

启用 bitcode 以允许应用程序上传与没有它有什么区别?我对此进行了测试以确认,这一更改是上传成功与失败的差异。

->You don't need to Set Yes to bitcode for iOS apps. Enabling bitcode might have simply recompiled your libraries ( above error looks like an profile error). To prove this theory, disable bitcode (Set Value to No) recompile and upload on iTunes.

->对于 iOS 应用程序,您不需要将位码设置为 Yes。启用位码可能只是重新编译了您的库(上面的错误看起来像是配置文件错误)。为了证明这个理论,禁用位码(将值设置为否)重新编译并在 iTunes 上上传。

Refer to this link https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html

请参阅此链接 https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html

For iOS apps, bitcode is the default, but optional. For watchOS and tvOS apps, bitcode is required. If you provide bitcode, all apps and frameworks in the app bundle (all targets in the project) need to include bitcode.

对于iOS 应用程序,位码是默认的,但可选的。对于watchOS 和 tvOS 应用程序,需要位码。如果您提供 bitcode,则应用程序包中的所有应用程序和框架(项目中的所有目标)都需要包含 bitcode。