RevenueCat / purchases-ios

In-app purchases and subscriptions made easy. Support for iOS, watchOS, tvOS, macOS, and visionOS.
https://www.revenuecat.com/
MIT License
2.37k stars 319 forks source link

Issue Adding RevenueCat Framework via Swift Package Manager #4486

Closed shift00 closed 1 week ago

shift00 commented 1 week ago

i am trying to integrate the RevenueCat library into my project. However, when I attempt to add the framework through Swift Package Manager, I encounter an error. I have attached a screenshot of the error message for your reference.

Zrzut ekranu 2024-11-13 o 21 04 23

Could you please assist me in resolving this issue?

Thank you in advance for your help.

RCGitBot commented 1 week ago

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

aboedo commented 1 week ago

Hi @shift00 I actually ran into something very similar yesterday, and it took me a big to figure it out but a combination of "Reset Package Caches" (Under File -> Packages) and restarting Xcode did the trick, seems like some bad Xcode cache. Could you try that out?

shift00 commented 1 week ago

@aboedo it's working! Thanks!

Konstantin-Ryad commented 1 week ago

This bug has been happening for at least three days now. I've checked it now - everything is the same as in the screenshot above.

aboedo commented 1 week ago

@shift00 thanks for confirming!!

@Konstantin-Ryad does it still happen to you after resetting package caches and restarting Xcode?

Konstantin-Ryad commented 1 week ago

@aboedo Unfortunately, yes, I have tried these methods several times

MarkVillacampa commented 1 week ago

@Konstantin-Ryad just in case you haven't done it, deleting ~/Library/Developer/Xcode/DerivedData is the more drastic buy effective option. I haven't been able to reproduce with a new project.