升级到 Xcode 6.3 后,新建 iOS 应用存档无法提交
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29638618/
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
After upgrading to Xcode 6.3, newly built iOS app archives can't be submitted
提问by Taylor
After upgrading to 6.3 and building an archive for my iOS app, the archive appears under "Other Items" and "Submit to App Store" is grayed out.
升级到 6.3 并为我的 iOS 应用程序构建存档后,存档显示在“其他项目”下,“提交到 App Store”显示为灰色。
My archives built prior to upgrading are listed correctly under the name of the app.
我在升级之前构建的档案正确列在应用程序名称下。
I noticed that it works correctly for the Mac version of my app.
我注意到它适用于我的应用程序的 Mac 版本。
I tried changing the iOS version's target name and scheme name to all match the name under iOS Apps in the Organizer but that didn't help (if only things were that simple!).
我尝试将 iOS 版本的目标名称和方案名称更改为与管理器中 iOS 应用程序下的名称全部匹配,但这没有帮助(如果事情就这么简单!)。
采纳答案by Taylor
Finally I noticed that it was building a "Generic Archive". I consulted this question: Cannot generate iOS App archive in xcode
最后我注意到它正在构建一个“通用档案”。我咨询了这个问题:Cannot generate iOS App archive in xcode
My setting for INSTALL_PATH
("Installation Directory") was set to $(HOME)/Applications
. I set it to the default, /Applications
, and that fixed the issue. I would mark this as a duplicate of the linked question, but someone might encounter the same issue after upgrading Xcode (something obviously changed).
我的INSTALL_PATH
(“安装目录”)设置被设置为$(HOME)/Applications
. 我将它设置为默认值/Applications
,然后就解决了这个问题。我会将其标记为链接问题的副本,但升级 Xcode 后可能有人会遇到同样的问题(显然发生了变化)。
回答by Exile3daime
Resolution from Apple
来自 Apple 的解决方案
For example, my app "Tripla" has one main project and one sub-project (Google-API-client: GTL.xcodeproj). In the main project, it has one main target and 4 sub-targets, and in the GTL.xcodeproj, it has 4 targets.
例如,我的应用“Tripla”有一个主项目和一个子项目(Google-API-client:GTL.xcodeproj)。在主项目中,有1个主目标和4个子目标,在GTL.xcodeproj中,有4个目标。
Skip-install in tab "Build Setting" in the main project setting is YES, but NO in the sub-project and all its sub-targets.
在主项目设置中的选项卡“构建设置”中跳过安装是 YES,但在子项目及其所有子目标中为 NO。
Skip-install in tab "Build Setting" in the main target of the main project is YES, but NO in the rest of sub-targets.
在主项目的主要目标中的选项卡“构建设置”中跳过安装是 YES,但在其余的子目标中是 NO。
It did solve this issue of my app "Tripla".
它确实解决了我的应用程序“Tripla”的这个问题。
回答by Ehmad Zubair
回答by Mark Bridges
Updating to Cocoapods 38.2 and running 'pod install' fixed the problem for me.
更新到 Cocoapods 38.2 并运行“pod install”为我解决了这个问题。
回答by Simon Epskamp
The answer is my case was downgrading cocoapods. Using Xcode 7, and cocoapods 0.39.0.beta.4, downgraded to beta 3.
答案是我的情况是降级 cocoapods。使用 Xcode 7 和 cocoapods 0.39.0.beta.4,降级到 beta 3。
See this answer for full instructions: https://stackoverflow.com/a/32654636/146738
有关完整说明,请参阅此答案:https: //stackoverflow.com/a/32654636/146738