Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fabric/Crashlytics incompatible swift versions

I've downloaded and updated to the latest Fabirc/Crashlytics release, but now I'm getting the following error:

error: The following binaries use incompatible versions of Swift:
/Users/me/Library/Developer/Xcode/DerivedData/MyApp-abcdefghijk/Build/Products/SomeScheme-iphonesimulator/MyApp.app/blah/blah
/Users/me/iOS/my-project-ios/Dependencies/Fabric.framework/upload-symbols

You can check the change log where the latest release (Fabric 1.10.0, Crashlytics 3.13.0, May 10) combines the pervious uploadDSYM executable with upload-symbols, which is the one causing the issue. https://docs.fabric.io/apple/changelog.html

I've tried all the typical solutions, cleaning, deleting derived data, restarting Xcode, etc.

The project runs in Swift 4.2

Any ideas?

like image 390
Frankie Avatar asked May 14 '19 15:05

Frankie


1 Answers

I received this official response from Fabric support:

Thank you for reaching out to us and sorry that you are running into this issue, We are aware of this and are actively working on a fix! The following work around should unblock you till then:

There seems to be an issue impacting manual downloads (Latest SDKs) and Xcode 10.2. This is a bug with Xcode checking binaries for Swift versions, even when the binaries aren't actually bundled with the app.

In the meantime, to unblock these customers, have them:

1) Go into "Build Phases"

2) Remove Fabric.framework and Crashlytics.framework

For both Crashlytics and Fabric:

3) Click the + and then "Add Other..." in the lower left corner

4) Navigate to the .framework folder, and instead of selecting the .framework, select the "Crashlytics" and "Fabric" binaries themselves (they're at the top level of the framework)

Make you you do not still have Fabric.framework or Crashlytics.framework in your project.

like image 173
Siegfoult Avatar answered Oct 14 '22 20:10

Siegfoult