Flutter Cocoapods - flutter

I am having this error:
Launching lib/main.dart on iPhone 14 in debug mode...
Warning: CocoaPods not installed. Skipping pod install.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
CocoaPods not installed or not in valid state.
Error launching application on iPhone 14.
I tried a bunch of solutions but none of them worked. What can I try next?

Related

SDK android emulator for flutter

I am installing andoid sdk in Intelli idea the error occuring in installation is :
"java.io.IOException: Connection closed at byte 45350576. Expected 326723360 bytes.
Warning: An error occurred while preparing SDK package Android Emulator: Connection closed at byte 45350576. Expected 326723360 bytes.."
I have downloaded and installed Intelli Idea have also installed flutter and dart PLUGINS now for i need emulator for it which i think is inside android sdk but its giving this error while installing it, I am basically learning dart flutter app development . please guide here how to use emulator using android sdk or anyway other than android sdk,

ERROR with flutter: CocoaPods not installed even if it is installed

I am trying to run my code on AndroidStudio by using Flutter but when I run it shows an error:
Warning: CocoaPods not installed. Skipping pod install. CocoaPods is
used to retrieve the iOS and macOS platform side's plugin code that
responds to your plugin usage on the Dart side. Without CocoaPods,
plugins will not work on iOS or macOS. For more info, see
https://flutter.dev/platform-plugins To install see
https://guides.cocoapods.org/using/getting-started.html#installation
for instructions.
CocoaPods not installed or not in valid state. Error launching
application on iPhone 11.
flutter doctor shows that all is fine, I looked around a lot and tried lots of things like uninstall it and install it again, and tried adding:
dev_dependencies:
build_runner: ^1.10.0
dependency_overrides:
analyzer: 0.39.14
and tried
flutter channel stable
flutter upgrade
and tried
flutter channel master
flutter upgrade
But nothing worked, note that when I write "which pod" it shows the path, that means it exists right? then what is the problem? please help :(
have you tried to run pod install from the ios folder?
The only thing that worked with me is using android emulator, ios simulator still show the same error
I had the same issue and I found a solution, but with still an answered question. See my question (and one partial solution) here
The partial solution is: in Android Studio, click on the tab "Terminal" at the bottom of the IDE and in this pane, type flutter run. It does the same as the button Run, and Android Studio stopped complaining about CocaPods.
To stop the app, type q in the same terminal.

Unity doesn't generate xcworkspace, Podfile using iOS Resolver - macOS Catalina

I'm trying to build an iOS project in Unity 2019.3.14f1 but when I tried to install CocoaPods using /Assets/External Dependency Manager/Install Cocoapods it returns a warning:
gem install cocoa pods --user-install
WARNING: You don't have /Users/danieoquelis/.gem/ruby/2.6.0/bin in your PATH,
gem executables will not run
.....
Done installing documentation for cocoapods after 2 seconds
1 gem installed
I went to my terminal which uses '.zsh' and I added the PATH in the file '.zshrc' and '.zshenv' then I did 'source' to the files and restarted Unity to try to build the project again but it only generates xcodeproject without xcworkspace or Podfile.
I tried to uninstall cocoapods from the terminal and I installed it again and from the terminal the warning doesn't appear and when I do 'echo $PATH' it returns:
/Users/danieloquelis/.gem/ruby/2.6.0/bin:/Users/danieloquelis/Library/Android/flutter/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
I don't know if Unity doesn't read the shell based on 'zsh' and it only works with 'bash' I update iOS Resolver, Cocoa Pods, Unity, I don't know what else I can do.
CocoaPods 1.9.3
Ruby 2.6.0
iOS Resolver 1.2.155
Unity 2019.3.14f1
macOS Catalina 10.15
Thanks for your help!!!
I fixed it, I forgot to add ARKit Unity Plugin.

Ionic add platform ios showing phonegap-plugin-push error on mac OS Sierra

Hi when i tried to platform add ios showing the following error,
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: com.leniko.fuel-buddy
Name: Fuel Buddy
iOS project created with cordova-ios#4.4.0
Installing "cordova-plugin-app-version" for ios
Installing "cordova-plugin-apprate" for ios
Plugin dependency "cordova-plugin-dialogs#1.3.0" already fetched, using that version.
Installing "cordova-plugin-dialogs" for ios
Plugin dependency "cordova-plugin-globalization#1.0.4" already fetched, using that version.
Installing "cordova-plugin-globalization" for ios
Cross-platform AppRate plugin for Cordova / PhoneGap
Installing "cordova-plugin-camera" for ios
Plugin dependency "cordova-plugin-compat#1.1.0" already fetched, using that version.
Installing "cordova-plugin-compat" for ios
Plugin "cordova-plugin-compat" already installed on ios. Making it top-level.
Installing "cordova-plugin-console" for ios
Installing "cordova-plugin-device" for ios
Plugin "cordova-plugin-dialogs" already installed on ios. Making it top-level.
Installing "cordova-plugin-file" for ios
Plugin dependency "cordova-plugin-compat#1.1.0" already fetched, using that version.
Dependent plugin "cordova-plugin-compat" already installed on ios.
The Android Persistent storage location now defaults to "Internal". Please check this plugins README to see if you application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
Installing "cordova-plugin-file-transfer" for ios
Plugin dependency "cordova-plugin-file#4.3.0" already fetched, using that version.
Dependent plugin "cordova-plugin-file" already installed on ios.
Plugin "cordova-plugin-globalization" already installed on ios. Making it top-level.
Installing "cordova-plugin-splashscreen" for ios
Installing "cordova-plugin-statusbar" for ios
Installing "cordova-plugin-whitelist" for ios
Installing "cordova-plugin-x-socialsharing" for ios
Installing "cordova-plugin-x-toast" for ios
Installing "ionic-plugin-keyboard" for ios
Installing "phonegap-plugin-push" for ios
Failed to install 'phonegap-plugin-push': undefined
Error: /Library/Ruby/Gems/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
Usage:
$ pod COMMAND
CocoaPods, the Cocoa library package manager.
Commands:
+ cache Manipulate the CocoaPods cache
+ env Display pod environment
+ init Generate a Podfile for the current directory
+ install Install project dependencies according to versions from a
Podfile.lock
+ ipc Inter-process communication
+ lib Develop pods
+ list List pods
+ outdated Show outdated project dependencies
+ repo Manage spec-repositories
+ setup Setup the CocoaPods environment
+ spec Manage pod specs
+ update Update outdated project dependencies and create new Podfile.lock
Options:
--silent Show nothing
--version Show the version of the tool
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/command.rb:47:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:23:in `load'
from /usr/local/bin/pod:23:in `<main>'
I had installed cocoapods and run the above command with sudo and without sudo.
I had solved the problem by changing the plugin phonegap-push with Firebase plugin and now its working fine in android as well as IOS. Please go with the cordova-firebase plugin version 1.22.

ionic phonegap-facebook-plugin iOS build - CompileC build error

The plugin had been working beautifully up until last night. Getting the following errors on iOS only after updating to latest Ionic/Cordova (android is fine).
Updated to:
xcode version 7.2.1
ionic version 1.7.14
I have also tested the same app with another mac running previous version of ionic 1.7.13 and cordova 6, and all is good.
After testing with the older version, i built a new mac (fresh wives laptop) with the latest ionic setup and again same error.
Here's the plugin in question https://ionicthemes.com/tutorials/about/native-facebook-login-with-ionic-framework
The following build commands failed:
CompileC build/testFresh.build/Debug-iphonesimulator/testFresh.build/Objects-normal/i386/FacebookConnectPlugin.o testFresh/Plugins/phonegap-facebook-plugin/FacebookConnectPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
ERROR running one or more of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Applications/AMPPS/www/ionic/testFresh/platforms/ios/cordova/build-debug.xcconfig,-project,testFresh.xcodeproj,ARCHS=i386,-target,testFresh,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Applications/AMPPS/www/ionic/testFresh/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Applications/AMPPS/www/ionic/testFresh/platforms/ios/build/sharedpch
You may not have the required environment or OS to run this project
After banging my head against a wall for a few days, I found that others were having the same issue though it was labeled as a "cordova 6" problem.
Original github issue:
https://github.com/Wizcorp/phonegap-facebook-plugin/issues/1227
Eventually whilst scrolling through known bugs under github for "phonegap-facebook-plugin" i noticed that similar errors had occurred on a previous release, then super Jeduan re-wrote the plugin and released it under the following:
Plugin fix:
https://github.com/jeduan/cordova-plugin-facebook4
The above appears to be working find under cordova 6, xcode version 7.2.1 and ionic version 1.7.14