cocoapodsipabus-errorxcode10.2

How to fix "Bus error 10" after update to Xcode 10.2


I updated Xcode to new stable 10.2v. I tried to build my project and it was successful. When I'm trying to archive the project (workspace), I'm getting errors like on screenshot below:

What I've tried so far:

  1. Update cocoa pods to latest version -> COCOAPODS: 1.7.0.beta.3
  2. Clean DeliveredData folder
  3. Reinstall Xcode
  4. Remove repository, clone it again and install pods
  5. Totally remove all pods from project and add them back

Solution

  • Temporary Workaround

    For me it was only the Cache framework. Until they have fixed it, you can manually set SWIFT_OPTIMIZATION_LEVEL to -Onone for the configuration you want to use for archiving.

    CocoaPods

    You could even use your Podfile if you don't want Cococapods to overwrite the settings every time you run pod install

    post_install do |installer|
        installer.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
                if target.name == 'Cache'
                    config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'
                end
            end
        end
    end
    

    Note that this is specifically checking for the Cache framework. If you have problems with other frameworks you might want to change or extend this condition.