microsoft / LocalizedStringKit

Generate .strings files directly from your code
MIT License
293 stars 13 forks source link

Failed to exclude Carthage file #10

Open haojianzong opened 4 years ago

haojianzong commented 4 years ago

My command: localizedstringkit --exclude Carthage --path . --localized-string-kit-path ./LocalizedStringKit

Then the error is: Found invalid calls to Localized in file Found invalid calls to Localized ./Carthage/Checkouts/localizedstringkit

My project directory looks like:

project root
- Carthage
- LocalizedStringKit
- LocalizedStringKit.bundle

Not sure what's wrong, but I have to use SPM to workaround this issue.

dalemyers commented 4 years ago

I'm guessing there is be a bug with path resolution. We will be getting . rather than the actual path, which is causing the exclusion path to be generated as ./Carthage which doesn't exist. I'll have to take a look and see.