Facebook-ios-sdk: Xcode 11 / iOS 13 - Error importing FB SDK Swift Libraries

Created on 10 Oct 2019  路  7Comments  路  Source: facebook/facebook-ios-sdk

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

  • Xcode Version: 11.0
  • Swift Version: 5.1 (if issue is Swift related)
  • Installation Platform & Version: [Manual] version ``

Goals

What do you want to achieve?

Use Facebook SDK in iOS13 Swift App without using CocoaPods.

Expected Results

What do you expect to happen?
Following instructions here for using Manual Dynamic or Static Framework as Carthage support is stated as not provided:
https://github.com/facebook/facebook-swift-sdk/blob/master/MigrationGuide.md

Actual Results

Error Produced on import line:
import FBSDKCoreKit

Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler

Steps to Reproduce

What are the steps necessary to reproduce this issue?
Following instructions here for using Manual Dynamic or Static Framework:
https://github.com/facebook/facebook-swift-sdk/blob/master/MigrationGuide.md

and build Xcode Project

All 7 comments

This is a good point. We need to distinguish between frameworks built for 5.0.1 and 5.1. Will upload those builds to the latest release as soon as possible.

@sanvean Question. Are you using the dynamic or the static libraries?

I see the issue here. We built using Xcode 10.3. We should be able to just upload those built with 11. Stay tuned.

@sanvean, the release and build scripts have been updated to use Xcode 11. Please reopen if you have any concerns.

Thanks Joe 馃

Can you make a new release so we can download these builds? Not sure how else to use it.

The updated builds were uploaded to the current release since they are what should have been there originally.

If what is there does not work then we may have a different issue to address.

You can also clone the project and build the targets you need manually, or use a dependency manager such as CocoaPods. (Using pod FBSDKCoreKit/Swift)

Was this page helpful?
0 / 5 - 0 ratings