[PATCH] D27827: [ObjC] CodeGen support for @available on macOS

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 3 01:13:43 PDT 2017


arphaman added a comment.

In https://reviews.llvm.org/D27827#829661, @thakis wrote:

> We just noticed that if you call __builtin_available() for the first time after activating your app's sandbox, the function will fail:
>
> SandboxViolation: crdmg(15489) deny file-read-data /System/Library/CoreServices/SystemVersion.plist
>  Violation:       deny file-read-data /System/Library/CoreServices/SystemVersion.plist 
>  Process:         crdmg [15489]
>  Path:            /Volumes/Build/src/./out/release/crdmg
>
> Thread 0 (id: 421251):
>  0   libsystem_kernel.dylib        	0x00007fffe94a1a86 __open_nocancel + 10
>  1   crdmg                         	0x000000010444be98 parseSystemVersionPList + 360
>  2                                 	0xec83485354415541


Hmm, never saw this before. Please post your exact configuration - clang/compiler-rt versions, OS version, toolchain & SDK. Is it possible to get a reproducer?


Repository:
  rL LLVM

https://reviews.llvm.org/D27827





More information about the cfe-commits mailing list