Found an unexpected mach-o header code in Xcode?

后端 未结 3 546
[愿得一人]
[愿得一人] 2021-01-06 06:02

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

3条回答
  •  不思量自难忘°
    2021-01-06 06:32

    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
    

    Credits should go to https://github.com/CocoaPods/CocoaPods/issues/5598

提交回复
热议问题