xcode 在 Info.plist CFBundleSupportedPlatforms 或 Mach-O LC_VERSION_MIN 中找不到平台系列,用于 phantomjs
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34529583/
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
Couldn't find platform family in Info.plist CFBundleSupportedPlatforms or Mach-O LC_VERSION_MIN for phantomjs
提问by Marc
I am building a hybrid app using ionic and when I try to upload it to the app store, it gives me this error
我正在使用 ionic 构建一个混合应用程序,当我尝试将它上传到应用程序商店时,它给了我这个错误
Couldn't find platform family in Info.plist CFBundleSupportedPlatforms or Mach-O LC_VERSION_MIN for phantomjs
在 Info.plist CFBundleSupportedPlatforms 或 Mach-O LC_VERSION_MIN 中找不到平台系列,用于 phantomjs
Has anyone encountered the same issue and found out how to fix it?
有没有人遇到过同样的问题并找到了解决方法?
I suspect it comes from one the plugins or the node_modules that I use in my project that are causing the error..
我怀疑它来自我在项目中使用的导致错误的插件或 node_modules 之一。
回答by marius
Had the same error, in my case the problem was that I had some DSYM files among my bundle resources.
有同样的错误,就我而言,问题是我的捆绑资源中有一些 DSYM 文件。
Fixed it by removing all .DSYM files form Copy Bundle Resources build phase.
通过从复制捆绑资源构建阶段删除所有 .DSYM 文件来修复它。
More info on this thread: https://github.com/Alamofire/Alamofire/issues/823
关于此线程的更多信息:https: //github.com/Alamofire/Alamofire/issues/823
回答by Kubee
I solved this issue by removing unneeded files in my project. Specifically I have a Cartfile
in my project and the Carthage
Folder reference so that I can easily access it.
我通过删除项目中不需要的文件解决了这个问题。具体来说,我Cartfile
在我的项目和Carthage
文件夹引用中有一个,以便我可以轻松访问它。
I removed the folder reference but I kept the Cartfile
in my project. I made sure that the Cartfile
is not in my Copy Bundle Resources
build phase. One of these 2 fixed my problem.
我删除了文件夹引用,但我将其保留Cartfile
在我的项目中。我确保Cartfile
不在我的Copy Bundle Resources
构建阶段。这两个之一解决了我的问题。
回答by mplaza
I had this issue in an ionic app when one of the plugins was added to the bower.json as a dependency instead of as a plugin. A copy of it ended up in the www/lib folder and once it was removed I stopped getting that error.
当其中一个插件作为依赖项而不是插件添加到 bower.json 时,我在 ionic 应用程序中遇到了这个问题。它的副本最终出现在 www/lib 文件夹中,一旦将其删除,我就不再收到该错误。
回答by Morten
I have had the same issue with my native application.
我的本机应用程序遇到了同样的问题。
I am using Carthage (https://github.com/Carthage/Carthagev.0.15.2) where I have a dependency D1 which have a nested dependency D2.
我正在使用 Carthage ( https://github.com/Carthage/Carthagev.0.15.2 ),其中我有一个依赖项 D1,它有一个嵌套的依赖项 D2。
I'm not exactly sure what went wrong, but when archiving these dependencies it happened that a dSYM file from D2 sneaked into the archive in the framework folder of D1. I deleted the dSYM file from the archive, and I was able to submit.
我不完全确定出了什么问题,但是在归档这些依赖项时,来自 D2 的 dSYM 文件发生在 D1 的框架文件夹中。我从存档中删除了 dSYM 文件,并且能够提交。
So please take a look at your archive and see if there are any .bundle, .dSYM or the like, a place where it shouldn't be.
因此,请查看您的存档,看看是否有任何 .bundle、.dSYM 或类似文件,这是不应该存在的地方。
This is where I found the source of my troubles:
这就是我找到麻烦根源的地方:
~/Library/Developer/Xcode/Archives/2016-04-14/ARCHIVENAME.xcarchive/Products/Applications/APPNAME.app/Frameworks/D1.framework
This issue might be caused by either Carthage or the frameworks, or something completely different, so the above mentioned "solution" is a workaround for now.
这个问题可能是由 Carthage 或框架引起的,或者是完全不同的东西,所以上面提到的“解决方案”现在是一种解决方法。
回答by Er. Vihar
I know it's late to reply but I have face this issue recently when I am creating an archive for my application. For that I found that I have added one of my framework (which creates error) in Project Targets->General->Embedded Binaries.
我知道回复晚了,但我最近在为我的应用程序创建存档时遇到了这个问题。为此,我发现我在Project Targets->General->Embedded Binaries 中添加了我的框架之一(会产生错误)。
instead of adding it in:
而不是将其添加到:
Project Targets->General->Linked Frameworks and Libraries.
Simply by deleting the framework from Embedded Binaries
and re-adding it to Linked Frameworks and Libraries
solve my problem.
项目目标->常规->链接的框架和库。只需从中删除框架Embedded Binaries
并重新添加它即可Linked Frameworks and Libraries
解决我的问题。
回答by Nagibaba
Another way is deleting all the files in Build Phases -> Copy bundle resources
另一种方法是删除所有文件 Build Phases -> Copy bundle resources