Например, я хочу загрузить:
- для физических устройств.
Код: Выделить всё
Frameworks/Demo.framework
- для симулятора iOS.
Код: Выделить всё
Frameworks-Simulator/Demo.framework
Код: Выделить всё
Pod::Spec.new do |s|
s.name = 'my_plugin'
s.version = '0.0.1'
s.summary = 'A new Flutter plugin project.'
s.description = 'A new Flutter plugin project.'
s.homepage = 'http://example.com'
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => '[email protected]' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.platform = :ios, '12.0'
# Exclude i386 for simulator builds
s.pod_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386'
}
s.swift_version = '5.0'
# Include vendored frameworks
s.vendored_frameworks = [
'Frameworks/Demo.framework',
'Frameworks-Simulator/Demo.framework'
]
end
Есть ли способ условно включить ту или иную платформу в зависимости от того, является ли цель физическое устройство или симулятор?
Подробнее здесь: https://stackoverflow.com/questions/793 ... lator-in-a