xcode 添加 Flurry Analytics 后无法上传 iOS 更新?错误:您的应用不能包含独立的可执行文件或库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30419119/
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
Unable to upload iOS update after adding Flurry Analytics? Error: Your app can’t contain standalone executables or libraries
提问by cg_
In my Swift iOS application I've just added Flurry Analytics by creating a briding-header.h
and importing Flurry.h
. I then added SystemConfiguration.framework
, CFNetwork.framework
, and Security.framework
.
在我的 Swift iOS 应用程序中,我刚刚通过创建一个briding-header.h
和importing Flurry.h
. 然后我说SystemConfiguration.framework
,CFNetwork.framework
和Security.framework
。
I then added libFlurry_6.5.0.a
via Targets -> Build Phases -> Link Binary with Libraries
after instruction from a Stack Overflow question because it wouldn't build.
然后我在 Stack Overflow 问题的指令之后添加了libFlurry_6.5.0.a
via Targets -> Build Phases -> Link Binary with Libraries
,因为它不会构建。
After archiving the app I tried to upload it and received this error:
归档应用程序后,我尝试上传它并收到此错误:
ERROR ITMS-90171: “Invalid Bundle Structure - The binary file ‘APPNAME.app/Flurry/libFlurry_6.5.0.a' is not permitted. Your app can't contain standalone executables or libraries...
错误 ITMS-90171:“无效的捆绑结构 - 不允许使用二进制文件 'APPNAME.app/Flurry/libFlurry_6.5.0.a'。您的应用不能包含独立的可执行文件或库...
回答by Daniel Storm
- Open the Build Phasestab in the target settings for your project.
- Make sure that
Flurry.framework
is not included under Copy Bundle Resources.
- 在项目的目标设置中打开Build Phases选项卡。
- 确保它
Flurry.framework
不包含在Copy Bundle Resources 下。
From Invalid Bundle Structure.
来自无效的捆绑结构。
回答by Jorge Piera Llodrá
My case was a bit different. I added an static library to "Embed Frameworks" and I got a couple of errors when I uploaded the app to the app store:
我的情况有点不同。我向“嵌入框架”添加了一个静态库,当我将应用程序上传到应用程序商店时出现了一些错误:
- The binary X is not permitted. Your app can't contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles
- Invalid Swift Support - Doesn't have the correct file type for this location
- 不允许使用二进制 X。您的应用程序不能包含独立的可执行文件或库,除了支持包的有效 CFBundleExecutable
- 无效的 Swift 支持 - 此位置没有正确的文件类型
I removed this dependency and the problem was solved
我删除了这个依赖,问题就解决了