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

[iOS] Not to use SwiftGenPlugin package to avoid high cpu usage #88

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

ry-itto
Copy link
Member

@ry-itto ry-itto commented Aug 29, 2022

related issues:

According to these issues, artifact-bundle causes this problem, but it isn't caused by artifact-bundle in my environment. So I will use own plugin instead of plugin package experimentally.

@ry-itto ry-itto force-pushed the workaround-high-cpu-usage-on-spm-plugin branch from 471c982 to 430280a Compare August 29, 2022 17:40
@ry-itto ry-itto merged commit 366b86c into main Aug 29, 2022
@ry-itto ry-itto deleted the workaround-high-cpu-usage-on-spm-plugin branch August 29, 2022 17:57
Comment on lines +7 to +8
let configurations: [Path] = [context.package.directory, target.directory]
.map { $0.appending("swiftgen.yml") }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey 👋 Thanks for this temporary workaround, it worked great in Xcode 13. However, in Xcode 14 we experience issues, because it is looking for the swiftgen.yml config file in both places and if one of them doesn't exist, the whole command fails.

The solution is to add .filter { FileManager.default.fileExists(atPath: $0.string) }.
Thanks to @Carrione for this idea! 🚀

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pchmelar NP :)

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

Successfully merging this pull request may close these issues.

3 participants