Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version problem #2141

Open
5 tasks done
aserdah opened this issue Nov 10, 2022 · 15 comments
Open
5 tasks done

version problem #2141

aserdah opened this issue Nov 10, 2022 · 15 comments

Comments

@aserdah
Copy link

aserdah commented Nov 10, 2022

Checklist before submitting a bug report

Xcode version

14.1

Facebook iOS SDK version

15.1.0

Dependency Manager

CocoaPods

SDK Framework

Core

Goals

Failed to build module 'FBSDKCoreKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)', while this compiler is 'Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)'). Please select a toolchain which matches the SDK.

Expected results

update the sdk

Actual results

update the sdk

Steps to reproduce

Failed to build module 'FBSDKCoreKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)', while this compiler is 'Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)'). Please select a toolchain which matches the SDK.

Code samples & details

// INSERT YOUR CODE HERE
var example = "Example code"
@edolorenza
Copy link

edolorenza commented Nov 14, 2022

same issue here when build the app with xcode cloud

Xcode version
14.1

Facebook iOS SDK version
15.1.0

Dependency Manager
SPM

Error Message
Failed to build module 'FBSDKGamingServicesKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)', while this compiler is 'Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)'). Please select a toolchain which matches the SDK.

@Sanchita-36
Copy link

Facing same issue

@alexmanning14
Copy link

Same issue for me as well

@bruno-aguiar
Copy link

bruno-aguiar commented Nov 30, 2022

Same issue here.

SDK version 15.1.0

Xcode 14.0.1

Installed the SDK with Cocoapods.

/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/FBSDKCoreKit/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface:1:1: Failed to build module 'FBSDKCoreKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)', while this compiler is 'Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)'). Please select a toolchain which matches the SDK.

@katleta3000
Copy link

The same with SPM, too.

It would be great if you added module stability and swift evolution support to all inner dependencies that come with FacebookSDK, like FBSDKGamingServicesKit. It would definitely eliminate the problem

@amrogad
Copy link

amrogad commented Jan 10, 2023

For some reason pod 'FacebookSDK' gives me this issue but when I replace it with
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
the app builds fine

@Neli2022
Copy link

For some reason pod 'FacebookSDK' gives me this issue but when I replace it with pod 'FBSDKCoreKit' pod 'FBSDKLoginKit' pod 'FBSDKShareKit' the app builds fine

hihi @amrogad what do you do in replacing?

@carlos0193
Copy link

Could someone solve this problem?

@amrogad
Copy link

amrogad commented Jan 17, 2023

For some reason pod 'FacebookSDK' gives me this issue but when I replace it with pod 'FBSDKCoreKit' pod 'FBSDKLoginKit' pod 'FBSDKShareKit' the app builds fine

hihi @amrogad what do you do in replacing?

Go to the Podfile
replace

pod 'FacebookSDK'

with

pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'

that's what did it for me

@Neli2022
Copy link

oh, thanks , it didn't work for me , in my pod file wasn't involve FacebookSDK.

@samavan
Copy link

samavan commented Jan 26, 2023

Same issue.

  • facebook-unity-sdk-15.1.0
  • Unity 2021.3.16f1
  • mac OS Ventura 13.2
  • xCode Version 14.2 (14C18)

Here is my PodFile content.

Screenshot 2566-01-26 at 18 47 14

And here the Unity error log on build :
Screenshot 2566-01-26 at 18 47 39

@Rycccccccc
Copy link

Failed to build module 'FBSDKLoginKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)', while this compiler is 'Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)'). Please select a toolchain which matches the SDK.

@SunZhiC
Copy link

SunZhiC commented Mar 8, 2023

There is a work around for cocoapods, add these code in Podfile

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
    config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
      end
    end
end

@Penjaza
Copy link

Penjaza commented Nov 28, 2023

For some reason pod 'FacebookSDK' gives me this issue but when I replace it with pod 'FBSDKCoreKit' pod 'FBSDKLoginKit' pod 'FBSDKShareKit' the app builds fine

hihi @amrogad what do you do in replacing?

Go to the Podfile replace

pod 'FacebookSDK'

with

pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'

that's what did it for me

I finally tried to solve this problem a year later and this is what did it for me. Thank you!

@naticio
Copy link

naticio commented Nov 18, 2024

what about people using the sdk package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests