Добавление частного модуля в пакет FlutterIOS

Программируем под IOS
Ответить
Anonymous
 Добавление частного модуля в пакет Flutter

Сообщение Anonymous »


I am trying to get a private Cocoapods repo - VPTEngine - set up on the ios side of a Flutter Package I am building - vpt_engine_plugin.

I created the repo and pushed it, following these instructions... pod search VPTEngine shows:

-> VPTEngine (0.0.1) Performance Optimized Workings. pod 'VPTEngine', '~> 0.0.1' Homepage: http://github/VisualPT/VPTEngine Source: https://github.com/VisualPT/VPTEngine.git Versions: 0.0.1 [VPTEngine repo] In the package path vpt_engine_plugin/ios/vpt_engine_plugin.podspec, I add:

s.dependency 'VPTEngine', '0.0.1' s.source = { :git => "https://github.com/VisualPT/VPTEngine.git", :tag => s.version.to_s } However, when I run pod install in the project depending on this plugin, I get...

[!] Unable to find a specification for VPTEngine (= 0.0.1) depended upon by vpt_engine_plugin It works when I add this in the vpt_engine_plugin/example/ios/Podfile...

source 'https://github.com/VisualPT/VPTEngine.git' source 'https://cdn.cocoapods.org/' pod 'VPTEngine', '0.0.1' But I dont see that being done for any of the other packages I currently depend on in my Flutter Application, which tells me that is not the correct way to do it.

My goal is to only have to add:

vpt_engine_plugin: git: url: https://github.com/VisualPT/vpt_engine_plugin.git branch: master to my project pubspec.yaml and have it connect to the VPTEngine pod without additional configuration within the project, as most other dependencies work?


Источник: https://stackoverflow.com/questions/781 ... er-package
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «IOS»