Cork icon indicating copy to clipboard operation
Cork copied to clipboard

"not authorized to read cache" when using Tuist to generate

Open LowBudgetReference opened this issue 2 years ago • 5 comments

Bug Report

Mandatory Information

Describe the bug I haven't used my Macbook in a while (close to two months), so I decided to upgrade Cork once I got to use it. Apparently, the method to compile Cork has changed, but now when I run tuist generate, I get (username) is not authorized to read cache. I'm not sure if I was not supposed to log in with my own account, since I had been prompted to authenticate with tuist auth before this and created a new account.

To Reproduce

  1. Run the compilation command (git clone https://github.com/buresdv/Cork.git && cd Cork && tuist install && tuist generate)
  2. Most of the steps work correctly
  3. Once it reaches the tuist generate step, it produces an error as follows:
Loading and constructing the graph
It might take a while if the cache is empty
Fetching remote binaries. Hold tight...
(my username) is not authorized to read cache
Consider creating an issue using the following link: https://github.com/tuist/tuist/issues/new/choose

Expected Behavior The Xcode project generates and opens in Xcode.

System and Cork Information:

  • macOS version: 14.4.1 (23E224)
  • Cork Version: 1.4.2 (62)
  • Did you compile Cork yourself?: Yes

Optional Information

Additional context As mentioned at the start, I haven't used my Mac in a while so my version of Cork is very outdated (along with my other apps).

Checklist

  • [x] I filled everything out under Mandatory Information

LowBudgetReference avatar Aug 01 '24 04:08 LowBudgetReference

I updated the readme. Can you try the new instructions? It may be fixed, but I'm not sure

buresdv avatar Aug 01 '24 10:08 buresdv

I'll try it when I get back soon (in about an hour). Thanks for the fast reply!

LowBudgetReference avatar Aug 01 '24 10:08 LowBudgetReference

Yep, the app generates properly now and I can compile it. However, it seems the app shows the "Thank you for trying out Cork" trial window even though I had selected "Self-Compiled" in Xcode before building.

LowBudgetReference avatar Aug 01 '24 10:08 LowBudgetReference

I'm happy to hear it works. Unfortunately, we can't reproduce your problem:

Snímek obrazovky 2024-08-01 v 23 06 21

I'd say, make sure that you have actually selected the right scheme in the toolbar, or try to do a fresh build by using the command tuist clean, then going through the instructions again.

Because the original problem got solved, I'll be closing this issue.

buresdv avatar Aug 01 '24 21:08 buresdv

Alright, I'll give it a try. I think it might be because I installed over my old app which had also shown the trial error.

LowBudgetReference avatar Aug 02 '24 00:08 LowBudgetReference