I am trying to submit my app. It is written in swift 3 and has an iOS 10 deployment target. So, I need to use Xcode 8. When I create an archive everything goes fine. I have even looked into the .ipa and everything seems fine.
我正在尝试提交我的应用。它是用swift 3编写的,具有iOS 10部署目标。所以,我需要使用Xcode 8.当我创建存档时,一切都很顺利。我甚至看过.ipa,一切似乎都很好。
But, every time I get this error: The info.plist indicates a iOS app, but submitting a pkg or mpkg.
但是,每次我收到此错误:info.plist表示iOS应用程序,但提交pkg或mpkg。
No idea what's going on. I'm not using any frameworks. No cocoapods. Very simple app.
不知道发生了什么。我没有使用任何框架。没有cocoapods。很简单的应用程序
Edit: Still no information on this. I have made a support request with Apple so we will see if that provides any new info. I can't be the only person experiencing this bug.
编辑:仍然没有相关信息。我已向Apple提出支持请求,因此我们会查看是否提供了任何新信息。我不能成为遇到这个bug的唯一人。
4 个解决方案
#1
18
Update: See Peter's answer. According to him, the LSMinimumSystemVersion
key ("Minimum system version") is obsolete and should be removed. If that works for you, upvote his answer instead as that would be a better solution than this if it works.
更新:见彼得的回答。根据他的说法,LSMinimumSystemVersion密钥(“最小系统版本”)已经过时,应该删除。如果这对您有用,那么请回答他的答案,因为如果它有效,这将是一个比这更好的解决方案。
Original Answer:
原答案:
I was encountering this issue when updating a very old app. I was able to fix it by changing my Info.plist.
我在更新一个非常旧的应用程序时遇到了这个问题。我能够通过更改我的Info.plist来修复它。
I had to change the LSMinimumSystemVersion
key ("Minimum system version") to MinimumOSVersion
("MinimumOSVersion").
我不得不将LSMinimumSystemVersion密钥(“最小系统版本”)更改为MinimumOSVersion(“MinimumOSVersion”)。
Before
之前
After
后
#2
2
In Xcode 8.3, you should delete the Minimum system version
(LSMinimumSystemVersion
) entry from your info.plist. You do not need to rename it. If your app is that old, you may find other superfluous or conflicting keys as well. Another common one is the main nib file key, which conflicts with a main storyboard key.
在Xcode 8.3中,您应该从info.plist中删除最小系统版本(LSMinimumSystemVersion)条目。您无需重命名它。如果您的应用程序已经过时,您可能会发现其他多余或冲突的密钥。另一个常见的是主nib文件密钥,它与主故事板密钥冲突。
#3
0
even if you never imported any frameworks, something might be produced automatically.
即使您从未导入任何框架,也可能会自动生成某些内容。
So please make sure your project has never any frameworks in it. If you are not sure, when you export your archive file to .ipa, Xcode will code sign your bundle.
因此,请确保您的项目中没有任何框架。如果您不确定,当您将存档文件导出到.ipa时,Xcode会对您的包进行编码。
In that list, if you see any framework besides your main app bundle, it occurs.
在该列表中,如果您看到除主应用程序包之外的任何框架,则会发生。
So let me know the status of your project in the aspect I mentioned above.
所以让我知道你在上面提到的方面的项目状态。
Thanks
谢谢
#4
-1
fix! i had the same problem and i fix it. you can export your app (no click on "upload to app store" but "export" in the archive menu) and then use "application loader" to send your app
固定!我有同样的问题,我解决它。你可以导出你的应用程序(没有点击“上传到应用商店”,但在存档菜单中“导出”),然后使用“应用程序加载器”发送你的应用程序
#1
18
Update: See Peter's answer. According to him, the LSMinimumSystemVersion
key ("Minimum system version") is obsolete and should be removed. If that works for you, upvote his answer instead as that would be a better solution than this if it works.
更新:见彼得的回答。根据他的说法,LSMinimumSystemVersion密钥(“最小系统版本”)已经过时,应该删除。如果这对您有用,那么请回答他的答案,因为如果它有效,这将是一个比这更好的解决方案。
Original Answer:
原答案:
I was encountering this issue when updating a very old app. I was able to fix it by changing my Info.plist.
我在更新一个非常旧的应用程序时遇到了这个问题。我能够通过更改我的Info.plist来修复它。
I had to change the LSMinimumSystemVersion
key ("Minimum system version") to MinimumOSVersion
("MinimumOSVersion").
我不得不将LSMinimumSystemVersion密钥(“最小系统版本”)更改为MinimumOSVersion(“MinimumOSVersion”)。
Before
之前
After
后
#2
2
In Xcode 8.3, you should delete the Minimum system version
(LSMinimumSystemVersion
) entry from your info.plist. You do not need to rename it. If your app is that old, you may find other superfluous or conflicting keys as well. Another common one is the main nib file key, which conflicts with a main storyboard key.
在Xcode 8.3中,您应该从info.plist中删除最小系统版本(LSMinimumSystemVersion)条目。您无需重命名它。如果您的应用程序已经过时,您可能会发现其他多余或冲突的密钥。另一个常见的是主nib文件密钥,它与主故事板密钥冲突。
#3
0
even if you never imported any frameworks, something might be produced automatically.
即使您从未导入任何框架,也可能会自动生成某些内容。
So please make sure your project has never any frameworks in it. If you are not sure, when you export your archive file to .ipa, Xcode will code sign your bundle.
因此,请确保您的项目中没有任何框架。如果您不确定,当您将存档文件导出到.ipa时,Xcode会对您的包进行编码。
In that list, if you see any framework besides your main app bundle, it occurs.
在该列表中,如果您看到除主应用程序包之外的任何框架,则会发生。
So let me know the status of your project in the aspect I mentioned above.
所以让我知道你在上面提到的方面的项目状态。
Thanks
谢谢
#4
-1
fix! i had the same problem and i fix it. you can export your app (no click on "upload to app store" but "export" in the archive menu) and then use "application loader" to send your app
固定!我有同样的问题,我解决它。你可以导出你的应用程序(没有点击“上传到应用商店”,但在存档菜单中“导出”),然后使用“应用程序加载器”发送你的应用程序