OStack程序员社区-中国程序员成长平台

标题: ios - AWS 与 Xcode 8 测试版 : Found an unexpected Mach-O header code: 0x72613c21 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 16:56
标题: ios - AWS 与 Xcode 8 测试版 : Found an unexpected Mach-O header code: 0x72613c21

我刚刚尝试使用新的 Xcode 8 测试版构建我之前在 Xcode 7 下开发的应用程序,并在使用最新的 AWS SKD (2.4.5) 时收到以下错误: 发现意外的 Mach-O header 代码:0x72613c21

从嵌入式框架中删除所有框架可以消除错误,但会产生一个新错误: bash:/Users/*****/Library/Developer/Xcode/DerivedData/MyApp-gmsydrrvmebbiuarunefhhwwkuty/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/AWSCore.framework/strip-frameworks.sh:没有这样的文件或目录

有没有人在 Xcode 8 中遇到过类似的错误并且可能已经修复了?



Best Answer-推荐答案


如果您使用的是 Swift pod,请将其添加到您的 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  

关于ios - AWS 与 Xcode 8 测试版 : Found an unexpected Mach-O header code: 0x72613c21,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38285280/






欢迎光临 OStack程序员社区-中国程序员成长平台 (http://ostack.cn/) Powered by Discuz! X3.4