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
Related
I have searched the internet but cannot find others with the same problem. Does any one know how to fix the below error?
After updated XCode to version 14.0, my Flutter app failed to build. I have found out that the problematic package is html_editor_enhanced. If I remove it, then the build is successful, but I need it for allowing WYSIWYG editor. I see that it depends on another package called flutter_inappwebview, so I added it, but to no avail. When I try to build, the error in VSCode is:
Swift Compiler Error (Xcode): Cannot find 'webviewController' in scope /Users/<username>/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/InAppWebView/FlutterWebViewFactory.swift:32:8 2
Swift Compiler Error (Xcode): Cannot find 'webviewController' in scope /Users/<username>/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/InAppWebView/FlutterWebViewFactory.swift:33:15
And in XCode, the error is:
Cannot find 'webviewController' in scope
Below is the screenshot from XCode.
running the following command fixed the problem:
flutter pub cache repair
well this error occurs to me when I try to make my app in production.
The app is created with flutter and I was able to create the apk for android, but when I try to do it for ios it won't let me.
The file that I am opening is Runner.xcworkspace and the problem is the import of a flutter library, it seems to me that I have to make some kind of connection with the pods.
here is the error, I want to tell you that I do not want to run the app, but to make an installer
The error that occurs when building a release (ie. flutter build ipa) and not when running a debug build is:
/[REDACTED]/ios/Runner/GeneratedPluginRegistrant.m:48:9: fatal error: module
'flutter_secure_storage' not found
#import flutter_secure_storage;
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
For me regenerating Podfile in the following way solved the issue:
rm ios/Podfile && flutter build ios
See Closed [ios][release] GeneratedPluginRegistrant.m Module not found
#43986
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.
I want to add a FrameWork to this app I'm working on. It converts latitude and longitude coordinates to UTM coordinates.
I added this to the cartfile:
github "peterringset/UTMConversion" ~> 1.1
But when i run this code in the terminal to clone the framework:
carthage update --platform iOS
I get this error message:
A shell task (/usr/bin/env git clone --bare --quiet https://github.com/peterringset/UTMConversion.git /Users/Fallet/Library/Caches/org.carthage.CarthageKit/dependencies/UTMConversion) failed with exit code 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
I've used other external frameworks like this, and it used to work just fine.. Any idea how I can fix this?
The problem occurs due to a change in username by the publisher of his GitHub account. If you notice the link to the repository is https://github.com/wtw-software/UTMConversion while the Carthage reference is "peterringset/UTMConversion". I was able to solve it by changing the Carthage reference to "wtw-software/UTMConversion". But then you will get this error if you are on Swift 3 or below and Xcode 8 or below.
Task failed with exit code 65.....This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details
So I digged into the logs and found this:
Check dependencies
“Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
** BUILD FAILED **
I googled around this error and it looks like the project is developed with Swift 4 and with Xcode 9.
When trying to build the most simple starter pack for PerfectlySoft Swift Server https://github.com/PerfectlySoft/Perfect, which simply involves the following steps per their website:
git clone https://github.com/PerfectlySoft/PerfectTemplate.git
cd PerfectTemplate
swift build
.build/debug/PerfectTemplate
I get the following error multiple times during the step "Linking COpenSSL" which causes the build to error out "error: exit(1)":
#escaping attribute only applies to function types
I'm building this with Xcode command line tools V:8.0 (8S201h). What do I need to be doing differently to get this to work?
Please, use DEVELOPMENT Snapshot instead a release version of Swift:
Swift Snapshot