Closed pnome closed 6 months ago
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
Hey @pnome !
When you install the SDK, you will want to set the Dependency Rule to Up to next major, and the version number to 4.0.0 < 5.0.0. When "Choose Package Products for purchases-ios" appears, Xcode adds all libraries to your target by default. Select "None" for RevenueCat_CustomEntitlementComputation and ReceiptParser.
Can you please verify that you have done the following and let me know if that helps?
Thanks. That's how I had it set. Weirdly, everything is fine today. it's instant. Very strange.
@pnome I'm actually running into this right now. It seems like an Xcode 15.3 or sonoma 14.4 bug, but I'm not sure yet. Quite annoying in that there isn't much in the way of information coming from xcode either.
Looks like xcode is picking up the entire repo's history, which includes every snapshot in UI tests, when checking out the SPM package. We're looking into ways of solving it
@aboedo Hi! Others already solved this problem like this: https://github.com/airbnb/lottie-spm https://github.com/OneSignal/OneSignal-XCFramework
@artem-tverdokhlebov thanks for sending those over! We'll take a look at the approaches, there are some pros and cons for each but either one would help us solve the problem.
Same problem here. Takes hours for me to re-install purchases-ios package. Same behavior being stuck at 44%, 45%, 46%.
Any updates on this? This is an incredibly frustrating issue :(
MacOS : 14.4.1 XCode : 15.3
Any news?
Strangely, I haven't been experiencing the issue lately. I have no idea why. I had to clean the build folder and delete derived data just today, and it didn't take long to update to the latest package versions. The issue has been on and off for me over the years.
Same issue here
Hello all, thank you for letting us know about this problem.
We have a set up a mirror repo, purchases-ios-spm, that is much faster to integrate via SPM than the main iOS repo.
Could you please try integrating with it, and let us know if you see a huge improvement in the time it takes to add/update the package?
Thank you!
Seems to work great. Thanks 🙏
Great to hear! I will close this issue then, let us know if you have any future issue with it
Thanks for your patience by the way!
This issue has been automatically locked due to no recent activity after it was closed. Please open a new issue for related reports.
Whenever I do "Update to latest package versions" in Xcode (15.3), purchases-ios takes an extremely long time, and sometimes doesn't complete. This has been happening to me for a while over multiple Xcode versions.
I have 20 Swift Packages in my project and none of the others have issues.
The following happens with purchases-ios nearly every time...
I don't know what to do about this, but it can stop me working for hours at a time if I need to refresh packages for some reason. I can't build anything while it's in that state.
I sometimes see this error, but I can only assume it's because it didn't manage to fetch properly: Failed to resolve dependencies Dependencies could not be resolved because no versions of 'purchases-ios' match the requirement 4.39.0.<5.0.0 and root depends on 'purchases-ios' 4.39.0…<5.0.0.