Flutter using cloud_firestore giving errors on IOS Simulator - flutter

It's my first time trying to use Firebase cloud_firestore together with Flutter. It works fine with the Android emulator. But I am getting the following errors, when trying to Run on the IOS Sim:
/Users/carsoncarbery/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+3/ios/Classes/CloudFirestorePlugin.m:50:22: error: no visible #interface for 'FIRQuery' declares the selector 'queryWhereField:arrayContains:'
query = [query queryWhereField:fieldName arrayContains:value];
~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/carsoncarbery/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+3/ios/Classes/CloudFirestorePlugin.m:221:29: error: no known class method for selector 'fieldValueForArrayUnion:'
return [FIRFieldValue fieldValueForArrayUnion:[self readValue]];
^~~~~~~~~~~~~~~~~~~~~~~
/Users/carsoncarbery/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+3/ios/Classes/CloudFirestorePlugin.m:224:29: error: no known class method for selector 'fieldValueForArrayRemove:'
return [FIRFieldValue fieldValueForArrayRemove:[self readValue]];
^~~~~~~~~~~~~~~~~~~~~~~~
8 warnings and 3 errors generated.
Could not build the application for the simulator.
Error launching application on iPhone 6s.
I've also tried running the Runner directly from Xcode and get the same three build errors. Unfortunately I haven't been able to find an answer to this, so am posting the question. Any help would be gratefully received.
Thanks

I just experienced the same thing.
Following these guys
https://github.com/flutter/flutter/issues/24395
I did
pod update Firebase/Firestore
And it worked for me.
I'm using latest version of cloud firestore: 0.9.0+1
I can compile from both Xcode and VS Code.
There are a lot of warning messages when running on simulator. some of them look pretty nasty, but it works.

Related

Xcode error: building for iOS Simulator, but linking in object file built for iOS

Never had a lot of problems until the time to buy Macbook Air M1. Just yesterday my app was build without any error in Xcode 12.4. I did not make any special changes and today build failed:
/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please can you help me, how to solve it?
Looks like a missing Arm64 simulator slice in the OpenSSL-Universal CocoaPods distribution.
Make sure that you're using the latest version with pod update and contact the OpenSSL-Universal if there's still an issue.

GMSPlaceField Error when building - Swift 4.2

I have an app that's using Google's Place Autocomplete, so I've been following the example code that's been provided.
I've added the GooglePlace pod to my podfile and since I'm using the same
full-screen control, I'm using their sample code.
No error shows until I try to build the project and when I do build, Im getting this error: "Use of undeclared type 'GMSPlaceField'" on line 29
Update you podfile.. error will be remove

Nativescript RadSideDrawer gives symbol not available at run time error

I am following nativescript RadSideDrawer doc at:
http://docs.telerik.com/devtools/nativescript-ui/Controls/Angular/SideDrawer/getting-started, but once I started the app in ios emulator, I am getting this error:
CONSOLE ERROR file:///app/tns_modules/#angular/core/./bundles/core.umd.js:1052:24: ERROR Error: Uncaught (in promise): ReferenceError: Metadata for "TelerikUI.TKSideDrawerView" found but symbol not available at runtime.
RadSideDrawer#file:///app/tns_modules/nativescript-telerik-ui/sidedrawer/sidedrawer.js:15:38
I tried several times and always got the same error.
What's wrong with this? Is the documentation having errors here?
Thanks
It looks like there may be inconsistency and incompatibility in the used dependencies in your package.json. You can take a look at the sdkAngular repository that showcases many scenarios for using the RadSideDrawer and the other components of the nativescript-telerik-ui-pro plugin here.
Other things that you can try is to clean the project, by deleting the platforms and node_modules folders and running tns run ios after that.

error in compiling .xcdatamodel

i have xcode 4.3 with ios 5.1 and trying to compile and run the project, but it gives error:
Command /Applications/Xcode.app/Contents/Developer/usr/bin/momc failed with exit code 6
i found something in "Data Model Version Compile".. error after upgrading to Lion (Xcode4.1) but it doesn't provide me any suitable solution. It say's to delete unnecessary .xcdatamodel-directories and i did, but i still stuck up there with same issue. Other thing i found that the extension is changed in new xcode its '.xcdatamodeld' instead of '.xcdatamodel'. I copied content content of '.xcdatamodel' file and put in to '.xcdatamodeld' and added to xcode but it gave error at some where else that persistence store might exist. what should i do to run this project..
thanks in advance!!!

How to resolve Phonegap error while Building the app

all
I made a sample application with the help of Phonegap, while building the app it gives me two error .
Error1:
error: 'NSEC_PER_MSEC' undeclared (first use in this function)
Error2:
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
by the way I am using Xcode 3.2.5 (4.2),
can any buddy know this answer then plz tell me..
it is for the xcode 4.3 only?? b/c on this link http://www.phonegap.com/start they run their application through xocde 4.3
Ran into the same problem - seems there is a typo in their production code. You need to change 'NSEC_PER_MSEC' to 'NSEC_PER_SEC' and it should work fine...
Just comment that line.. of code because it has no actual use to test I had the same error and was resolved by commenting :P.. and it runs on ios 4.2 smoothly...