Closed pyrtsa closed 3 years ago
The parser seems to lack handling for these three new keys in attributes:
computedMinMacOsVersion
(type: str
)buildAudienceType
(type: ???)lsMinimumSystemVersion
(type: ???)@pyrtsa, thank you for a detailed issue description. We'll look into it soon.
@pyrtsa, could you please check what version of tools do you have installed? It can be done calling
> app-store-connect --version
Actually handing for undefined attributes was fixed in version 0.9.5 already, and as such, with latest revision the command should not fail unexpectedly with an error. Instead the undefined fields are logged into the logfile as
WARNING - Unknown field 'lsMinimumSystemVersion' for resource Build.Attributes
That being said though, we aim to have acurate model descriptions matching the objects returned by Apple's API. So the values still need to be described on our side in the code.
Oh, I was on 0.9.4.
You're quite right that 0.9.5 fixes the very issue. Closing this issue, thank you!
When running
app-store-connect apps builds <id>
today with an iOS-only app we own, the tool fails with an error message like:and the log file ends with the Python stack trace:
preceded by a JSON dump where every JSON object under
$.data[].attributes
contains the keylsMinimumSystemVersion
with a value ofnull
(i.e.None
). (I think this might be a new key Apple have introduced related to TestFlight support for macOS.)Regardless, I think the tool shouldn't blindly pass
**kwargs
from remote JSON data, or else at least tolerate previously unknown keys in the parsing.