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
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
After 2 hours of trying everything on the internet this is what fixed my solution
- If you are using fabric, remove it. ( This helped some but not me, if it still didn't solve the problem move on to next one)
- Remove Pod framework from "General" > "Embedded binaries" and add it back in "Linked Frameworks"
- Remove Derived Data
- Pod Update
- Clean and Build
This finally helped me ( step 2 helped me the most) hope it helps you too
i got the same error... Clean project and build again works for me...