Re: Using new stuff
Re: Using new stuff
- Subject: Re: Using new stuff
- From: Aaron Tuller <email@hidden>
- Date: Wed, 16 Nov 2016 11:44:16 -0800
Try using the partial availability warning in the Other Warning Flags build setting in Xcode:
-Wpartial-availability
I can't find a blog post about it (which is where I found it sometime ago), but it does indeed work in Xcode 7.3+. Here's the llvm commit:
http://llvm.org/viewvc/llvm-project?view=revision&revision=232750
-aaron
> On Nov 14, 2016, at 5:03 PM, Gerriet M. Denkmann <email@hidden> wrote:
>
> In some app I have some macOS 12 stuff, e.g.:
>
> self.outlineView.stronglyReferencesItems = NO; // NS_AVAILABLE_MAC(10_12)
>
> In Xcode 8.1 I did set the Deployment Target to macOS 11.
> Compiles und builds without errors or warnings.
>
> But of course the app crashes when run on macOS 11.
>
> I tried changing the SDK but was offered the choice between “macOS 12” and “Latest (macOS 12)”.
>
> How to find all places in my app where stuff not available before macOS 12 is used?
>
> Gerriet.
>
>
> _______________________________________________
> 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
_______________________________________________
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