I am trying to run my flutter application in ios, and while pod installs I am getting an error ([!] No podspec found for flutter_user_agentx in .symlinks/plugins/flutter_user_agentx/ios). I am using a dependency named "flutter_user_agentx", On android is working fine, a Few days back it was working fine for ios also but today I am getting this error.

I want to run my flutter application on ios.

3

There are 3 best solutions below

3
On

This usually happens when you add a new package and there are no pods for ios for that package. However, you will get a lot of pods problem, but mostly following these steps will solve them:

  • run flutter clean
  • Delete the following files in the ios folder: Podfile and Podfile.lock and the folder Pods
  • run flutter pub get
  • go to the 'ios' folder using cd ios
  • run pod install --repo-update (to install the pods again, and if u face any problem try without --repo-update)
  • Run your app, from command line using 'flutter run' which will take a little bit longer

UPDATE You don't need to delete the podfile but delete Podfile.lock which is enough

0
On

It seems that package is broken in iOS.It's a fork of the original repo. Not the official one.

Use the below package instead.

https://pub.dev/packages/fk_user_agent

GitHub issue link

0
On

I got Same problem

flutter_user_agentx is broken on iOS. I use https://pub.dev/packages/fk_user_agen.

Resource:https://github.com/j0j00/flutter_user_agent/issues/22

I Little late But I think it will be usedfull.