How to import external iOS framework in flutter plugin? How to import external iOS framework in flutter plugin? xcode xcode

How to import external iOS framework in flutter plugin?


@Lorenzo you can pack your plugin and make private CocoaPod or Carthage repo. Here is a good article howtos


1.Place myFramework.framework to iOS plugin folder /ios ex: myPlugin/ios

2.Update iOS plugin file: myPlugin/ios/myPlugin.podspecAdding the below line at the bottom of the file, above 'end'

s.vendored_frameworks = 'myFramework.framework'

In Terminal : cd to myPlugin/example/iosrun command

pod install

or

pod update

Now we can find the iOS plugin code by open iOS project (example/ios/Runner.xcworkspace) in XCode and go to