Using Cocoapods libraries in Flutter iOS platform specific code

Just put your pods at the end of Podfile file which is under the ios folder, like:

pod 'UMCAnalytics'

By default there are some codes in this file but just ignore them and add your pod to below them. After that, run:

pod update 

then you will see the pods installed.


After you run pod init and pod install in the ios/ folder, add

#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"

to ios/Flutter/Debug.xcconfig

and add

#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"

to ios/Flutter/Release.xcconfig