xcode iPhone 应用程序提交 - 错误 ITMS-90171 无效的捆绑结构不能包含独立的可执行文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28621297/
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
iPhone App Submitting - Error ITMS-90171 Invalid Bundle Structure Can't Contain Standalone Executables
提问by zee
I've included screenshots of the full error messages I'm getting. This happens when I try and submit my app to iTunes Connect. I don't get any errors when running the app.
我已经包含了我收到的完整错误消息的屏幕截图。当我尝试将我的应用程序提交到 iTunes Connect 时会发生这种情况。运行应用程序时我没有收到任何错误。
采纳答案by Moelbeck
I had the exact same error for my application, and I was not able to find any reason from the information. The difference was, though, that I got it for all my .dll
files.
我的应用程序有完全相同的错误,我无法从信息中找到任何原因。不过,不同之处在于,我为所有.dll
文件都使用了它。
After some time, I saw that under IOS Bundle Signing
- Custom entitlements
it tried to point to a file that did not exist. I just removed that, and it stopped giving errors.
一段时间后,我看到了IOS Bundle Signing
-Custom entitlements
它试图指向一个不存在的文件。我刚刚删除了它,它停止给出错误。
Not sure if it helps you too, but it worked for me.
不确定它是否也对你有帮助,但它对我有用。
回答by JerryH
This issue for me was caused by including the framework in the bundle. Ie, I was copying the .framework file into the app bundle. This isn't necessary as the framework is statically linked against the main app binary.
对我来说,这个问题是由在包中包含框架引起的。即,我正在将 .framework 文件复制到应用程序包中。这不是必需的,因为框架与主应用程序二进制文件静态链接。
Most likely, you have a folder containing the .framework that you copied into your project (like an "external" or "ThirdParty"). That folder should not have membership to any target.
最有可能的是,您有一个包含复制到项目中的 .framework 的文件夹(如“外部”或“第三方”)。该文件夹不应具有任何目标的成员资格。
In your Frameworks folder itself, should be the actual .framework file with target membership for your app and "Required"
在您的 Frameworks 文件夹本身中,应该是实际的 .framework 文件,其中包含您的应用程序的目标成员资格和“必需”
回答by Sreenath S
I too faced same issue,
我也面临同样的问题,
Step 1:See while copying .Frameworkyou had wrongly copied(dragged) the framework in GoogleMaps.bundle or some other .bundle extension.
第 1 步:在复制.Framework 时查看您错误地复制(拖动)GoogleMaps.bundle 或其他一些 .bundle 扩展中的框架。
Step 2:If some other framework is present in .bundle resource, if present then remove that framework if not at all required, else drag out of that .bundle.
第 2 步:如果 .bundle 资源中存在其他框架,如果存在,则删除该框架(如果根本不需要),否则从该 .bundle 中拖出。
Step 3:If .framework is not present, then check in all .bundle resource, if .framework is being present, if present then remove that framework if not at all required, else drag out of that .bundle.
第 3 步:如果 .framework 不存在,则检查所有 .bundle 资源,如果 .framework 存在,如果存在则删除该框架(如果根本不需要),否则从该 .bundle 中拖出。
Step 4:Then clean and build the project.
第 4 步:然后清理并构建项目。
Not sure, if it helps you too, but it worked for me.
不确定,如果它对你也有帮助,但它对我有用。