我知道很多人在嘗試在Xcode 8 Beta 3中編譯它們的應用程序時出現此錯誤,但是這裏沒有可用的答案似乎對我有幫助。嘗試使用Xcode 8 Beta 3運行我的應用程序時出錯
試圖運行我的應用程序,我通常的錯誤:(null): Found an unexpected Mach-O header code: 0x72613c21
,當我擴大了信息,我回被賦予這樣的:
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
注:我看到一些在有關文件路徑Swift_2.3
這可能會導致一些答案,但我不確定。
這本來也有可能已經與我Podfile一個問題,所以我也跟着張貼在this StackOverflow answer方向和粘貼下面的代碼行到我podfile,這樣在年底我podfile是這樣的:
# 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
我更新了我的豆莢。
但是,那實際上什麼也沒做。
這是一個超級煩人的錯誤,因爲我剛剛花了最近兩個小時修復了我的代碼中的錯誤,現在我得到的錯誤可能不是我的錯。
如果有人能幫助我,那會很棒。謝謝!
我得到相同的錯誤。似乎是Crashlytics框架(可能還有其他)的問題。記錄雷達以優先考慮問題。與此同時,您可以不鏈接到違規框架,或者如果可以的話,嘗試非beta版本的Xcode。 – Mark
我有同樣的錯誤。任何解決這個煩人的錯誤? – fdlr
今天它也只是咬我一口。沒有任何建議爲我工作。我沒有使用Crashlytics。 –