Xcode - 无法识别,无效或不适合的捆绑格式 [英] Xcode - Bundle format unrecognized, invalid, or unsuitable

查看:576
本文介绍了Xcode - 无法识别,无效或不适合的捆绑格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以我已经设法自己达到这一点,但我现在遇到一些问题代码,特别是使用AdMob框架签署应用程序。我收到此错误:
命令/ usr / bin / codesign失败,退出代码为1 它提供的详细信息如下: Applications / MyApp.app / Frameworks / GoogleMobileAds.framework:捆绑包格式无法识别,无效或不适合

Ok so I have just about managed to get to this point on my own but am now having some issues code signing the app specifically with the AdMob framework. I am getting this error: Command /usr/bin/codesign failed with exit code 1 the details it are giving are as follows: Applications/MyApp.app/Frameworks/GoogleMobileAds.framework: bundle format unrecognized, invalid, or unsuitable

我已阅读其他帖子网站并尝试了许多不同的方法来解决这个问题如果我取消选中Code Sign On Copy,则存档会成功构建,但在验证时会因匹配错误而失败。这就是我目前设置框架的方式:

我们非常感谢任何帮助!

I have read the other posts on the site and tried many different ways of fixing this. If I untick 'Code Sign On Copy' the archive builds successfully but then fails on validation with a match error. This is how I have my frameworks set up currently: Any help would be much appreciated!

推荐答案

我在不同的框架中看到了同样的问题。

I saw this same issue with a different framework.

我的解决方案是从嵌入式二进制文件部分删除框架,只将其添加到目标常规选项卡中的链接框架和库部分。

The solution for me was removing the framework from the 'Embedded Binaries' section and only adding it to the 'Linked Frameworks and Libraries' section in the target 'General' tab.

这篇关于Xcode - 无法识别,无效或不适合的捆绑格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