flutter - xcode11 - macOS catalina - cocoapod install error - flutter

Calling macOS experts...
Appreciate your help into looking at this issue on pod install on flutter-- details are here
command used
/usr/local/bin/pod install --verbose
CocoaPods : 1.9.1
Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
RubyGems : 3.1.2
Host : Mac OS X 10.15.4 (19E266)
Xcode : 11.4 (11E146)
Git : git version 2.24.1 (Apple Git-126)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.1.0
cocoapods-trunk : 1.4.1
cocoapods-try : 1.1.0
ERROR
RuntimeError - [Xcodeproj] Unknown object version.
/Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.15.0/lib/xcodeproj/project.rb:227:in

2 steps to fix..
gem install cocoapods --pre
gem install mygem --user-install
and voila. your problems for days is solved...

What could help:
gem install cocoapods --pre
and maybe
gem update
If it doesn't help, check if your project format is correct:
Sources: https://github.com/CocoaPods/CocoaPods/issues/7697
https://github.com/CocoaPods/CocoaPods/issues/7458

Related

how to make the newest dart sdk path relate with brew

Because the homebrew did not upload the formula https://github.com/dart-lang/homebrew-dart/issues/111, I have to install the newest version of dart sdk from binary file. Now I download the dart 2.18 sdk and unzip to the brew folder /usr/local/Cellar/dart/2.18, the next step I want to change the default dart link from 2.14 to 2.18, what should I do? when I using this command to install fvm , it still shows info like this:
$ brew install fvm --verbose ‹ruby-2.7.2›
==> Downloading https://github.com/fluttertools/fvm/archive/2.4.1.tar.gz
Already downloaded: /Users/dolphin/Library/Caches/Homebrew/downloads/54b77538c3b1241d7203cf322d4c29f344917cfacab6f1f19203cff6dc2390e4--fvm-2.4.1.tar.gz
==> Verifying checksum for '54b77538c3b1241d7203cf322d4c29f344917cfacab6f1f19203cff6dc2390e4--fvm-2.4.1.tar.gz'
==> Installing fvm from leoafarias/fvm
tar --extract --no-same-owner --file /Users/dolphin/Library/Caches/Homebrew/downloads/54b77538c3b1241d7203cf322d4c29f344917cfacab6f1f19203cff6dc2390e4--fvm-2.4.1.tar.gz --directory /private/tmp/d20220904-90376-f5ukje
cp -pR /private/tmp/d20220904-90376-f5ukje/fvm-2.4.1/. /private/tmp/fvm-20220904-90376-1wohnah/fvm-2.4.1
chmod -Rf +w /private/tmp/d20220904-90376-f5ukje
==> /usr/local/Cellar/dart/2.14.4/libexec/bin/dart pub get
Resolving dependencies...
The current Dart SDK version is 2.14.4.
Because fvm requires SDK version >=2.17.0 <3.0.0, version solving failed.
==> Formula
Tap: leoafarias/fvm
Path: /usr/local/Homebrew/Library/Taps/leoafarias/homebrew-fvm/fvm.rb
==> Configuration
HOMEBREW_VERSION: 3.5.2
ORIGIN: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
HEAD: fba051f98f609634ae4392d0053ddfc627f8cdb3
Last commit: 3 months ago
Core tap ORIGIN: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
Core tap HEAD: 62deae70c8cc3f62ca5e83e3ba9caf2c44a01024
Core tap last commit: 2 months ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.m000Ess6zj/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 12
HOMEBREW_NO_AUTO_UPDATE: set
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: dodeca-core 64-bit kabylake
Clang: 13.1.6 build 1316
Git: 2.33.0 => /usr/local/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.5.1-x86_64
CLT: 13.4.0.0.1.1651278267
Xcode: 13.4.1
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j12
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/12
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/dart/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: leoafarias/fvm/fvm 2.4.1 did not build
Logs:
/Users/dolphin/Library/Logs/Homebrew/fvm/00.options.out
/Users/dolphin/Library/Logs/Homebrew/fvm/01.dart
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/leoafarias/homebrew-fvm/issues
what should I do to switch the dart sdk link from 2.14 to the 2.18 path?

Ionic and Ionic CLI [duplicate]

