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

。_饼干妹妹 提交于 2019-12-22 05:23:35

问题


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.

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.

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...


回答1:


  1. Open the Build Phases tab in the target settings for your project.
  2. Make sure that Flurry.framework is not included under Copy Bundle Resources.

From Invalid Bundle Structure.




回答2:


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

I removed this dependency and the problem was solved



来源:https://stackoverflow.com/questions/30419119/unable-to-upload-ios-update-after-adding-flurry-analytics-error-your-app-can-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!