xcode “无效的 IPA:.app 必须位于“有效负载”(区分大小写)文件夹中。
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25859054/
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
'Invalid IPA: the .app must be in a "Payload" (case-sensitive) folder.'
提问by WebiumMedia
Application Loader 2.9.1 / XCode 5.1.1 Mac Os X 10.8.5
应用程序加载器 2.9.1 / XCode 5.1.1 Mac Os X 10.8.5
I have a .ipa and tried to upload it through Application Loader but I got this error :
我有一个 .ipa 并尝试通过 Application Loader 上传它,但出现此错误:
IPA is invalid, it does not include a payload directory.
IPA 无效,它不包含有效负载目录。
What can I do ?
我能做什么 ?
回答by ecume des jours
Make sure the key "LSRequiresIPhoneOS" in the info.plist has the value "YES"
确保 info.plist 中的键“LSRequiresIPhoneOS”具有值“YES”
回答by Cruz
Make sure the key “Application requires iPhone environment” Value is YES
确保关键“应用程序需要 iPhone 环境”值为 YES
in the info.plist
在 info.plist
Like this http://xcode5.tistory.com/entry/iOS-The-IPA-is-invalid-it-does-not-include-a-Payload-directory
像这样http://xcode5.tistory.com/entry/iOS-The-IPA-is-invalid-it-does-not-include-a-Payload-directory
回答by Shauket Sheikh
I faced same issue, but I resolved by doing three things:
我遇到了同样的问题,但我通过做三件事来解决:
check in your plist file this key exist
CFBundleInfoDictionaryVersion
and it value should be 6.0check your icon file and icon files key in plist and they have all icons of your game that support iOS 7, please check all icon should have extension .png
check your 3rd party sdk that included in your project in right way or not. my project has problem with revmoe also
检查你的 plist 文件这个键存在
CFBundleInfoDictionaryVersion
,它的值应该是 6.0检查您的图标文件和 plist 中的图标文件,它们包含您游戏的所有支持 iOS 7 的图标,请检查所有图标的扩展名 .png
以正确的方式检查您的项目中包含的第 3 方 sdk。我的项目也有 revmoe 的问题
回答by PREMKUMAR
Open your Info.plist file and click plus(+) and write Info Dictionary Version which is 6.0 and clean app and upload it Again. now you get clear Idea.
打开您的 Info.plist 文件,然后单击加号 (+) 并编写 6.0 和清洁应用程序的 Info Dictionary Version 并再次上传。现在你有了清晰的想法。
Note: Make iPa file to .Zip format and try again.
注意:将 iPa 文件设为 .Zip 格式并重试。
回答by imasde_SD
In the target project - Build Settings - Packaging. You should verify that the path is correct info.plist.
Once linked, clean the project and compile
在目标项目-构建设置-打包。您应该验证路径是否正确 info.plist。
链接后,清理项目并编译
回答by GreenAsJade
A couple of answers here are both "right", but took a bit of pondering for me to figure out how to actually implement - I'm no "plist guru".
这里的几个答案都是“正确的”,但我花了一些时间思考如何实际实施 - 我不是“plist 大师”。
If you already have Application requires iPhone environment
in the GUI in xcode, then Cruz JWK
's answer is an easy no-brainer: just toggle it to YES.
如果您已经Application requires iPhone environment
在 xcode 的 GUI 中,那么Cruz JWK
答案很简单:只需将其切换为 YES。
But what if you don't?
但如果你不这样做呢?
"ecume des jours" says, succinctly
“ecume des jours”简洁地说
Make sure the key "LSRequiresIPhoneOS" in the info.plist has the value "YES"
确保 info.plist 中的键“LSRequiresIPhoneOS”具有值“YES”
But how?
但是如何?
It turns out that the answer is like this:
原来答案是这样的:
<key>LSRequiresIPhoneOS</key>
<true/>
Once you put this in your plist file, suddenly you will have Application requires iPhone environment
in your xcode settings, and it will be Boolean: YES
.
一旦你把它放在你的 plist 文件中,Application requires iPhone environment
你的 xcode 设置中就会突然有了它,它将是Boolean: YES
.
The link between "make it YES" and "set the key to <true/>
" wasn't obvious to me. I started with setting it as <string>YES<string/>
, which didn't work.
“使它成为 YES”和“将密钥设置为”之间的联系<true/>
对我来说并不明显。我开始将它设置为<string>YES<string/>
,但没有用。
回答by NeverHopeless
I got this error when i archived through xcode 6 and exported through xcode 5.1.1 (Exporting through xcode 6 requires team/account info). Later using xcode 6.3 for both purposes fixed my issue.
当我通过 xcode 6 存档并通过 xcode 5.1.1 导出时出现此错误(通过 xcode 6 导出需要团队/帐户信息)。后来出于这两个目的使用 xcode 6.3 解决了我的问题。
Note:When i tried the plist solutions, it was already there and error was keeping coming.
注意:当我尝试 plist 解决方案时,它已经存在并且错误不断出现。
Hope it helps!
希望能帮助到你!
回答by A. Adam
I had this same problem and tried many answers from internet and non worked. Then I searched Apple documentation files and came across this link.
我遇到了同样的问题,并尝试了互联网上的许多答案,但都无效。然后我搜索了 Apple 文档文件并找到了这个链接。
Basically do the code signing and build your App against a device and then you go to "Product -> Archives" in Xcode menu and from there you validate the package and use the upload button there to upload your bundle to App store.
基本上进行代码签名并针对设备构建您的应用程序,然后您转到 Xcode 菜单中的“产品 - > 存档”,然后您验证包并使用那里的上传按钮将您的包上传到 App Store。
Hope this helps.
希望这可以帮助。
All this time I used Application uploader and this is the first time I am using Archives to submit my app as described in the above Apple's guide.
一直以来,我都使用应用程序上传器,这是我第一次使用 Archives 提交我的应用程序,如上述 Apple 指南中所述。
Xcode 7.
Xcode 7.
回答by embersofadyingfire
Possible solution for some, worked for me...
对某些人来说可能的解决方案,对我有用......
I struggled with this for a couple hours, tried several different things that I found through researching all the different solutions people have posted online, but nothing worked. I then went into "edit scheme", then into the "info" section under "run" and found that the "Build configuration" option was set to "debug." I thought this to be odd, so I changed it to "release", and validation finally worked!
我为此苦苦挣扎了几个小时,尝试了通过研究人们在网上发布的所有不同解决方案发现的几种不同方法,但没有任何效果。然后我进入“编辑方案”,然后进入“运行”下的“信息”部分,发现“构建配置”选项设置为“调试”。我觉得这很奇怪,所以我把它改成了“发布”,验证终于奏效了!
I had recently submitted an update a couple weeks earlier, and everything worked fine. I had added localizations to this new update, but didn't see anything that may have caused things in the project to go wrong. I noticed that since my last update though (only two weeks ago) some of my project's data had been automatically reverted back to the first version of the app. For example, my version code was set to 1.0, but the last update was 1.3. Also, my build version went back to 1, but should have been 4. I don't know why this happened, but it did, and I'm guessing that this automatic revert perhaps changed my build configuration also, causing the "IPA invalid" "No payload" error. Any ideas?
我最近几周前提交了更新,一切正常。我已经在这个新更新中添加了本地化,但没有看到任何可能导致项目出错的地方。我注意到自从我上次更新(仅两周前)以来,我的一些项目数据已自动恢复到应用程序的第一个版本。比如我的版本号设置为1.0,但上次更新是1.3。此外,我的构建版本回到 1,但应该是 4。我不知道为什么会发生这种情况,但确实发生了,而且我猜这个自动恢复可能也改变了我的构建配置,导致“IPA 无效" "无有效载荷" 错误。有任何想法吗?
回答by Nadzeya
That means that you don't have application in iTunes connect with "Prepare for Submission" status. Check iTunes Connect
这意味着您在 iTunes 中没有应用程序处于“准备提交”状态。检查 iTunes 连接