You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our app, we have 40-50 SPM dependencies, and AppsFlyer is in the top 3 slowest packages to resolve.
Potential Solution
This is a known SPM issue, as SPM by default pulls not just the code but all the branches and commit history, etc. swiftlang/swift-package-manager#6062
Some larger repositories have solved this by creating a separate repo that just points to the precompiled XCFramework, resulting in much, much smaller and faster package resolution.
ah @amit-kremer93 I saw that but didn't understand, it looks like -static is equivalent to what im asking for.
However, looks like my Appsflyer Framework is coming as a transitive dependency of segment-apps flyer-ios (https://github.com/AppsFlyerSDK/segment-appsflyer-ios), and that doesn't use the static/dynamic/strict addresses listed in the README, it just pulls in all of AppsFlyer I think (or maybe that is the same as the Dynamic option)
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name:"segment-appsflyer-ios",
targets:["segment-appsflyer-ios"]),],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(name:"Segment", url:"https://github.com/segmentio/analytics-ios.git", from:"4.0.0"),.package(name:"AppsFlyerLib", url:"https://github.com/AppsFlyerSDK/AppsFlyerFramework.git",.exact("6.14.3")),],
Issue
In our app, we have 40-50 SPM dependencies, and AppsFlyer is in the top 3 slowest packages to resolve.
Potential Solution
This is a known SPM issue, as SPM by default pulls not just the code but all the branches and commit history, etc.
swiftlang/swift-package-manager#6062
Some larger repositories have solved this by creating a separate repo that just points to the precompiled XCFramework, resulting in much, much smaller and faster package resolution.
Example, Lottie: https://github.com/airbnb/lottie-spm
Can AppsFlyer SDK be offered in this way for iOS app consumption?
The text was updated successfully, but these errors were encountered: