xcode – Unable to Add Fb iOS SDK Utilizing Swift Package deal Supervisor (SPM) – Sudden Dependency Graph Concern

xcode – Unable to Add Fb iOS SDK Utilizing Swift Package deal Supervisor (SPM) – Sudden Dependency Graph Concern


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

picture of warning ::
enter image description here

author avatar
roosho Senior Engineer (Technical Services)
I am Rakib Raihan RooSho, Jack of all IT Trades. You got it right. Good for nothing. I try a lot of things and fail more than that. That's how I learn. Whenever I succeed, I note that in my cookbook. Eventually, that became my blog. 
rooshohttps://www.roosho.com
I am Rakib Raihan RooSho, Jack of all IT Trades. You got it right. Good for nothing. I try a lot of things and fail more than that. That's how I learn. Whenever I succeed, I note that in my cookbook. Eventually, that became my blog. 

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here


Latest Articles

author avatar
roosho Senior Engineer (Technical Services)
I am Rakib Raihan RooSho, Jack of all IT Trades. You got it right. Good for nothing. I try a lot of things and fail more than that. That's how I learn. Whenever I succeed, I note that in my cookbook. Eventually, that became my blog.