I’m making an attempt so as to add the Fb iOS SDK to my challenge utilizing Swift Package deal Supervisor in Xcode. I’m following the usual course of by including the package deal with the URL:
https://github.com/fb/facebook-ios-sdk
Nonetheless, after initiating the package deal decision, the SDK doesn’t get added, and I encounter the next warning/error:
Unexpectedly didn’t discover the brand new dependency within the package deal graph: sourceControl(id:facebook-ios-sdk,location:SwiftPM.SPMPackageDependency)
Steps I’ve Tried
Verified the URL for the Fb iOS SDK is appropriate (immediately from Fb’s GitHub).
Deleted Derived Information:
~/Library/Developer/Xcode/DerivedData/
Cleared cached packages by deleting the SourcePackages listing in Derived Information.
Stop and restarted Xcode.
Checked my web connection and community restrictions.
Regardless of these steps, the problem persists, and the package deal decision fails.
Extra Data
Xcode model: 16.1
macOS model: Sequoia 15.1.1
I’m looking for options or potential options to repair this package deal decision situation.
Has anybody confronted the same downside or discovered a workaround for efficiently including the Fb iOS SDK with SPM?
EDIT:
when i attempt to set up it in recent challenge with no earlier Dependency it work advantageous
— Currenty i eliminated all Dependency and first add facebook-ios-sdk fisrt than add al different Dependency so it is labored for me
so that is the listing of packages i used already in challenge
SDWebImage - https://github.com/SDWebImage/SDWebImage
lottie-ios' - https://github.com/airbnb/lottie-ios
Firabase - https://github.com/firebase/firebase-ios-sdk
ObjectMapper - https://github.com/tristanhimmelman/ObjectMapper
SwiftyJSON - https://github.com/SwiftyJSON/SwiftyJSON
SPPerspective - https://github.com/ivanvorobei/SPPerspective
SwiftyStoreKit - https://github.com/bizz84/SwiftyStoreKit
ALProgressView - https://github.com/alxrguz/ALProgressView
SwipeCellKit - https://github.com/SwipeCellKit/SwipeCellKit
IQKeyboardManagerSwift - https://github.com/hackiftekhar/IQKeyboardManager
UnsplashPhotoPicker - https://github.com/unsplash/unsplash-photopicker-ios
RangeUISlider - https://github.com/chicio/RangeUISlider