facebook / facebook/facebook-ios-sdk
Facebook SDK fails the build on xcode versions prior to Xcode 16
- Dominant language
- Swift
- Stars
- 8.1k
- Forks
- 3.7k
- PR merge metrics
- No merged PRs in 30d
Description
### Checklist before submitting a bug report
- [X] I've updated to the latest released version of the SDK
- [X] I've searched for existing [GitHub issues](https://github.com/facebook/facebook-ios-sdk/issues)
- [X] I've looked for existing answers on [Stack Overflow](https://facebook.stackoverflow.com), the [Facebook Developer Community Forum](https://developers.facebook.com/community/) and the [Facebook Developers Group](https://www.facebook.com/groups/fbdevelopers)
- [X] I've read the [Code of Conduct](https://github.com/facebook/facebook-ios-sdk/blob/main/CODE_OF_CONDUCT.md)
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
### 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:
```
❌ /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 {}
^
❌ /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 {}
^
❌ /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
^
❌ /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 {}
^
❌ /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](https://github.com/tejassharma96/FacebookLoginTest) with a basic project with a dependency on facebook login. Open the project and attempt to build using Xcode 15.4
Contributor guide
Assessment
This issue has not been assessed yet.