I wonder how to check the version of ionic. If I do ionic -v I get back 1.4.3
Can that be? Wasn't 1.0.0 just released?
Run from your project folder:
$ ionic info
Cordova CLI: 5.0.0
Ionic Version: 1.0.1
Ionic CLI Version: 1.6.1
Ionic App Lib Version: 0.3.3
OS: Windows 7 SP1
Node Version: v0.12.2
If your CLI is old enough, it will say "info is not a valid task" and you can use this:
$ ionic lib
Local Ionic version: 1.0.1 (C:\stuff\july21app\www\lib\ionic\version.json)
Latest Ionic version: 1.0.1 (released 2015-06-30)
* Local version up to date
That is the version number of the Ionic CLI, which is different from the version number of Ionic's library. Here are a couple easy ways to check the version.
In the browser console, you can run ionic.version and it will print to the console what version it is.
You can also look at the bower.json file in your app, and it will show the version number like you see here. https://github.com/ionic-in-action/chapter5/blob/master/bower.json#L5
In the terminal following command returns the version:
'ionic version' or 'ionic -v'
returned
'3.2.0'
The above is the CLI version. Go to the project folder and use the code below like scw's answer.
$ cd ionic-project
$ ionic info
✔ Gathering environment info - done!
Ionic:
ionic (Ionic CLI) : 4.2.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
#ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib#8.1.1)
Cordova Platforms : android 7.1.4
Cordova Plugins : cordova-plugin-ionic 5.2.7, cordova-plugin-ionic-webview 2.2.5, (and 15 other plugins)
System:
NodeJS : v8.12.0 (/usr/local/bin/node)
npm : 6.4.1
OS : OS X Yosemite
$ ionic -v
CLI 4.12.0
you will be able to know your framework version
$ ionic info
all details
At some point in time the object changed from ionic to an uppercase Ionic.
As of July 2017 you need to put Ionic.version into your console to get the version number.
Ionic projects structure are similar as Angular projects, you can get use
ionic info
command to Print project, system, and environment information.
This command is an easy way to share information about your setup. If applicable, be sure to run ionic info within your project directory to display even more information.
We may use --json after ionic info to print system/environment info in JSON format
ionic info --json
on your terminal run this command on your ionic project folder ionic info and you will get the following :
cli packages: (/usr/local/lib/node_modules)
#ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
#ionic/app-scripts : 3.1.8
Cordova Platforms : android 7.0.0 ios 4.5.5
Ionic Framework : ionic-angular 3.9.2
System:
Node : v8.9.3
npm : 6.1.0
OS : macOS
Xcode : Xcode 10.1 Build version 10B61
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
You can find the library version accessing the file package.json. Under dependencies, check the property ionic-angular.
You can also check the Ionic CLI version typing ionic info in the terminal from your project's folder.
Running ionic info on your project directory give all the info you need the npm version, cli, app script and some more
for slower machines use the browser console.
Ionic.version
It doesn't do much analysis like the terminal's
ionic info
which gathers other useful information about your ionic project.
The method version on ionic object returns the current version in string format.
$ ionic info
Ionic:
Ionic CLI : 5.4.16
Utility:
cordova-res : not installed
native-run : 0.3.0
System:
NodeJS : v12.16.1
npm : 6.13.4
OS : Linux 5.3
────────────────────────────────────────────────────────────
Ionic CLI update available: 5.4.16 → 6.2.2
The package name has changed from ionic to #ionic/cli!
To update, run: npm uninstall -g ionic
Then run: npm i -g #ionic/cli
────────────────────────────────────────────────────────────
ionic info
This will give you the ionic version,node, npm and os.
If you need only ionic version use ionic -v.
If your project's development ionic version and your global versions are different then check them by using the below commands.
To check the globally installed ionic version ionic -g and to check the project's ionic version use ionic -g.
To check the project's ionic version use ionic -v in your project path or else ionic info to get the details of ionic and its dependencies.
ionic -v
Ionic CLI update available: 5.2.4 → 5.2.5
Run npm i -g ionic to update
You can use command ionic info to get details of ionic CLI , angular CLI , Node JS version and NPM version
Run command ionic info
in project root folder and you will get complete information of versions
Ionic:
Ionic CLI : 5.4.16 (/usr/local/lib/node_modules/ionic)
Ionic Framework : #ionic/angular 5.3.2
#angular-devkit/build-angular : 0.1000.8
#angular-devkit/schematics : 10.0.8
#angular/cli : 10.0.8
#ionic/angular-toolkit : 2.3.3
Cordova:
Cordova CLI : 10.0.0
Cordova Platforms : none
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 4 other plugins)
Utility:
cordova-res : not installed
native-run (update available: 1.4.1) : 1.3.0
System:
Android SDK Tools : 26.1.1 (/home/rasharma/Android/Sdk/)
NodeJS : v12.14.1 (/home/rasharma/.nvm/versions/node/v12.14.1/bin/node)
npm : 6.13.4
OS : Linux 5.11

