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

Facebook SDK fails the build on xcode versions prior to Xcode 16 #2480

Open
5 tasks done
tejassharma96 opened this issue Sep 30, 2024 · 2 comments
Open
5 tasks done

Comments

@tejassharma96
Copy link

tejassharma96 commented Sep 30, 2024

Checklist before submitting a bug report

Xcode version

15.4

Facebook iOS SDK version

7.3.0

Dependency Manager

SPM

SDK Framework

Login

Goals

Attempted to build a project dependent on the facebook login SDK in Xcode 15.4

Expected results

A successful build. Breaking changes should be made with a major version bump, not a minor bump.

Actual results

Received the following errors during compilation:

❌ <derived data path>/Build/Products/Debug-iphonesimulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface:384:62: no type named 'BitwiseCopyable' in module 'Swift'
extension FBSDKLoginKit.FBTooltipView.ArrowDirection : Swift.BitwiseCopyable {}
                                                             ^
❌ <derived data path>/Build/Products/Debug-iphonesimulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface:389:58: no type named 'BitwiseCopyable' in module 'Swift'
extension FBSDKLoginKit.FBTooltipView.ColorStyle : Swift.BitwiseCopyable {}
                                                         ^
❌ <derived data path>/SourcePackages/checkouts/facebook-ios-sdk/Sources/FacebookLogin/Exports.swift:10:19: failed to build module 'FBSDKLoginKit'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)', while this compiler is 'Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)'). Please select a toolchain which matches the SDK.
@_exported import FBSDKLoginKit
                  ^
❌ <derived data path>/Build/Products/Debug-iphonesimulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface:384:62: no type named 'BitwiseCopyable' in module 'Swift'
extension FBSDKLoginKit.FBTooltipView.ArrowDirection : Swift.BitwiseCopyable {}
                                                             ^
❌ <derived data path>/Build/Products/Debug-iphonesimulator/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface:389:58: no type named 'BitwiseCopyable' in module 'Swift'
extension FBSDKLoginKit.FBTooltipView.ColorStyle : Swift.BitwiseCopyable {}
                                                         ^
** BUILD FAILED **
The following build commands failed:
	SwiftEmitModule normal arm64 Emitting\ module\ for\ FacebookLogin (in target 'FacebookLogin' from project 'Facebook')

Steps to reproduce

Build a project dependent on FBSDKLoginKit using Xcode 15.4

Code samples & details

Created a test repo here with a basic project with a dependency on facebook login. Open the project and attempt to build using Xcode 15.4

@sagar-singh07
Copy link

sagar-singh07 commented Oct 28, 2024

@tejassharma96 Have you found a solution, or is downgrading the only option?

@tejassharma96
Copy link
Author

we had to just pin a lower version...

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

2 participants