I know a lot of people are getting this error when trying to compile their app in Xcode 8 Beta 3, however none of the available answers here seemed to help me.
While trying to run my app, I got the usual error: (null): Found an unexpected Mach-O header code: 0x72613c21
, and when I expanded the information, I was given this in return:
Effective srcDirs: {(
<DVTFilePath:0x6000008bb0c0:'/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos'>,
<DVTFilePath:0x6080002a00c0:'/Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphoneos'>
)}
error: Found an unexpected Mach-O header code: 0x72613c21
Note: I see something in the file path about Swift_2.3
which might lead to some answers, but I am not sure.
It could have also possibly been a problem with my Podfile, so I followed the directions posted in this StackOverflow answer and pasted the following line of code into my podfile, so that at the end my podfile looked like this:
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
target 'Roast' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
pod 'Firebase/AdMob'
pod 'JSQMessagesViewController'
target 'RoastTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'RoastKeyboard' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Firebase'
pod 'Firebase/Core'
pod 'Firebase/Database'
pod 'Firebase/Auth'
# Pods for RoastKeyboard
end
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
And I updated my pods.
However, that effectively did nothing.
This is a super annoying error, because I just spent the last two hours fixing bugs in my code and now I get an error that is probably not even my fault.
If anybody could help me out, that would be awesome. Thanks!