Post

Replies

Boosts

Views

Created

install shortcut in app?
is there any recommend way to install a shortcut link in an app to make it easy for the user to get at it? or is maybe just a regular link that opens in a webview the only/best way? these type of automation shortcuts:: https://support.apple.com/guide/shortcuts/welcome/ios
0
0
684
Sep ’21
CreateML raw predictions output
i am using the tabular regression method of CreateML. i see where it prints a couple of metrics such as root mean square error on the validation data, but i dont see any way to export the raw fitted numbers (e.g. training prediction), or validation numbers (e.g. validation prediction), or out of sample "testing" numbers (from the testing data set). is this possible in CreateML directly? the reason this is necessary is that you sometimes want to plot actual versus predicted and compute other metrics for regressions.
0
0
596
Feb ’22
hdr dolby vision video color correction to 8 bit still images
Hey guys, tried to follow the super confusing doc on this, but no luck yet. https://developer.apple.com/av-foundation/Incorporating-HDR-video-with-Dolby-Vision-into-your-apps.pdf I have code that uses AVAssetReader and AVAssetReaderTrackOutput to directly pull frames from a video, but the colors are wrong for HDR dolby videos. Basically what I want is to extract frames from an HDR Dolby video as images and have those images not be the wrong color. Don't care if they are only 8 bit per color instead of 10 and all the all new stuff, just the closest that old fashioned 8 bit per color supports. I added the statement marked // added for dolby hdr per the above doc, (spread across several lines), no luck, still bad colors. Any hints of what I am missing? NSMutableDictionary* dictionary = [[NSMutableDictionary alloc] init];                                [dictionary setObject:[NSNumber numberWithInt:kCVPixelFormatType_32BGRA] forKey:(NSString*)kCVPixelBufferPixelFormatTypeKey];                // added for dolby hdr                dictionary[AVVideoColorPropertiesKey] = @{                 AVVideoColorPrimariesKey: AVVideoColorPrimaries_ITU_R_709_2,                 AVVideoTransferFunctionKey: AVVideoTransferFunction_ITU_R_709_2,                 AVVideoYCbCrMatrixKey: AVVideoYCbCrMatrix_ITU_R_709_2                 };                                AVAssetReaderTrackOutput* asset_reader_output = [[AVAssetReaderTrackOutput alloc] initWithTrack:video_track outputSettings:dictionary];                                  [asset_reader addOutput:asset_reader_output]; // from here we get sample buffers like this CMSampleBufferRef buffer2 = [asset_reader_output copyNextSampleBuffer]; // then pixel buffer  CVPixelBufferRef inputPixelBuffer = CMSampleBufferGetImageBuffer(buffer2); // then a CIImage   CIImage* ciImage = [CIImage imageWithCVPixelBuffer:inputPixelBuffer]; // one vid frame then we use standard stuff to convert that to a CGImage/UIImage
2
0
2.1k
Mar ’22
bundle identifier null
i am getting this error when i added a new app extension (notification content) error: Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier. Embedded Binary Bundle Identifier: (null) i have set it up the same way as another app extension in the app. i have also tried to set the bundle id manually in the info.plist file as noted by some posts, but xcode keeps changing it back to the default of ${PRODUCT_BUNDLE_IDENTIFIER}. e.g. my manual edits to info.plist aren't being accepted for this key. it seems like maybe PRODUCT_BUNDLE_IDENTIFIER variable is getting cleared to null for that extension during the build process? any workarounds?
1
0
1.9k
May ’22
siri privacy hint
for those of you who have clients who are concerned with privacy, note that you have to go into system prefs in your mac and dig into the "siri suggestions and privacy" and shut off sirl for all the apps listed there, if in fact you don't want siri scanning your data. it is not enough to shut off "enable ask siri" at the top level. i found this out when siri scanned open safari pages and wanted to add things to my calendar. what? apple must have hired some google employees, heh.
0
0
821
May ’22
AVFoundation error -11829 "Cannot Open" (random-ish fail on same url)
trying to use AVPlayer on a remote (https:) mp4 file. randomly we get the above error on the exact same url. works fine on other urls. sometimes works on the failing url. no clue what is going on. "cannot open" is not a descriptive error message. the url plays fine in a browser. the random fail happens on some other URLs also. is there some way we can get more detailed error notes on what is causing the failure? using latest ios15.x update on iphone12 mini. does not seem to fail on iphone X (same ios level). which is also strange.
3
0
1.6k
Sep ’22
macos app non-store distribution question / hardened runtime
i would like to code sign a mac app but leave out the hardened runtime business because some third party libraries (python-related if it is important) are causing troubles with that. e.g. the benefit of code signing is that it keeps people from modifying the app contents. this is of course a benefit even without the hardened runtime. is there a way to do this any more? it seems like it used to be an option. i realize this requires non app store distribution.
4
0
1.1k
Oct ’22
set background color of [UIImage systemImageNamed: ... ]
hello all, any idea if you can set the background color of one of these new SFSymbol images? i tried this paletteColors: method, it seems to take only the first color and use it as the foreground color   UIImageSymbolConfiguration * config =         [UIImageSymbolConfiguration configurationWithPaletteColors:@[[UIColor blueColor], [UIColor redColor]]];     UIImage * confMatImageSel = [UIImage systemImageNamed:@"square.grid.2x2"             withConfiguration:config];
Topic: Design SubTopic: General Tags:
2
0
2.4k
Oct ’22
header path search rules and Xcode settings for ObjC
sometimes i get external modules to integrate using the <path/file.h> form for header file paths (even tho they are not apple framework or system files). sometimes i get them with the "path/file.h" form. sometimes they work. sometimes they don't. there are many header file settings in the xcode build settings. i count at least 11 settings for header search paths in xcode. there may be more. does anyone have a definitive Apple guide to all this complexity with respect to ObjC headers in one place? every time there are header file search problems, it seems to involve a random process of changing various settings until everything builds, but that seems to be the wrong way. it also takes a long time.
0
0
859
Oct ’22