Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when archiving in Xcode Cloud #15

Closed
gorka opened this issue Oct 7, 2023 · 5 comments
Closed

Error when archiving in Xcode Cloud #15

gorka opened this issue Oct 7, 2023 · 5 comments

Comments

@gorka
Copy link

gorka commented Oct 7, 2023

Hi,

I added the TMDb package to a project in Xcode with the SPM. That package has SwiftLint and SwiftLintPlugin as dependencies.
If I archive the code locally from Xcode everything works fine, but when I try to do the same from Xcode Cloud it fails.

Screenshot 2023-10-07 at 10 35 25 AM

At first, I thought it was because I had linting issues, so I fixed them all. If I run SwiftLint locally I don't get any warning.
Checking the logs, I realized that wasn't the problem. The problem is:

Error: You don’t have permission to save the file “f5a82a99c7fcf819a5868248f7fe3ad5ac901d06aa1bfa62415f26aba3e78b03.plist” in the folder “A4FD347F-F59D-3FB2-835A-CAC16AC563DB”.

Then I thought, well, maybe I don't need to run the linter when archiving, and found that setting this env var (DISABLE_SWIFTLINT) should disable the linter. I added it to the workflow but the error is still there.

I'm using Xcode 15.0

@lukepistrol
Copy link
Owner

Could you please provide a link to the TMDb?

Unfortunately I haven't done anything with Xcode Cloud yet and I'm not familiar with the options one can set there when building. Maybe they don't allow build tool plugins to run on Xcode Cloud?

@gorka
Copy link
Author

gorka commented Oct 11, 2023

https://github.com/adamayoung/TMDb

I'm investigating and now I'm not sure that this is the plugin the package uses. It just happens to have the same name. If that's the case, please close this issue.

I also found an open issue on SwiftLint's repo.

@lukepistrol
Copy link
Owner

Can't find any reference to this package in TMDb's package manifest

@gorka
Copy link
Author

gorka commented Oct 11, 2023

That's the main branch. In version 9.0.0 (latest) you can find references:

plugins: [
    .plugin(name: "SwiftLintPlugin")
]

@lukepistrol
Copy link
Owner

Yeah that's the official plugin by Swiftlint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants