Post

Replies

Boosts

Views

Activity

Viewbased stereoscopic drawing
Is there a way to render stereoscopic (left/right) images in a 2d plane that resides in a swiftUI view? I know this is possible in realityKit shaders, and in immersive metal composits, but is it possible via swiftUI shaders, CAMetalLayer, etc? I'd like to draw a 2d window with standard UI chrome (resize, move etc) that displays stereoscopic content on the flat plane of the window.
0
0
489
Feb ’24
Want to manually validate my app's bundle against code signing
I'm building a developer ID notarized app which relies on a file within my resource folder for licensing, in such a way that I don't need to obfuscate it, but I would like to block casual users from altering it. This seems like a perfect job for code signing. I tried running the following code to check my currently running executable's signing status, but it passes immediately after notarizing, but also after I alter files in my resource folder or the info.plist. pid_t pid = getpid(); SecCodeRef code = nil; CFNumberRef pidnumber = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &pid); CFDictionaryRef piddict = CFDictionaryCreate(kCFAllocatorDefault, (const void**)&kSecGuestAttributePid, (const void**)&pidnumber, 1, nil, nil); if(!SecCodeCopyGuestWithAttributes(nil, piddict, kSecCSDefaultFlags, &code)) {          is_valid = SecCodeCheckValidity(code, kSecCSDefaultFlags, 0); } However, from the command line I get the following: % codesign --verify /Users/mike/Desktop/Test.app /Users/mike/Desktop/Test.app: a sealed resource is missing or invalid How can I configure things to get a fail state from SecCodeCheckValidity? Thanks, mike
1
0
672
Oct ’22
install_name_tool failing on 3rd party dylib
Hello, A vendor recently updated their SDK and I'm trying to update my project to use the new dylib. I'm not able to use the dylib out of the box due to linking problems, so fired up install_name_tool to update the id to properly work in my situation (similar thing worked with their prior release.) However, with this build I'm getting the error: % install_name_tool -id @rpath/libblahblahblah.dylib libblahblahblah.dylib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: fatal error: file not in an order that can be processed (link edit information does not fill the __LINKEDIT segment): libblahblahblah.dylib (for architecture x86_64) Google isn't returning much beyond explanations of the macho file layout. Is there a simple way to alter the dylib locally to address this? Is there something I can suggest the vendor does upstream? Thanks, mike
5
0
3.3k
Mar ’22
metal app not triggering discrete gpu
Hello,After a recent update of Catalina, our metal app stopped using the discrete gpu (instead scheduling all work on the macbook's integrated gpu). I've confirmed that we are setting up metal with the discrete gpu's device.Is this a known issue? Has the API changed somehow to trigger automatic graphics switching?mike
1
0
904
Dec ’19
supported iosurface/pixelbuffer formats
I'm trying unsuccesfully to upgrade our CIImage based video display pipeline to wide color and HDR. The problem is finding a >8bit pixelformat supported by CIImage imageWithIOSurface: or imageWithCVImageBuffer:for all but the most common formats (32, '2vuy', etc) i get the following error on console:[api] [CIImage initWithIOSurface:options:] failed because surface format was x422.I've tried kCVPixelFormatType_422YpCbCr10BiPlanarVideoRange (suggested format for HEVC wide decomp according to avf wwdc video) and numerous others.Are supported pixelformats documented anywhere?
2
0
2.3k
Oct ’17