Remove or uninstall library previously added : cocoapods
Remove lib from Podfile, then pod install again.
Remove lib from Podfile, then pod install again.
I had a similar “library not found” issue. However it was because I accidentally was using the .xcodeproj file instead of the .xcworkspace file.
After trying all the solutions, I was missing is to enable this option in: Targets -> Build Phases -> Embedded pods frameworks In newer versions it may be listed as: Targets -> Build Phases -> Bundle React Native code and images Run script only when installing
This definitely works most of the time: Go to your target Build Settings -> Other linker flags -> double click . Add $(inherited) to a new line. If you have problem with “…target overrides the GCC_PREPROCESSOR_DEFINITIONS build setting defined in…” then you must add $(inherited) to your target Build Settings -> Preprocessor Macros
Update Make sure your Podfile includes link_with on targets missing a config file. Cocoapods only sets the first target by default otherwise. e.g. platform :osx, ‘10.7’ pod ‘JSONKit’, ‘~> 1.4’ link_with ‘Pomo’, ‘Pomo Dev’, ‘Pomo Tests’ —— End Update Note: Please do note that you have to look into Project->Info->Configurations for steps below. I had … Read more
2022 May Update If you can use Homebrew to manage cocoapods. # Uninstall the local cocoapods gem sudo gem uninstall cocoapods # Reinstall cocoapods via Homebrew brew install cocoapods 2021 Solution # STEP 1: Install ffi sudo arch -x86_64 gem install ffi # STEP 2: Re-install dependencies arch -x86_64 pod install Additional Information #1 For … Read more
A way easier solution: Remove ios/Flutter/Flutter.podspec: rm ios/Flutter/Flutter.podspec flutter clean Run your app again. Taken from here
POD Install Open terminal and type: sudo gem install cocoapods The Gem will get installed in Ruby inside the System library. Or try on Mac OS X v10.11 (El Capitan), type: sudo gem install -n /usr/local/bin cocoapods If there is an error “activesupport requires Ruby version >= 2.xx”, then install latest activesupport first by typing in the … Read more
If your Architectures and Valid Architectures are all right, you may check whether you have added $(inherited) , which will add linker flags generated in pods, to Other Linker Flags as below:
Removing CocoaPods from a project is possible, but not currently automated by the CLI. First thing, if the only issue you have is not being able to use an xcworkspace you can use CocoaPods with just xcodeprojs by using the –no-integrate flag which will produce the Pods.xcodeproj but not a workspace. Then you can add … Read more