pip install tesserocr hangs during setup.py

Ubuntu installation gets stuck very early on. Current list of packages and confirmation that Tesseract and Leptonica seems to be installed correctly. Any clues appreciated?
(venv) ubuntu#ip$ pip install tesserocr
Collecting tesserocr
Using cached
https://files.pythonhosted.org/packages/f8/6d/4e81e041f33a4419e59edcb1dbdf3c
56e9393f60f5ef531381bd67a1339b/tesserocr-2.3.1.tar.gz
Installing collected packages: tesserocr
Running setup.py install for tesserocr ... \
Package Version
--------------- -------
click 6.7
Cython 0.28.5
dominate 2.3.1
Flask 1.0.2
Flask-Bootstrap 3.3.7.1
Flask-Login 0.4.1
Flask-WTF 0.14.2
ghostscript 0.6
gunicorn 19.9.0
itsdangerous 0.24
Jinja2 2.10
MarkupSafe 1.0
Pillow 5.2.0
pip 18.0
pkg-resources 0.0.0
setuptools 20.7.0
visitor 0.1.3
Werkzeug 0.14.1
WTForms 2.2.1
(venv) ubuntu#ip-172-26-9-100:~/apa$ tesseract -v
tesseract 3.04.01
leptonica-1.73
libgif 5.1.2 : libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.
2.8 : libwebp 0.4.4 : libopenjp2 2.1.0
Problem resolved after rebooting the machine. Not sure why this worked, other than I'd installed a lot of packages to get to this stage, and maybe something required a restart to complete the installation? If anyone can explain the problem, I'd be interested to understand why that might be?

unable to add ionic-platform-web-client

$ ionic add ionic-platform-web-client
Failed to find the bower component "ionic-platform-web-client".
Are you sure it exists? (CLI v1.7.12)
Your system information:
Cordova CLI: 5.4.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.2.1
Ionic CLI Version: 1.7.12
Ionic App Lib Version: 0.6.5
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS
Node Version: v4.2.2
I tried the following command, didnt help as suggested in other stackoverflow Q&A.
bower install --allow-root --save-dev ionic-platform-web-client
Same issue when i tried in mac as well. Attached both the error messages.
ionic add ios
Failed to find the bower component "ios".
Are you sure it exists? (CLI v1.7.12)
Your system information:
Cordova CLI: 5.4.1
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.12
Ionic App Lib Version: 0.6.5
ios-deploy version: 1.8.3
ios-sim version: 5.0.4
OS: Mac OS X El Capitan
Node Version: v4.2.4
Xcode version: Xcode 6.4 Build version 6E35b
This below command may be solve your problem :-
bower install --save-dev ionic-platform-web-client

Failed to find the bower component "ionic-platform-web-client"

I'm trying to install ionic-platform-web-client but keep getting this error..
Users-iMac:Beluga ryan$ ionic add ionic-platform-web-client
Failed to find the bower component "ionic-platform-web-client".
Are you sure it exists? (CLI v1.7.10)
Your system information:
Cordova CLI: 5.4.0
Ionic Version: 1.1.1
Ionic CLI Version: 1.7.10
Ionic App Lib Version: 0.6.5
ios-deploy version: 1.8.2
ios-sim version: 5.0.3
OS: Mac OS X El Capitan
Node Version: v5.0.0
Xcode version: Xcode 7.1.1 Build version 7B1005
This did it for me: bower install --save-dev ionic-platform-web-client
The resolved issue on github is here.
Try installing bower with this command line
npm install -g bower
Try installing git for windows, make sure to enable writing the git to your PATH during the installation:
https://git-scm.com/download/win