在Xcode中发现了意外的mach-o标头代码? [英] Found an unexpected mach-o header code in Xcode?

查看:254
本文介绍了在Xcode中发现了意外的mach-o标头代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我遇到的错误是:发现了意外的mach-o标头代码"

So the error I'm having is this : "found an unexpected mach-o header code"

我在网上找到的所有内容都告诉我检查目标构建阶段,并查看副本捆绑资源中不包含的内容.

Everything I found online told me to check my target build phases and see what doesn't belong in the Copy Bundle Resources.

这里不属于什么,因为我觉得一切都在正确的位置.

What doesn't belong here because I feel everything is in the right spot.

更新:我删除了列表中的所有内容,但仍然遇到此错误:(

UPDATE : I removed everything in the list and I still encounter this error :(

推荐答案

如果您使用的是Cocoapods,则应将其添加到Podfile的末尾:

If you are using Cocoapods, you should add this to the end of your Podfile:

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'NO'
        end
    end
end

积分应转到 https://github.com/CocoaPods/CocoaPods/issues/5598

这篇关于在Xcode中发现了意外的mach-o标头代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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