Flutter ml kit not working , possibly after Catalina update - flutter

I'm using Flutters mlkit plugin, which was working about 5 days ago. I'm now getting errors in Xcode. I'm not sure if its from Flutter upgrading. I am in the stable channel and my flutter doctor has no issues. I have run Flutter clean and updated my pods, but still get errors. I have also updated my macs OS to Catalina since then and not sure if this is a contributor.
Some of the issues are:
No visible #interface for 'FIRRemoteModel' declares the selector 'initWithName:allowsModelUpdates:initialConditions:updateConditions:'
No visible #interface for 'FIRModelManager' declares the selector 'registerRemoteModel:'
No visible #interface for 'FIRLocalModel' declares the selector 'initWithName:path:'
No visible #interface for 'FIRModelManager' declares the selector 'registerLocalModel:'
No known class method for selector 'modelInterpreterWithOptions:'

Related

Semantic Issue (Xcode): No visible #interface for 'UIImage' declares the selector 'imageByPreparingForDisplay' Flutter

Hello I need help in fluter project I am Trying to open my existing flutter project when I open it I am. Getting this error shown in image below any flutter expert know this issues please help me

Flutter GMSMapView updateWithCamera crash EXC_BAD_ACCESS KERN_PROTECTION_FAILURE

We're getting sporadic crashes in Google Maps running in our Flutter app on iOS. I have attached a screenshot of the stacktrace. The offending call is to [GMSMapView updateWithCamera].
The setup we have is basically:
BlocProvider<MapScreenBloc> → GoogleMapsWidget → GoogleMaps (the last one being the actual Google Maps widget from the google_maps_flutter plugin)
When creating the GoogleMaps widget we pass it the bloc's onMapCreated function for the constructor parameter so that it stores the GoogleMapController. My guess is that at some point we're calling _mapController.animateCamera() but the controller has been destroyed, but I have no idea how to debug this.
Has anybody else experienced this? Any suggestions on how to debug/fix it?
It turns out that there was a bug in the iOS/Flutter implementation for Google Maps. I've created a PR for them here:
https://github.com/flutter/plugins/pull/3426
It turns out that they were repeatedly adding addObserver:, and when that keypath was finally updated the observer was called so many times that the OS forced the app to shut down because it thought that the app had entered an infinite loop.

Swift and Storyboard, failed to set contentViewController

Some users of RsyncOSX has experienced an issue on Mojave (10.14.6) with the following error:
Failed to set (contentViewController) user defined inspected property on (NSWindow): must provide an environment dictionary
RsyncOSX is a Swift and Storyboard based macOS app, and I am not able to reproduce the error. It is not a compiler issue, and I dont have any idea what causes the issue. The initial viewcontroller is set in Storyboard, there is no such issue on either 10.15 or 11.00 (Big Sur)..

Swift Xcode - FittedSheets Errors

I have just updated Xcode to the newest released version Xcode 12 and had updates my cocoa pods. I am now getting errors with 'FittedSheets' cocoa pod. I am not sure if they have released a new documentation on how to fix these errors but wanted to see if anyone has encountered and solved these errors.
let sheetController = SheetViewController(controller: vc, sizes: [.fixed(290)])
sheetController.blurBottomSafeArea = false
sheetController.adjustForBottomSafeArea = false
// Make corners more round
sheetController.topCornersRadius = 15
Update your pods through terminal, this usually fixes the problem when swift updates.

How to fix error – "No Visible #interface for ARCamera"?

I'm trying to build a project that I downloaded from git and I got some errors in the Xcode beta 9.
I noticed that there are some things that are deprecated like ARWorldTrackingSessionConfiguration so I changed them and they were fixed. But I get an error that I can't fix, this is the part from the code:
matrix_float4x4 projectionMatrix = [frame.camera projectionMatrixWithViewportSize: nativeSize
orientation:[[UIApplication sharedApplication] statusBarOrientation]
zNear:(CGFloat)unityCameraNearZ
zFar:(CGFloat)unityCameraFarZ];
I could not fix this and I don't know what to do.
the error for that is this:
No visible #interface for 'ARCamera' declares the selector 'projectionMatrixWithViewportSize:orientation:zNear:zFar
Hope you can help me with this issue?
Thank you.
First of all you should update your XCode from beta to a stable version.
As for
No visible #interface for 'ARCamera' declares the selector 'projectionMatrixWithViewportSize:orientation:zNear:zFar
Here is official Apple documentation about ARCamera class which shows that there is no method projectionMatrixWithViewportSize:orientation:zNear:zFar and it's most possibly was changed to projectionMatrixForOrientation:viewportSize:zNear:zFar:. Signatures of this two methods requires the same parameters, so it won't be problem to replace the old method with a new one.