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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:11:28  来源:igfitidea点击:

Unable to upload iOS update after adding Flurry Analytics? Error: Your app can’t contain standalone executables or libraries

iosxcodeflurryflurry-analytics

提问by cg_

In my Swift iOS application I've just added Flurry Analytics by creating a briding-header.hand importing Flurry.h. I then added SystemConfiguration.framework, CFNetwork.framework, and Security.framework.

在我的 Swift iOS 应用程序中,我刚刚通过创建一个briding-header.himporting Flurry.h. 然后我说SystemConfiguration.frameworkCFNetwork.frameworkSecurity.framework

I then added libFlurry_6.5.0.avia Targets -> Build Phases -> Link Binary with Librariesafter instruction from a Stack Overflow question because it wouldn't build.

然后我在 Stack Overflow 问题的指令之后添加了libFlurry_6.5.0.avia 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

  1. Open the Build Phasestab in the target settings for your project.
  2. Make sure that Flurry.frameworkis not included under Copy Bundle Resources.
  1. 在项目的目标设置中打开Build Phases选项卡。
  2. 确保它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:

我的情况有点不同。我向“嵌入框架”添加了一个静态库,当我将应用程序上传到应用程序商店时出现了一些错误:

  1. The binary X is not permitted. Your app can't contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles
  2. Invalid Swift Support - Doesn't have the correct file type for this location
  1. 不允许使用二进制 X。您的应用程序不能包含独立的可执行文件或库,除了支持包的有效 CFBundleExecutable
  2. 无效的 Swift 支持 - 此位置没有正确的文件类型

I removed this dependency and the problem was solved

我删除了这个依赖,问题就解决了