Symbol is not available for deployment target X.X in Project ABC

94 views Asked by At

If you use AppCode, I'm sure you've seen this or similar in your code...

Method XYZ is not available for deployment target 6.1 in 'Project ABC'

Enum Constant XYZ is not available for deployment target 7.0 in 'Project ABC'

But yet the project still builds fine and runs as expected... so what exactly does AppCode mean by these messages when they clearly aren't true, given the fact the project runs perfectly while utilizing the features of the supposed unavailable methods, enums, etc.

enter image description here

1

There are 1 answers

2
Stanislav Dombrovsky On BEST ANSWER

It looks like you have Deployment Target set to 6.1 in the Project settings, and authorizationStatusForMediaType is available starting from 7.0 version. Same for other similar cases.