The 'Pods-Runner' target has transitive dependencies that include statically linked binaries - ios

Here's Flutter and Xcode versions:
Flutter 1.22.5 • channel stable
Version 12.3 (12C33)
I have a Flutter application and I get the following error when trying to install the pods:
The error message was about AgoraRtcEngine, previously I was using agora 3.2.1 and the error message complained that I need 3.3.1 and then I upgraded it.
Then I try to install all the dependencies, unfortunately, I got the The 'Pods-Runner' target has transitive dependencies that include statically linked binaries error.
I tried below commands but failed with the attached error:
flutter clean
remove ios/Flutter/Flutter.framework
remove PodFile and PodFile.lock
flutter build ios
Does anyone know what is the cause and how to solve it? Thanks.

You might want to update CocoaPods, what version are you currently using
https://github.com/CocoaPods/CocoaPods/issues/7234#issuecomment-346119807
follow the instructions that are given in terminal output:
sudo gem install cocoapods

you might wanna upgrade your CocoaPods and also your flutter version
upgrading your installing CocoaPods -> "sudo gem install cocoapods"
this will take a while or throw error, incase of error try manually downloading cocoapods from web " https://cocoapods.org/app " this will download a dmg application file.
and for flutter
try "flutter upgrade"

Related

Install Cocoapods : Brew vs Regular installation

Background :
We have an app that embeds Flutter as module in our iOS project. When i install cocoapods using the original option from cocoa like this :
$ sudo gem install cocoapods
and then run pod install in my iOS project, i get the Flutter module thrown out of project file, like mentioned in this issue :
XCode 13.3 Pod Install Removes Path To Flutter Module
Although, i found a workaround : i installed cocoapods using Homebrew and it works perfectly.
My question here is: What is the key difference, or what are the differences between the original website installation of cocoapods and the homebrew one?
NOTE: The same behavior is noticed for apple silicon and intel chips.

react native expo prebuild error `UMCore` depended upon by `EXFont`

I am working on a React Native Project based on a bare workflow, and my project is not working on Xcode.
I use expo modules but when i want to setup my ios project by the command "expo prebuild" i get the following error:
⚠️ Something went wrong running pod install in the ios directory.
Command pod repo update failed.
└─ Cause: Couldn't install: EXFont » UMCore. Ensure the CocoaPod "UMCore" is installed in your project, then run npx pod-install to try again.
It seems Cocoapods did not install this file.. but i have no idea how to do it.
And When i launch the command "pod install" i get :
"[!] Unable to find a specification for UMCore depended upon by EXFont"
I followed this guide from Expo : https://github.com/expo/fyi/blob/main/expo-modules-migration.md
It works fine on my Android Project.
I got the latest version of Expo and CocoaPods and my Xcode version is 13.0.
Any idea ? I did not found a lot of topics on this subject, and none solve this error...
I had similar errors after updating the expo.
In my case it was:
[!] Unable to find a specification for UMCore depended upon by EXSecureStore
[!] Unable to find a specification for UMCore depended upon by EXLinearGradient
Solution
expo install expo-secure-store
expo install expo-linear-gradient
cd ios
pod install --repo-update --clean-install
To solve your issue, I think you need to do:
expo install expo-font
cd ios
pod install # or `pod install --repo-update --clean-install`

Cocoapods could not find comatible versions for pod "Capacitor"

I have update the Xcode to latest version 12.5 and after that I was getting below error for capacitor
switch must be exhaustive xcode
Then to resolve this error I ran the below command and it got resolved
npm install #capacitor/ios#latest
Then I was trying to sync the ios project it has started to give the following error now
Cocoapods could not find compatible versions for pod "Capacitor": In
Podfile: capacitor (from '.../../node_modules/capacitor/ios) Specs
satisfying the 'Capacitor (from '.../../node_modules/#capacitor/ios')'
dependency were found, but they required a higher minimum deployment
target
to solve this error I have tried below commands on root level and ios/App folder level also
pod install --repo-update
But this doesn't seems to resolve the error.
The app is build using ionic framework

Module not found issue with package installed in flutter module (add-to-app)

I have flutter module added to the existing iOS app. Not all but few of the packages installed (via pubspec.yaml file) could not be found by the iOS app when compiled, and I'm getting 'Module not found' error in XCode. Those problematic packages are: razorpay_flutter, google_maps_flutter, webview_flutter, and url_launcher until now. Please have a look at screenshot below:
Same is the case with other 3 packages.
Steps to reproduce issue:
Add razorpay_flutter: ^1.1.3 in the pubspec.yaml file of the
flutter module
Run flutter pub get. The package will install
Run Xcode project to which flutter module is added. Got error!
One more thing I observed after step 2, that there is some warning regarding issue for add to existing app:
Running "flutter pub get" in lib_smazing...
The plugin `razorpay_flutter` is built using an older version of the Android plugin API which assumes that it's running in a full-Flutter environment.
It may have undefined behaviors when Flutter is integrated into an existing app as a module.
The plugin can be updated to the v2 Android Plugin APIs by following https://flutter.dev/go/android-plugin-migration.
I guess there is issue with the packages using platform channel/code when added to an existing app, but not sure whether its package-specific issue or a flutter issue with add-to-app.
After few trials and error I found simply running pod install on iOS project directory fixed the issue.
Rather trivial but realized my packages were not found because I opened and executed the wrong file in XCode - so open Runner.xcworkspace and not Runner.xccodeproj
There are multiple solutions available for any kind of library/module not found.
Solution # 1
flutter clean
flutter run again
rebuild it from ios or vscode tool again.
if still problem
pod update
pod repo update
pod install
Solution# 2
delete build folder
delete pod.lock file
delete .syslinks folder
delete pods folder
change your directory in your terminal by
cd ios
pod install --repo-update OR pod repo update
pod install
flutter clean
flutter pub get
Solution# 3
please open Runner.xcworkspac with xcode because app will get local
lib from pod install lib that installed. , but don't Runner.xcodeproj

Getting error while generating iOS build using ionic that is "The sandbox is not in sync with the Podfile.lock." in MAC Mojave

Recently I am getting this "The sandbox is not in sync with the Podfile.lock" issue.
This source codes were running good in previous mac OS, means after Mojave update it build is not running... I have checked and tried to solve by cocapods related issue.
I have checked many similar questions answers but no one is working for me.
Is there any solution at this situation?
as the error say u need to install the pod or update cocoa pods in your project run:
to install cocoapods
sudo gem install cocoapods
pod repo update
and then go to platform/ios and run :
pod install
and if need it remove the ios platform and add it again to 4.5.5 and install the pod again

Resources