Post

Replies

Boosts

Views

Activity

"Unexpected Failure" compiling with Xcode and code generated with CocoaPods
I've been using CocoaPods.org very successfully for a number of years. My applications are almost all Objective-C but sometimes I include Swift. Just recently, with the upgrade to macOS Sonoma 14.2.1, almost all my Xcode 15.1 builds are getting an error: Unexpected Failure I tracked this down to a file, when Swift is included, that is generated from CocaPods with a name like: ./Pods/Target Support Files/Pods-APPLICATION/Pods-APPLICATION-resources.sh This is the shell script segment that is generating the error: function on_error { echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" } trap 'on_error $LINENO' ERR The Unexpected failure is occurring in this portion of the script - but in this case because realpath -mq is a wrong way of using realpath - as the -mq is an invalid option. This might be a macOS change. But it really just masks the reason that on_error was called. All of my applications that were working are getting this same error, and this is without making any changes. Has anyone else encountered this recent problem? I'm stuck.
0
1
688
Dec ’23
No UI for deleting table row in tvOS
My UITableView code works great on iOS, allowing a user to select edit and then swipe to let the user delete a row. Unfortunately, for tvOS, I cannot find a user interface equivelent for deleting a UITableView row. There is no edit button (on the navigator menu bar), and no swipe feature. Is there something I'm missing? I saw a post saying to hold press the volume down button but that doesn't work. I'm using Xcode 14.0, and the latest tvOS.
0
0
611
Sep ’22
VNRequest internalPerformInContext has not been implemented
I've been using the Vision object tracking code from the Apple example and others. This has been using swift and the programs work nicely. I just ported the image recognizer to ObjectiveC with a few lines of code. But I get an error from the VNRequest handler: error=Error Domain=com.apple.vis Code=8 "-[VNRequest internalPerformInContext:error:] has not been implemented" My code is very simple taking a UIImage and looking for objects. As I'm not processing video (yet) there wasn't a processor to initialize, but maybe there is something that needs to be initialized? Any ideas? (void) processImageWithVision:(UIImage*) image { CIImage* ciImage = image.CIImage; if (!ciImage) ciImage = [[CIImage alloc] initWithCGImage:image.CGImage]; NSDictionaryVNImageOption,id* dict = [[NSDictionary alloc] initWithObjectsAndKeys: @(0.8), @"confidenceThreshold", nil]; //Handler to process the image VNImageRequestHandler *imageRequestHandler = [[VNImageRequestHandler new] initWithCIImage:ciImage orientation:kCGImagePropertyOrientationUp options:dict]; // the handler that gets called VNRequest *vnRequest = [[VNRequest new]initWithCompletionHandler:^(VNRequest * _Nonnull request, NSError * _Nullable error) {   NSLog(@"vnRequest called %@, %@, error=%@",request, request.results, error); }];  vnRequest.preferBackgroundProcessing = YES; //doesn't matter //vnRequest to pass to the perform requests. NSArrayVNRequest** vnRequests = [NSArray arrayWithObject:vnRequest]; //Schedules Vision requests to be performed. [imageRequestHandler performRequests:vnRequests error:nil]; }
1
0
999
Apr ’21