Post

Replies

Boosts

Views

Activity

Sandboxing entitlement for /dev/
We have a sandboxed Network Extension. Now we need to use /dev/auditpipe and this obviously doesn't work unless I turn sandboxing off. Is there a "temporary" exception entitlement for this kind of access? com.apple.security.temporary-exception.files.absolute-path.read-only and com.apple.security.temporary-exception.files.absolute-path.read-write have no effect on /dev/, apparently.
3
0
819
Apr ’22
arm64 Link-Time Optimization problems
I've run into one weird issue in Xcode 13.2.1 (didn't test with others) when linking very specific code in a universal macOS application. Debug builds work fine for all platforms (Apple/Intel). Release build though fails in one function implementing Blowfish crypto only for arm64, works fine on Intel. A decrypt function returns garbage only in this very specific case. Intel code under Rosetta also works fine. After few hours of elimination I narrowed it down to Link-Time Optimization option (LTO) - when it's set to anything else but No it does create this problem on arm64 only. I can't reproduce this with a smaller project using same Blowfish code and even enabling LTO for Debug build doesn't reproduce this. It has to be Release, LTO, arm64 and some ***** dust. Does anybody have any idea what's going on? I'd really like to find what happens here!
1
0
1.4k
Jan ’22
Create custom CGColorSpaceRef profile
Hello. I need to create a matrix based ICC profile in my app. I provide everything - matrix, illuminant and so on. I have code which does that with ColorSync on macOS and profile works fine. Now I'd like to do the same and seems like Core Image has CGColorSpaceCreateCalibratedRGB(), which appears to be something close, but profile it creates is not correct. Specifically value Y in gXYZ and bXYZ tags seem to be clamped. F.e. in gXYZ Y should be 1.061, but CI gives me 1.000, bXYZ Y should be -0.239 and CI gives me 0.000. Also it gives me different class (Display and I need Device). Basically produced profile is not working. Is there other way which would allow me to create a custom matrix device profile on iPadOS/iOS? Thanks!
0
0
462
Jun ’20