Skip to content

Commit

Permalink
Move Protobuf back to subspec and set requires_arc to false.
Browse files Browse the repository at this point in the history
Setting requires_arc to false at the top level caused crashes when using the plugin.
  • Loading branch information
pauldemarco committed Apr 2, 2020
1 parent 64893c4 commit ed17284
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ios/flutter_blue.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ Bluetooth Low Energy plugin for Flutter.
s.dependency 'Flutter'
s.platform = :ios, '8.0'
s.framework = 'CoreBluetooth'
s.dependency 'Protobuf', '~> 3.11.4'
s.requires_arc = false

s.subspec "Protos" do |ss|
ss.source_files = "gen/*.pbobjc.{h,m}", "gen/**/*.pbobjc.{h,m}"
ss.header_mappings_dir = "gen"
ss.requires_arc = false
ss.dependency "Protobuf", '~> 3.11.4'
end

# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64', 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1', }
Expand Down

0 comments on commit ed17284

Please sign in to comment.