I added an external framework via cocoapods into my iOS application. How can i remove that library from the project?
The unwanted side effects of simple folder delete or installing over existing installation have been removed by a script written by Kyle Fuller - deintegrate and here is the proper workflow:
Install clean:
sudo gem install cocoapods-clean
Run deintegrate in the folder of the project:
pod deintegrate
Clean(this tool is no longer available):pod clean
Modify your podfile (delete the lines with the pods you don't want to use anymore) and run:
pod install
Done.
cocoapods-clean
deletes the Podfile
and .xcworkspace
–
Verticillate pod deintegrate
is official: guides.cocoapods.org/terminal/commands.html#pod_deintegrate No need for sudo gem install cocoapods-deintegrate
. –
Postulate pod clean
I get: $ pod clean [!] Unknown command: clean
–
Ashbaugh pod clean
no longer exists, should I still run sudo gem install cocoapods-clean
? –
Tebet Podfile
! 😲 There's only the line: flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
!... In the Podfile.lock
file, there's a list of pod names, but I'm not supposed to edit that one, am I?..... 🙄 –
Tebet pod install
and it worked. –
Tirzah Remove lib from Podfile, then pod install
again.
pod update
. That worked for me. –
Deflection The unwanted side effects of simple folder delete or installing over existing installation have been removed by a script written by Kyle Fuller - deintegrate and here is the proper workflow:
Install clean:
sudo gem install cocoapods-clean
Run deintegrate in the folder of the project:
pod deintegrate
Clean(this tool is no longer available):pod clean
Modify your podfile (delete the lines with the pods you don't want to use anymore) and run:
pod install
Done.
pod install
, I opened the Xcode xcworkspace file, performed a full clean on the build folder (alt+shift+command+K), and the warnings/linker errors were gone. Pods were now successfully uninstalled from the project. –
Vegetable cocoapods-clean
deletes the Podfile
and .xcworkspace
–
Verticillate pod deintegrate
is official: guides.cocoapods.org/terminal/commands.html#pod_deintegrate No need for sudo gem install cocoapods-deintegrate
. –
Postulate pod clean
I get: $ pod clean [!] Unknown command: clean
–
Ashbaugh pod clean
no longer exists, should I still run sudo gem install cocoapods-clean
? –
Tebet Podfile
! 😲 There's only the line: flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
!... In the Podfile.lock
file, there's a list of pod names, but I'm not supposed to edit that one, am I?..... 🙄 –
Tebet pod install
and it worked. –
Tirzah Remove the library from your Podfile
Run
pod install
on the terminal
flutter clean
- flutter pub get
instead of pod install
? Just wondering... –
Tebet Podfile
! 😲 There's only the line: flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
!... In the Podfile.lock
file, there's a list of pod names, but I'm not supposed to edit that one, am I?..... 🙄 –
Tebet None of these worked for me. I have pod version 1.5.3 and the correct method was to remove the pods that were not longer needed from the Podfile and then run:
pod update
This updates your Podfile.lock file from your Podfile, removes libraries that have been removed and updates all of your libraries.
pod install
–
Laudatory pod install
is the correct way. –
Nerynesbit Podfile
! 😲 There's only the line: flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
!... In the Podfile.lock
file, there's a list of pod names, but I'm not supposed to edit that one, am I?..... 🙄 –
Tebet To completely remove Pod or Cocoapods Framework from your Project repository !
sudo gem install cocoapods-clean
pod deintegrate
pod clean
Then Try to remove the File
Pods
Podfile
Podfile.lock
yourProjectName.xcworkspace
First, determine which versions of Cocoapods are installed :
gem list --local | grep cocoapods
You get output as this:
cocoapods (1.11.2)
cocoapods-clean (0.0.1)
cocoapods-core (1.11.2, 1.10.2, 1.10.1)
cocoapods-deintegrate (1.0.4)
To completely remove, issue the following commands:
gem uninstall cocoapods
gem uninstall cocoapods-clean
gem uninstall cocoapods-core
gem uninstall cocoapods-deintegrate
Running again to confirm that Cocoapods has been removed:
gem list --local | grep cocoapods
You may have residual artefacts in a hidden folder in your directory. Remove these with:
rm -rf ~/.cocoapods
Remove the Pod without hurting other Pods or their versions.
remove the pod that is no longer needed from the PodFile and run
pod install --no-repo-update
- Remove pod name(which to remove) from Podfile and then
- Open Terminal, set project folder path
- Run pod install --no-integrate
[!] Unknown option: '--no-integrate'
–
Thorton Podfile
! 😲 There's only the line: flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
!... In the Podfile.lock
file, there's a list of pod names, but I'm not supposed to edit that one, am I?..... 🙄 –
Tebet Remove pod name from Podfile
then
Open Terminal, set project folder path and
Run pod update
command.
NOTE: pod update
will update all the libraries to the latest version and will also remove those libraries whose name have been removed from podfile.
Podfile
! 😲 There's only the line: flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
!... In the Podfile.lock
file, there's a list of pod names, but I'm not supposed to edit that one, am I?..... 🙄 –
Tebet Got this trying to install google_sign_in with flutter. Just had to remove the AppAuth library stuff from cocoapods, then 'pod install' in ios directory. Then I had to remove the flutter plugin, then I had to reinstall flutter plugin, then redo pod install. Then it worked. So I guess weird caching.
© 2022 - 2024 — McMap. All rights reserved.
pod install
, I opened the Xcode xcworkspace file, performed a full clean on the build folder (alt+shift+command+K), and the warnings/linker errors were gone. Pods were now successfully uninstalled from the project. – Vegetable