ios Xcode 7.1“iTunes 商店操作失败您无权使用此服务”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33314221/
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
Xcode 7.1 "iTunes store operation failed you are not authorized to use this service"
提问by zic10
Trying to submit iOS and Apple Watch OS2 extension update from ios 9.0 to 9.1. I recently updated Xcode to version 7.1 and now I'm hitting this problem without changing anything else.
尝试提交从 ios 9.0 到 9.1 的 iOS 和 Apple Watch OS2 扩展更新。我最近将 Xcode 更新到了 7.1 版,现在我在不更改任何其他内容的情况下遇到了这个问题。
iTunes store operation failed you are not authorized to use this service
What I've tried:
我试过的:
- Removed developer account from Xcode -> added developer account back into Xcode -> Still hit the error.
- I tried Xcode -> Preferences -> Apple ID -> Download All to get my latest provisioning profiles up to date. Still get the error.
- Deleted all old archives, cleaned project, archive again. Still get the error.
- Increased build number and version number in both the project and in itunes connect. Still get the error.
- Deleted derived data in the Library -> Developer folder and I still get the error.
- Cleaned the project -> Archived the project again -> Unchecked "enable bitcode" and I still receive the error.
- 从 Xcode 中删除了开发者帐户 -> 将开发者帐户添加回 Xcode -> 仍然遇到错误。
- 我尝试了 Xcode -> Preferences -> Apple ID -> Download All 来更新我最新的配置文件。仍然得到错误。
- 删除所有旧档案,清理项目,再次存档。仍然得到错误。
- 在项目和 iTunes 连接中增加了内部版本号和版本号。仍然得到错误。
- 删除了 Library -> Developer 文件夹中的派生数据,但我仍然收到错误消息。
- 清理项目 -> 再次归档项目 -> 取消选中“启用位码”,但我仍然收到错误消息。
Code Signing Settings:
代码签名设置:
- Watch Target -> Provisioning profile automatic code signing iOS Developer
- Watch Target Extension -> Provisioning profile automatic code signing iOS Developer
- iOS Target -> Provisioning profile automatic code signing iOS Developer
- Watch Target -> Provisioning profile 自动代码签名 iOS Developer
- 观看 Target Extension -> Provisioning profile 自动代码签名 iOS Developer
- iOS Target -> Provisioning profile 自动代码签名 iOS Developer
Still hit the error message with the provisioning profile settings.
仍然使用配置文件设置点击错误消息。
- Reinstalled Xcode 7.1 -> Still hit the error message.
- 重新安装 Xcode 7.1 -> 仍然出现错误消息。
I've also confirmed that all my developer and distribution provisioning profiles are valid and downloaded.
我还确认我所有的开发人员和分发配置文件都是有效的并已下载。
Observations:
观察:
One thing I've noticed is that when I archive the app and look in the Window -> Organizer I notice my iOS apps on the left side for my archives. This app I'm trying to submit has no name next to it. However, if I delete all old archives for this app the app name shows up again next to the app icon. Maybe a bug with Xcode but I have no clue.
我注意到的一件事是,当我归档应用程序并查看窗口 -> 管理器时,我注意到我的 iOS 应用程序位于我的归档文件的左侧。我要提交的这个应用程序旁边没有名称。但是,如果我删除此应用程序的所有旧存档,应用程序名称将再次显示在应用程序图标旁边。也许是 Xcode 的错误,但我不知道。
Another thing I've noticed is I've been able to successfully submit iOS archives that have no WatchKit extension using Xcode 7.1. I'm not sure if the WatchKit extension could be the problem but it is a possibility.
我注意到的另一件事是我已经能够使用 Xcode 7.1 成功提交没有 WatchKit 扩展的 iOS 档案。我不确定 WatchKit 扩展是否可能是问题,但有可能。
Also when the archive is ready to be uploaded to iTunes Connect I notice a couple of things. First, the iOS App defaults to the active provisioning profile: "MyApp" Distribution profile. However, both the WatchKit app and app extensions automatically default to the XC* wildcard provisioning profile. I'm not sure if this whole problem could just be related to a provisioning profile error but it is possible.
此外,当档案准备好上传到 iTunes Connect 时,我注意到一些事情。首先,iOS 应用程序默认为活动配置文件:“MyApp”分发文件。但是,WatchKit 应用程序和应用程序扩展都会自动默认为 XC* 通配符配置文件。我不确定这整个问题是否仅与配置文件错误有关,但有可能。
iOS Target -> Build Phases -> Embed Watch Content is set as:
iOS Target -> Build Phases -> Embed Watch Content 设置为:
$(CONTENTS_FOLDER_PATH)/Watch
Application Loader Submission Attempt:
应用程序加载器提交尝试:
Tried and failed with the following error message:
尝试并失败,并显示以下错误消息:
ERROR ITMS-90171 "Invalid Bundle Structure - The Binary file 'MyApp.app/Watch/MyAppWatch.app/_WatchKitStub/WK' is not permitted. Your app can't contain stand alone executables or libraries other then the CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide..."
错误 ITMS-90171“无效的包结构 - 不允许使用二进制文件“MyApp.app/Watch/MyAppWatch.app/_WatchKitStub/WK”。除了受支持包的 CFBundleExecutable 之外,您的应用不能包含独立的可执行文件或库。请参阅捆绑程序编程指南...”
Again, I used this exact same project structure to submit the ios app and watchkit OS2 extension on Xcode 7.0 ios 9.0.x no problem. I think the error message is inaccurate unless I'm misconfiguring something but I imagine I would've hit the error back on Xcode 7.0
同样,我使用这个完全相同的项目结构在 Xcode 7.0 ios 9.0.x 上提交 ios 应用程序和 watchkit OS2 扩展没问题。我认为错误消息是不准确的,除非我配置错误,但我想我会在 Xcode 7.0 上遇到错误
Any help on how to solve this would be awesome. I've found no help googling and reading other SO posts and I've been stuck on this for far too long. Thanks!
关于如何解决这个问题的任何帮助都会很棒。我发现谷歌搜索和阅读其他 SO 帖子没有任何帮助,而且我已经坚持了太久了。谢谢!
回答by Tyler Long
I met the same issue today and I think it is a bug of Xcode 7.1
我今天遇到了同样的问题,我认为这是 Xcode 7.1 的错误
Finally I managed to submit my app via Application Loader. There were warnings but it did work.
最后,我设法通过 Application Loader 提交了我的应用程序。有警告,但确实有效。
Here are the basic steps:
以下是基本步骤:
- Archive
- Export
- Xcode menu --> Xcode --> Open Developer Tool --> Application Loader
- Double click "Deliver Your App" and choose the file exported in step #2
- click next and follow the instructions until the end
- 档案
- 出口
- Xcode 菜单 --> Xcode --> 打开开发者工具 --> 应用程序加载器
- 双击“Deliver Your App”并选择在步骤#2 中导出的文件
- 单击下一步并按照说明进行操作直到结束
回答by Nishant
回答by Oscar J. Irun
In mi case, it seems that updating to Xcode 7.1 removed some account information. So, after a few attempts to upload it from Xcode, I opened Application Loader, and it asked me to login. I logged in and finally could submit to the App Store from the Organizer. Hope it helps someone.
在 mi 的情况下,似乎更新到 Xcode 7.1 删除了一些帐户信息。因此,在尝试从 Xcode 上传它之后,我打开了 Application Loader,它要求我登录。我登录了,终于可以从组织者提交到 App Store。希望它可以帮助某人。
回答by jcdnas1
it is the enable bitcode on the bottom when you submit the upload. uncheck the box. for some reason it comes with 2 boxes checked by default on xcode 7.1
当您提交上传时,它是底部的启用位代码。取消选中该框。出于某种原因,它在 xcode 7.1 上默认选中了 2 个框
回答by Vijay Sharma
- Set team in target-> General-> Team
- Check and set appropriate provisioning profile in targets/project build settings.
- Try with Xcode to upload build if find same issue. Or
- Try with application loader it will work.
- 在目标-> 常规-> 团队中设置团队
- 在目标/项目构建设置中检查并设置适当的配置文件。
- 如果发现相同的问题,请尝试使用 Xcode 上传构建。或者
- 尝试使用应用程序加载器它会工作。
回答by dyson returns
Solved for Xcode 7.2 by revoking and recreating the cert:
通过撤销和重新创建证书解决了 Xcode 7.2:
Image of what to click here (sorry no embed reputation)
In XCode go into this menu:
在 XCode 中进入这个菜单:
XCode
-> Preferences
-> Accounts
XCode
-> Preferences
->Accounts
When on the accounts tab, I selected my email in the Apple Id
list (on the left).
在帐户选项卡上,我在Apple Id
列表(左侧)中选择了我的电子邮件。
Then on the right there is a list of of teams under Team Name
, select the correct Team and click on View Details
.
然后在右侧有一个团队列表Team Name
,选择正确的团队并单击View Details
。
Finally, there's a list of Signing Identities
, next to "iOS Distribution" click Reset
.
最后,有一个列表Signing Identities
,在“ iOS Distribution”旁边,单击Reset
。
I didn't have to restart XCode, I just immediately resubmitted to iTunes from Organizer with no problems.
我不必重新启动 XCode,我只是立即从 Organizer 重新提交到 iTunes,没有任何问题。
Edit: Thanks @Dover8 for the info about possible effects.
编辑:感谢@Dover8 提供有关可能影响的信息。
Resetting Certificates Using Xcode
使用 Xcode 重置证书
If Xcode detects an issue with a signing identity, it displays an appropriate action in Accounts preferences. If Xcode displays a Create button, the signing identity doesn't exist in Member Center or on your Mac. If Xcode displays a Reset button, the signing identity is not usable on your Mac—for example, it is missing the private key. If you click the Reset button, Xcode revokes and re-creates the corresponding certificate.
如果 Xcode 检测到签名身份问题,它会在“帐户”首选项中显示相应的操作。如果 Xcode 显示“创建”按钮,则会员中心或 Mac 上不存在签名标识。如果 Xcode 显示“重置”按钮,则签名身份在您的 Mac 上不可用——例如,它缺少私钥。如果单击“重置”按钮,Xcode 会撤销并重新创建相应的证书。
回答by Qiulang
In my case I think it should be a xcode 7.1 bug. I re-added my account, re-generated profile, rebuild the app (restart my mac) but none of them work! I got this error when I first validated the app.
就我而言,我认为它应该是 xcode 7.1 错误。我重新添加了我的帐户,重新生成了配置文件,重建了应用程序(重新启动了我的 mac),但它们都不起作用!我第一次验证应用程序时收到此错误。
Then I created a new profile and the validation passed. But the first time uploading the app xcode still showed that error. Unwilling to give up I clicked the upload button again and this time it succeeded!
然后我创建了一个新的配置文件并且验证通过了。但是第一次上传应用程序 xcode 仍然显示该错误。不甘放弃的我再次点击了上传按钮,这次成功了!
回答by For Guru
I faced the same issue then I uploaded through Application Loaderfrom XCODE menu and it showed so many error like missing icon for iPad etc .
我遇到了同样的问题,然后我从 XCODE 菜单通过Application Loader上传,它显示了很多错误,例如缺少 iPad 图标等。
So please try you app to load through Application Loader and see complete detail of errors you might have in your application.
因此,请尝试通过 Application Loader 加载您的应用程序,并查看您的应用程序中可能存在的错误的完整详细信息。
I got it working through Application Loaderafter fixing these issues.
解决这些问题后,我通过Application Loader使其工作。
回答by itzo
I am using Xcode 7.1.1. and it appears to be an issue with Xcode, because I successfully submitted the build via Application Loader. Now, I suspect that I added too many SDKs / adapters inside the code that may have caused issues with the app's delivery. But there's no way of knowing that for sure.
我正在使用 Xcode 7.1.1。这似乎是 Xcode 的问题,因为我通过 Application Loader 成功提交了构建。现在,我怀疑我在代码中添加了过多的 SDK/适配器,这可能会导致应用程序的交付出现问题。但没有办法确定。
During upload my API Analysis to the App Store was skipped, because it was too large, but I doubt that may caused Xcode to upload the app to the App Store.
在上传我的 API 分析到 App Store 的过程中被跳过,因为它太大了,但我怀疑这可能导致 Xcode 将应用程序上传到 App Store。
If Xcode fails to upload, try Application Loader.
如果 Xcode 上传失败,请尝试 Application Loader。
回答by EFE
I got the same problem. Tried to Upload To App Store.. 3-4 times. Then I Hit the Validate... button and validation was success. After that tried to upload again and it succeeded.
我遇到了同样的问题。尝试上传到 App Store.. 3-4 次。然后我点击验证...按钮,验证成功。之后尝试再次上传并成功。
Then i cursed apple...
然后我诅咒苹果...