IBDecodable / IBLinter

A linter tool for Interface Builder
MIT License
948 stars 42 forks source link

'Parse XML error XML Element Error: Incorrect key ["archive"]' when analyzing WatchKit storyboards #180

Open mman opened 2 years ago

mman commented 2 years ago

I have it integrated as a build step for my iOS app like this:

if which iblinter >/dev/null; then
  iblinter lint
else
  echo "warning: IBLinter not installed, download from https://github.com/IBDecodable/IBLinter"
fi

And it automatically detects all .storyboards and fails with the following errors for the watch kit storyboard.

WatchKitApp/Base.lproj/Interface.storyboard:0:0: warning: Parse XML error XML Element Error: Incorrect key ["archive"]
WatchKitApp/Base.lproj/Interface.storyboard:0:0: warning: Parse XML error XML Element Error: Incorrect key ["archive"]
WatchKitApp/Base.lproj/Interface.storyboard:0:0: warning: Parse XML error XML Element Error: Incorrect key ["archive"]
WatchKitApp/Base.lproj/Interface.storyboard:0:0: warning: Parse XML error XML Element Error: Incorrect key ["archive"]
WatchKitApp/Base.lproj/Interface.storyboard:0:0: warning: Parse XML error XML Element Error: Incorrect key ["archive"]
phimage commented 2 years ago

Watch storyboard are not supported.

If you have an error with something parsed, please provide it….

Le mercredi 23 mars 2022, Martin Man @.***> a écrit :

I have it integrated as a build step for my iOS app like this:

if which iblinter >/dev/null; then iblinter lint else echo "warning: IBLinter not installed, download from https://github.com/IBDecodable/IBLinter" fi

And it automatically detects all .storyboards and fails with the following errors for the watch kit storyboard.

WatchKitApp/Base.lproj/Interface.storyboard:0:0: warning: Parse XML error XML Element Error: Incorrect key ["archive"] WatchKitApp/Base.lproj/Interface.storyboard:0:0: warning: Parse XML error XML Element Error: Incorrect key ["archive"] WatchKitApp/Base.lproj/Interface.storyboard:0:0: warning: Parse XML error XML Element Error: Incorrect key ["archive"] WatchKitApp/Base.lproj/Interface.storyboard:0:0: warning: Parse XML error XML Element Error: Incorrect key ["archive"] WatchKitApp/Base.lproj/Interface.storyboard:0:0: warning: Parse XML error XML Element Error: Incorrect key ["archive"]

— Reply to this email directly, view it on GitHub https://github.com/IBDecodable/IBLinter/issues/180, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDW56GSIY3S3ESVYBRL3OLVBNC7FANCNFSM5ROQPYRA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mman commented 2 years ago

@phimage I'm fine with WatchKit storyboards not supported, but I do not see a way how to skip/exclude them from the check.

Am I missing something? Is there a way for IBLinter to ignore them?