Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stuck on Fetching firebase-ios-sdk in Xcode

I'm working on a project and I'm using Swift package manager to manage dependencies. I had just updated my Xcode to 12.5 and I had deleted the derived data, because I thought it would resolve a problem I was having (none of the errors showing up on the Issue navigator, but would show up in the Report navigator). Anyways, that is not the main issue.

This is the report for "Reset package cache" that has been running for the last 30 mins

After I deleted my derived data, the package should have re-fetched. However, that is not happening. I tried resetting the package cache and restarting my macbook. This has been going on for two hours with me looking up similar questions on stack overflow, but I coudn't find any solution. Any help would be godsend.

Edit: Cloned the project in another directory to see if it would resolve the issue. No luck.

like image 886
Aswath Avatar asked Nov 25 '25 09:11

Aswath


2 Answers

For anyone stuck in fetching <package> you might just needed to manually delete the cached files present in ~/Library/Caches/org.swift.swiftpm/

Thanks to https://stackoverflow.com/a/67323117/3970488

like image 109
Aswath Avatar answered Nov 27 '25 23:11

Aswath


Deleting cache only didn't work for me.

I had to;

  • Remove the stuck package,
  • Close the Xcode,
  • Delete the cache,
  • Delete the Derived Data,
  • Reopen the project and wait for it to fetch other packages,
  • Re-add the stuck package.
like image 29
ysnzlcn Avatar answered Nov 27 '25 21:11

ysnzlcn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!