Pod::Spec.new do |s| s.name = 'vflutter_ffi' s.version = '0.1.0' s.summary = 'V language runtime bridged to Flutter via dart:ffi.' s.homepage = 'https://example.com' s.license = { :file => '../LICENSE' } s.author = { 'you' => 'you@example.com' } s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.dependency 'Flutter' s.platform = :ios, '12.0' # V's generated C is machine output. s.compiler_flags = '-w' # The V runtime initialises through __attribute__((constructor)). In a static # archive the linker drops objects nothing references, which would silently # skip that. -all_load keeps them, and vf_init() is the belt-and-braces path. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'OTHER_LDFLAGS' => '-all_load', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } end