maiyama18 / LicensesPlugin

A Swift Package build tool plugin to collect licenses of the library used in your swift package
MIT License
76 stars 3 forks source link

Not working on Xcode Cloud. #7

Closed noppefoxwolf closed 1 year ago

noppefoxwolf commented 1 year ago
CleanShot 2023-03-07 at 02 32 02@2x
noppefoxwolf commented 1 year ago

In local case, I accepted a dialog that looks like following image. I need to accept dialog without GUI when running in Xcode Cloud.

200274173-e3e1e1f7-9d93-4a5e-ac4e-062e6cbc5200
maiyama18 commented 1 year ago

@noppefoxwolf Thanks for reporting the issue! Did you try skipping plugin validations by executing below in scripts?

defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES

Refs:

noppefoxwolf commented 1 year ago

@maiyama18 Thanks. It's working after I put the script. But plugin cannot write to file which haven't permission.

CleanShot 2023-03-07 at 12 11 18@2x
maiyama18 commented 1 year ago

@noppefoxwolf Thanks! I can't figure out the cause of that error right now, so I'll investigate by making a sample project and try it out on xcode cloud later. The current implementation of this plugin is very naive, and may cause some kind of problem like that.

noppefoxwolf commented 1 year ago

@maiyama18 I made PR #8 that resolve permission issues. It's working fine in my local and cloud environments. Please try it.

maiyama18 commented 1 year ago

🆒 Thank you so much! I'll try it later.

maiyama18 commented 1 year ago

Fixed by https://github.com/maiyama18/LicensesPlugin/pull/8