Expected Behavior
no error
Actual Behavior
bartycrouch work,but throw a error with “bad entry in file /Users/xxx/Desktop/project_xxx/project_xxx/Macros.swift (line = 11): Argument is not a literal string.”
Steps to Reproduce the Problem
- define a function:
func kkLocalizedString(_ key: String, comment: String) -> String {
NSLocalizedString(key, tableName: "kkLocalizable", bundle: Bundle.main, value: "", comment: comment)
}
- build project
- error
Specifications
- Version: 4.3.1
- Platform: iOS
- IDE Version:Xcode 12.2
My point
bartycrouch script run before compile sources, then the "key" of NSLocalizedString is not string