Re: Xcode 6 does not warn on use of iOS8 only method when deployment target is iOS7
Re: Xcode 6 does not warn on use of iOS8 only method when deployment target is iOS7
- Subject: Re: Xcode 6 does not warn on use of iOS8 only method when deployment target is iOS7
- From: Jerry Krinock <email@hidden>
- Date: Sun, 28 Sep 2014 15:35:05 -0700
> On 2014 Sep 28, at 07:22, David Hoerl <email@hidden> wrote:
>
> I contacted the company that produces Deploymate, and unfortunately they do not support Swift, nor do they have any immediate plans to do so.
That is probably a sad result of the poor business case for commercial developer tools.
I don’t think that Deploymate does much code analysis, even of Objective-C. Although I’ve got more than my money’s worth of catches from Deploymate, if I want to avoid warnings from, as Ken Thomases described, “intentional uses of new APIs so long as they were properly protected by runtime checks for availability”, I must surround such uses with special Deploymate “ignore this” #pragmas.
> This begs the issues of, who's going to step up to the plate and develop an open source parser for Swift
Not me. That would be a dead project as soon as Apple opens theirs, or a constant fire drill of updates if they don’t.
> On 2014 Sep 26, at 22:01, Ken Thomases <email@hidden> wrote:
>
> analyzing code paths is what the static analyzer does. It would "know" that -respondsToSelector: and the like would return false when the API is not available, so uses protected by such a check would be fine, but uses without proper checking would be flagged.
Indeed, I say the practical solution is to file bugs with Apple asking that this be added to clang, and pray. Maybe mention Deploymate and hint that this is preventing adoption of Swift.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden