21

First, I would like to say that I am not a iOS developer.

I am trying to develop a VLC plugin for Flutter. For so, I need to add its pod (pod "MobileVlcKit") to a podfile, right? But when I create the project (via the command flutter create -t plugin flutter_vlc_kit), the iOS folder inside the project has no podfile.

Also, it does not have any of the .xworkspace or .xcodeproj files that I can open on XCODE for code editing:

enter image description here

How can I add the vlc kit dependency pod (pod "MobileVlcKit") to this plugin?

0

1 Answer 1

36

Add your pod dependency modifying your ios/flutter_vlc_kit.podspec

s.dependency 'MobileVLCKit'

or with the wanted version

s.dependency 'MobileVLCKit', '3.2'

References:

Then go to your example/ios folder and run pod install.

Then open your Runner.xcworkspace and build your plugin from there.

Note: probably you could encounter this issue - tl;dr (not the best choice) change the build system of XCode to the legacy one.

11
  • So, I did what you jsut said, but I still can't see the MobileVLCKit inside my fluter_vlc_kit/ios folder. Just inside the flutter_vlc_kit/example/ios. There is something I am missing here? Jan 24, 2019 at 18:30
  • @DanielOliveira Nope it’s right. You have to code your plugin from the example project. A fast way to open your plugin file from there is cmd+shift+o and then type your filename. Jan 24, 2019 at 18:32
  • Wait, I don't code my plugin into the "SwiftFlutterVlcKitPlugin.swift"? (this file is inside the flutter_vlc_it/ios) Jan 24, 2019 at 18:36
  • @DanielOliveira It’s also in the example project from which you ara able to code, build and test it. Jan 24, 2019 at 18:37
  • 1
    Let us continue this discussion in chat. Jan 24, 2019 at 19:02

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.