尝试提交从 iOS 9.0 到 9.1 的 iOS 和 Apple Watch OS2 扩展更新。我最近将 Xcode 更新到 7.1 版,现在我在没有更改任何其他内容的情况下遇到了这个问题。
iTunes store operation failed you are not authorized to use this service
我尝试过的:
- 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.
代码签名设置:
- 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
仍然会遇到配置文件设置的错误消息。
- Reinstalled Xcode 7.1 -> Still hit the error message.
我还确认我的所有开发人员和分发配置文件均有效且已下载。
观察:
我注意到的一件事是,当我存档应用程序并查看“窗口”->“管理器”时,我注意到我的 iOS 应用程序在左侧用于我的存档。我尝试提交的这个应用旁边没有名称。但是,如果我删除此应用程序的所有旧存档,应用程序名称会再次显示在应用程序图标旁边。也许是 Xcode 的错误,但我不知道。
我注意到的另一件事是,我已经能够使用 Xcode 7.1 成功提交没有 WatchKit 扩展的 iOS 存档。我不确定 WatchKit 扩展是否是问题所在,但有可能。
另外,当存档准备好上传到 iTunes Connect 时,我注意到一些事情。首先,iOS 应用程序默认使用事件配置文件:“MyApp”分发配置文件。但是,WatchKit 应用程序和应用程序扩展都会自动默认为 XC* 通配符配置文件。我不确定这整个问题是否只与配置文件错误有关,但这是可能的。
iOS Target -> Build Phases -> Embed Watch Content 设置为:
$(CONTENTS_FOLDER_PATH)/Watch
应用程序加载器提交尝试:
已尝试但失败并显示以下错误消息:
错误 ITMS-90171“无效的捆绑结构 - 不允许二进制文件‘MyApp.app/Watch/MyAppWatch.app/_WatchKitStub/WK’。您的应用程序不能包含独立的可执行文件或库,否则支持的包的 CFBundleExecutable。请参阅 Bundle Programming Guide...”
同样,我使用完全相同的项目结构在 Xcode 7.0 ios 9.0.x 上提交 ios 应用程序和 watchkit OS2 扩展没问题。我认为错误消息是不准确的,除非我配置错误,但我想我会在 Xcode 7.0 上返回错误
任何关于如何解决这个问题的帮助都会很棒。我在谷歌搜索和阅读其他 SO 帖子上找不到任何帮助,而且我已经坚持这个太久了。谢谢!
最佳答案
我今天遇到了同样的问题,我认为这是 Xcode 7.1 的一个错误
最后,我设法通过 Application Loader 提交了我的应用程序。有警告,但它确实有效。
基本步骤如下:
关于ios - Xcode 7.1 "iTunes store operation failed you are not authorized to use this service",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33314221/