ios - 如何将 ios 源依赖添加到 Flutter 插件?
问题描述
我创建了一个 Flutter 插件,这是我的 podspec 文件:
Pod::Spec.new do |s|
s.name = 'sdksso'
s.version = '0.0.1'
s.summary = 'A new flutter plugin project.'
s.description = <<-DESC
A new flutter plugin project.
DESC
s.homepage = 'http://example.com'
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => 'email@example.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.platform = :ios, '8.0'
# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
s.swift_version = '5.0'
end
然后我需要添加 ios 源,在 Flutter 项目中我会source 'https://<path>/podspecs.git'
在 Podfile 中编写。如何将 ios 源添加到 Flutter 插件?
解决方案
推荐阅读
- django - 有什么方法可以避免在 django 中引用页面时创建新对象?
- java - 尝试某些请求时出现 Spring 安全性和 Angular 401 错误
- html - 如何在移动设备上缩小标题?
- java - 如何修复“不正确的结果大小:预期 1,实际 0”我正在查询单个对象?
- python - pandas.groupby 中的迭代
- arduino - NodeMCU 在 MQTT 中重置
- security - Rollbar 日志记录 API 密钥
- python - 我们不能将一个以 0(零)开头的值赋给一个变量吗?例如:a=0123。这会引发错误“无效令牌”
- sql-server - 如何在 SQL Server 数据库中存储地理文件,例如 shapefile (.shp)?
- c - 为什么我会中止(核心转储)