Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang: error: linker command failed with exit code 1 (Cocoapods issue) #42

Closed
sjmcdowall opened this issue Dec 14, 2018 · 68 comments
Closed

Comments

@sjmcdowall
Copy link

Description:

Every once in a while -- after adding a new package (sometimes) or clearing some cache, our application refuses to build on iOS simulators/debug .. and sometimes takes a few tries on production release builds .. with a build error about nothing finding trying to link

OneSignalNotificationServiceExtension

What appears to be happening is that this Ld is premature and all the other Pods needed and listed haven't been compiled yet .. so the ld fails because Flutter puts them all together.. here is the snippest from the fails:

               /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Plat
forms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/package_info -filelist /Users/sjm/Library/Developer/Xcode/De
rivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/package_info.build/Objects-normal/x86_64/package_info.LinkFileList -o /Users/sjm/work/mm
/mms4/mobile/build/ios/Debug-iphonesimulator/package_info/libpackage_info.a

           === BUILD TARGET OneSignalNotificationServiceExtension OF PROJECT Runner WITH CONFIGURATION Debug ===

           Check dependencies

           Create product structure
           /bin/mkdir -p /Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex

           ProcessInfoPlistFile /Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/Info.plist OneSignalNotificationServiceExtension/Info.pl
ist
               cd /Users/sjm/work/mm/mms4/mobile/ios
               export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/sjm/Developme
nt/flutter/bin:/Users/sjm/.fastlane/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:."
               builtin-infoPlistUtility /Users/sjm/work/mm/mms4/mobile/ios/OneSignalNotificationServiceExtension/Info.plist -expandbuildsettings -format binary -platform iphonesimulator -o /Users
/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/Info.plist

           PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-
iphonesimulator/OneSignalNotificationServiceExtension.build/Script-7206A2BF19E0D481309F4ACF.sh
               cd /Users/sjm/work/mm/mms4/mobile/ios
               /bin/sh -c /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationSe
rviceExtension.build/Script-7206A2BF19E0D481309F4ACF.sh

           Ld /Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension normal x86_64
               cd /Users/sjm/work/mm/mms4/mobile/ios
               export IPHONEOS_DEPLOYMENT_TARGET=10.0
               export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/sjm/Developme
nt/flutter/bin:/Users/sjm/.fastlane/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:."
               /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimul
ator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/device_info
-L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/flutter_secure_storage -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/local_auth -L/Users/sjm/work/mm/mms4/mobil
e/build/ios/Debug-iphonesimulator/location -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/onesignal -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/open_file -L
/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/package_info -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/path_provider -L/Users/sjm/work/mm/mms4/mobile/build/i
os/Debug-iphonesimulator/shared_preferences -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/uni_links -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/url_launche
r -F/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator -F/Users/sjm/work/mm/mms4/mobile/ios/Pods/../.symlinks/flutter/ios -F/Users/sjm/work/mm/mms4/mobile/ios/Pods/OneSignal/iOS_SDK/O
neSignalSDK/Framework -filelist /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotifica
tionServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Fram
eworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -mios-simulator-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlin
ker /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -fapplication-extension -ObjC -ldevice_info -lflutter_secure_storage -llocal_auth -llocation -lonesignal -lopen_file -lpackage_info -lpath_provider -lshared_preferences -luni_links -lurl_launcher -framework Flutter -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -ObjC -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -e _NSExtensionMain -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/OneSignalNotificationServiceExtension.appex-Simulated.xcent -lPods-OneSignalNotificationServiceExtension -Xlinker -dependency_info -Xlinker /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension_dependency_info.dat -o /Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension
           ld: warning: directory not found for option '-L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/location'
           ld: library not found for -llocation
           clang: error: linker command failed with exit code 1 (use -v to see invocation)

           === BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug ===

           Check dependencies

           Libtool /Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/path_provider/libpath_provider.a normal x86_64
               cd /Users/sjm/work/mm/mms4/mobile/ios/Pods
               export IPHONEOS_DEPLOYMENT_TARGET=8.0
               export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/sjm/Development/flutter/bin:/Users/sjm/.fastlane/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:."
               /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/path_provider -filelist /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/path_provider.build/Objects-normal/x86_64/path_provider.LinkFileList -o /Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/path_provider/libpath_provider.a

I can include the total flutter run -v output somewhere (it's lengthy) if you tell me where..

I am not sure why it's do an clang thing THEN in the middle of the project builds?? I think that's the culprit ..

Environment

  1. 1.0.3
  2. pub and then followed the instructions

Steps to Reproduce Issue:

  1. Install the OneSignal Flutter SDK using pub into your project
  2. Add a TON of pubspec.yaml dependencies .. lots of which have Pod things..
  3. flutter clean ; flutter run -d XXXX (simulator)

The odd thing is that the first time we run we may get 5/6 "ld" errors.. but each run after reduces that. Sometimes we get 0 and once it's zero we're good again until the next "flutter upgrade" or something that adds a pod .. then all hell breaks loose again . :(

I have this reproducible right now -- can't fix actually ..

Here is our pubspec.yaml file:

name: MissionMode
description: Flutter MissionMode Mobile

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# Read more about versioning at semver.org.
version: 1.4.5

environment:
  sdk: '>=2.0.0-dev.68.0 <3.0.0'

dependencies:
  charts_flutter: ^0.5.0
  device_info: ^0.3.0
  dynamic_theme: ^1.0.0
  fluro: ^1.3.4
  flutter_secure_storage: ^3.1.1
  flutter_typeahead: ^0.4.0
  # get_version: ^0.0.6
  graphql_flutter: ^1.0.0-alpha.10
  flutter_html: ^0.8.2
  http: ^0.12.0
  icons_helper:
    git:
      url: git://github.com/sjmcdowall/icons_helper
  # image_picker: ^0.4.10
  local_auth: ^0.3.0
  location: ^1.4.0
  native_widgets: ^0.1.1+1
  open_file: ^1.1.1
  package_info: ^0.3.2
  page_view_indicator: ^0.3.0+1
  path_provider: ^0.4.1
  rxdart: ^0.18.1
  scoped_model: ^1.0.1
  shared_preferences: ^0.4.2
  uni_links: ^0.1.3
  url_launcher: ^4.0.1
  uuid: ^1.0.3
  intl: ^0.15.7
  onesignal: ^1.0.0

  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:
    - assets/images/background.png
    - assets/images/MissionMode_Logo.png
    - assets/images/MissionMode_Full_logo_white.png
    - assets/images/MissionMode_Full_logo.png
    - assets/images/MissionMode_Logo.png
    - assets/images/triangle-bg.png
    - assets/images/Envelope-PNG-File-354x279.png
    - assets/images/wand-1024_1280.png
  # To add assets to your application, add an assets section, like this:
  # assets:
  #  - images/a_dot_burr.jpeg
  #  - images/a_dot_ham.jpeg
  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.io/assets-and-images/#resolution-aware.
  # For details regarding adding assets from package dependencies, see
  # https://flutter.io/assets-and-images/#from-packages
  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.io/custom-fonts/#from-packages

Here is the Podfile from /ios

# Uncomment this line to define a global platform for your project
platform :ios, '10.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

def parse_KV_file(file, separator='=')
  file_abs_path = File.expand_path(file)
  if !File.exists? file_abs_path
    return [];
  end
  pods_ary = []
  skip_line_start_symbols = ["#", "/"]
  File.foreach(file_abs_path) { |line|
      next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
      plugin = line.split(pattern=separator)
      if plugin.length == 2
        podname = plugin[0].strip()
        path = plugin[1].strip()
        podpath = File.expand_path("#{path}", file_abs_path)
        pods_ary.push({:name => podname, :path => podpath});
      else
        puts "Invalid plugin specification: #{line}"
      end
  }
  return pods_ary
end

target 'Runner' do
  # SJM -- For Swift plugins
  # use_frameworks!

  # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
  # referring to absolute paths on developers' machines.
  system('rm -rf .symlinks')
  system('mkdir -p .symlinks/plugins')

  # Flutter Pods
  generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
  if generated_xcode_build_settings.empty?
    puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
  end
  generated_xcode_build_settings.map { |p|
    if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
      symlink = File.join('.symlinks', 'flutter')
      File.symlink(File.dirname(p[:path]), symlink)
      pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
    end
  }

  # Plugin Pods
  plugin_pods = parse_KV_file('../.flutter-plugins')
  plugin_pods.map { |p|
    symlink = File.join('.symlinks', 'plugins', p[:name])
    File.symlink(p[:path], symlink)
    pod p[:name], :path => File.join(symlink, 'ios')
  }
end

target 'OneSignalNotificationServiceExtension' do
  pod 'OneSignal', '>= 2.9.3', '< 3.0'
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '4.0'
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end

This is rather a show stopper for us right now as we're stuck ..

Cheers!

@sjmcdowall
Copy link
Author

I did a flutter clean and attached the full output's from 2 build -- no difference -- just kept running the same command over and over .. generally the list of unresolved libraries goes down .. but not in this case .. This ALL has to do with timing .. we "somehow" need to make

           === BUILD TARGET OneSignalNotificationServiceExtension OF PROJECT Runner WITH CONFIGURATION Debug ===

Run AFTER all the other pub spec dependencies so the other libraries that Flutter generates in the LD command are actually there ...

build1.txt
build3.txt

@Nightsd01
Copy link
Contributor

@sjmcdowall the extension service does not need those other frameworks. The only external lib it needs is OneSignal. It should not even try to link to other Flutter libs.

That is what we will want to be debugging. Are you sure your Podfile is still the one you posted earlier? If so, this is really bizarre, Cocoapods is trying to add the wrong frameworks to the Extension service that your own Podfile says should only link to OneSignal

@sjmcdowall
Copy link
Author

sjmcdowall commented Dec 16, 2018 via email

@Nightsd01
Copy link
Contributor

Nightsd01 commented Dec 17, 2018

@sjmcdowall I’m not sure why you’d say that - the Extension service is required by iOS if you want to use rich dynamic push notifications, it’s not required by OneSignal.

The extension service is only necessary if you want to use badge increment logic (ie. this notification increases the existing badge count by X) or if you want to send rich push notifications with images and so on. You can just remove it entirely if you don’t need those things.

In any case, your Podfile looks fine. Cocoapods should not be generating a project that tries to link those libs to the extension service - that’s quite strange. None of our other Flutter users have ever posted about such an issue so I would assume it’s some strange edge case with Cocoapods.

What version of Cocoapods are you using? Can you try upgrading to the beta, or downgrading to an older version (ie. 1.3 or 1.1) and see if the same result occurs?

@Nightsd01
Copy link
Contributor

Another useful troubleshooting step would be to create an entirely new Flutter project and see if you can integrate OneSignal using your environment.

@sjmcdowall
Copy link
Author

sjmcdowall commented Dec 17, 2018 via email

@sjmcdowall
Copy link
Author

sjmcdowall commented Dec 17, 2018 via email

@Nightsd01
Copy link
Contributor

@sjmcdowall The build order should not matter. Can you open your project in Xcode, navigate to your Project Settings, select the OneSignal Notification Service Extension target, and select the General tab, and send me a screenshot of the whole page? Especially everything you see in Linked Frameworks section.

@sjmcdowall
Copy link
Author

sjmcdowall commented Dec 17, 2018 via email

@Nightsd01
Copy link
Contributor

Hi @sjmcdowall, sorry for the slowdown during the holidays. What's the status of this issue currently?

@sjmcdowall
Copy link
Author

As long as I put some of the Pod dependencies in the target for OneSignal it compiles fine .. just keeping with that for now

@Nightsd01
Copy link
Contributor

Closing this issue since I've never heard of any other user experiencing this issue - I would assume there's some configuration with your project that most developers/companies don't have that causes this issue.

@lifenautjoe
Copy link

Hi @sjmcdowall , could you please elaborate on your work-around?

Breaking my head for an entire day so far and just can't get the iOS build to work..

Cheers!

@sjmcdowall
Copy link
Author

sjmcdowall commented Jan 31, 2019

@lifenautjoe -- sure -- but let's make sure we have the same issue -- can you post your error -- and build with a -v and post the "important" parts of that output the shows the error? Or is it exactly the same as error above with the ld link failure thing?

Oh and you might as well show me your Podfile too ..

@lifenautjoe
Copy link

Awesome that you're willing to help @sjmcdowall !

Running flutter build ios --release --flavor production without the -v flag, outputs

Building social.openbook.app for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: GAR7B57RXU
Starting Xcode build...
Xcode build done.                                            1.3s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    ld: warning: directory not found for option '-L/Users/lifenautjoe/Documents/code/openbook/openbook-app/build/ios/Release-production-iphoneos/image_cropper'
    ld: warning: directory not found for option '-L/Users/lifenautjoe/Documents/code/openbook/openbook-app/build/ios/Release-production-iphoneos/video_player'
    ld: library not found for -limage_cropper
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ld: warning: directory not found for option '-L/Users/lifenautjoe/Documents/code/openbook/openbook-app/build/ios/Release-production-iphoneos/image_cropper'
    ld: warning: directory not found for option '-L/Users/lifenautjoe/Documents/code/openbook/openbook-app/build/ios/Release-production-iphoneos/video_player'
    ld: library not found for -limage_cropper
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

Running it with the -v flag, outputs this (Paste of Code link)

And finally, my podfile contains:

# Uncomment this line to define a global platform for your project
platform :ios, '10.2'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

def parse_KV_file(file, separator='=')
  file_abs_path = File.expand_path(file)
  if !File.exists? file_abs_path
    return [];
  end
  pods_ary = []
  skip_line_start_symbols = ["#", "/"]
  File.foreach(file_abs_path) { |line|
      next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
      plugin = line.split(pattern=separator)
      if plugin.length == 2
        podname = plugin[0].strip()
        path = plugin[1].strip()
        podpath = File.expand_path("#{path}", file_abs_path)
        pods_ary.push({:name => podname, :path => podpath});
      else
        puts "Invalid plugin specification: #{line}"
      end
  }
  return pods_ary
end

target 'Runner' do
  # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
  # referring to absolute paths on developers' machines.
  system('rm -rf .symlinks')
  system('mkdir -p .symlinks/plugins')

  # Flutter Pods
  generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
  if generated_xcode_build_settings.empty?
    puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
  end
  generated_xcode_build_settings.map { |p|
    if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
      symlink = File.join('.symlinks', 'flutter')
      File.symlink(File.dirname(p[:path]), symlink)
      pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
    end
  }

  # Plugin Pods
  plugin_pods = parse_KV_file('../.flutter-plugins')
  plugin_pods.map { |p|
    symlink = File.join('.symlinks', 'plugins', p[:name])
    File.symlink(p[:path], symlink)
    pod p[:name], :path => File.join(symlink, 'ios')
  }
end

target 'OneSignalNotificationServiceExtension' do
  pod 'OneSignal', '>= 2.9.3', '< 3.0'
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end

Thank you for having a look!

@sjmcdowall
Copy link
Author

No worries -- and yeah -- same style error. So no SWIFT plugins yet in your project,eh? Lucky you. :)

If you are using the latest OneSignal .. make sure your minimum in your Podfile is 2.9.5 not 2.9.3 .. something deprecated a bit ago and now you need 2.9.5. minumum.. that's not YOUR issue yet but it could be. :)

Here is my Podfile -- I think it's pretty close:

# Uncomment this line to define a global platform for your project
platform :ios, '10.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

def parse_KV_file(file, separator='=')
  file_abs_path = File.expand_path(file)
  if !File.exists? file_abs_path
    return [];
  end
  pods_ary = []
  skip_line_start_symbols = ["#", "/"]
  File.foreach(file_abs_path) { |line|
      next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
      plugin = line.split(pattern=separator)
      if plugin.length == 2
        podname = plugin[0].strip()
        path = plugin[1].strip()
        podpath = File.expand_path("#{path}", file_abs_path)
        pods_ary.push({:name => podname, :path => podpath});
      else
        puts "Invalid plugin specification: #{line}"
      end
  }
  return pods_ary
end

target 'Runner' do
  # SJM -- For Swift plugins
  # use_frameworks!

  # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
  # referring to absolute paths on developers' machines.
  system('rm -rf .symlinks')
  system('mkdir -p .symlinks/plugins')

  # Flutter Pods
  generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
  if generated_xcode_build_settings.empty?
    puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
  end
  generated_xcode_build_settings.map { |p|
    if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
      symlink = File.join('.symlinks', 'flutter')
      File.symlink(File.dirname(p[:path]), symlink)
      pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
    end
  }

  # Plugin Pods
  plugin_pods = parse_KV_file('../.flutter-plugins')
  plugin_pods.map { |p|
    symlink = File.join('.symlinks', 'plugins', p[:name])
    File.symlink(p[:path], symlink)
    pod p[:name], :path => File.join(symlink, 'ios')
  }
end

target 'OneSignalNotificationServiceExtension' do
  pod 'OneSignal', '>= 2.9.5', '< 3.0'
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '4.0'
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end

@sjmcdowall
Copy link
Author

OK -- now here is the real hack :) Basically you need to add a bunch (all?) your OTHER pod libs in your project to the dependency area of the OneSignal within your Runner project within Xcode. So you need to open in Xcode your Runner.xcworkspace .. then make it sort of look like the attached screenshot.. obviously the libraries will depend on what you have imported in pubspec.yaml .. but certainly make sure to include any specific ones the "LD" is complaining about and see how that goes...

screen shot 2019-01-31 at 2 29 10 pm

@lifenautjoe
Copy link

lifenautjoe commented Jan 31, 2019 via email

@lifenautjoe
Copy link

Hi @sjmcdowall,

Sorry for the delay. Something else came up..

Regarding the work-around... Where do I find the .a files? I can just see the .h files of the libraries..

Sorry for the newbie question, not really an iOS developer 😅.

Thanks!

@lifenautjoe
Copy link

So... that fixed those errors but started getting an error that an image cropping library I was using did not contain bitcode and had to rebuild

You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), 
obtain an updated library from the vendor, or disable bitcode for this target

I just added Enable Bitcode No to the OneSignalNotificationService extension and it worked like a charm.

image

As a final question.. Is there any unintended consequences this might have?

And once again, thanks for the help @sjmcdowall & @Nightsd01 . You guys are the MVPs ! 🙏

@sjmcdowall
Copy link
Author

Actually BITCODE enabled is actually (likely) preferred. I had to turn it off because a library I was using didn't have it and was complaining because I did not turn it off! I think it was a SWIFT plugin.

Rule of thumb -- avoid SWIFT plugins I think unless absolutely needed :)

So the only downside MAYBE you wind up in a catch-22 problem somewhere down the line where one library must have BITCODE off and one must have BITCODE on .. but until then, go forward!!

Onwards and upwards!

@sjmcdowall
Copy link
Author

Oh and @Nightsd01 -- see, ANOTHER person with the same issue. It's just a matter of time before more. :) Although I don't think in reality the issue is anything in OneSignal but in flutter build arch..

@neyara
Copy link

neyara commented Feb 12, 2019

Hello,
I ended up with the same problem of you guys @lifenautjoe and @sjmcdowall and tried the work-around mentioned in this comment. Initially the error was pointing only the permission handler package, but after following sjmcdowall's steps, I got some new errors related to swift libraries. I was wondering if you guys could help me with this... I am new to Xcode and ios development, so sorry if I wasn't clear about some terms...

This is my podfile

# Uncomment this line to define a global platform for your project
platform :ios, '10.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

def parse_KV_file(file, separator='=')
  file_abs_path = File.expand_path(file)
  if !File.exists? file_abs_path
    return [];
  end
  pods_ary = []
  skip_line_start_symbols = ["#", "/"]
  File.foreach(file_abs_path) { |line|
      next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
      plugin = line.split(pattern=separator)
      if plugin.length == 2
        podname = plugin[0].strip()
        path = plugin[1].strip()
        podpath = File.expand_path("#{path}", file_abs_path)
        pods_ary.push({:name => podname, :path => podpath});
      else
        puts "Invalid plugin specification: #{line}"
      end
  }
  return pods_ary
end

target 'Runner' do
  # use_frameworks!
  # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
  # referring to absolute paths on developers' machines.
  system('rm -rf .symlinks')
  system('mkdir -p .symlinks/plugins')

  # Flutter Pods
  generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
  if generated_xcode_build_settings.empty?
    puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
  end
  generated_xcode_build_settings.map { |p|
    if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
      symlink = File.join('.symlinks', 'flutter')
      File.symlink(File.dirname(p[:path]), symlink)
      pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
    end
  }

  # Plugin Pods
  plugin_pods = parse_KV_file('../.flutter-plugins')
  plugin_pods.map { |p|
    symlink = File.join('.symlinks', 'plugins', p[:name])
    File.symlink(p[:path], symlink)
    pod p[:name], :path => File.join(symlink, 'ios')
  }
end

target 'OneSignalNotificationServiceExtension' do
  pod 'OneSignal', '>= 2.9.5', '< 3.0'
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
      config.build_settings['SWIFT_VERSION'] = '4.2'
    end
  end
end

And this is the error I got

Script done, output file is /dev/null
Running pod install...                                       2.9s
Starting Xcode build...
Xcode build done.                                            6.0s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    === BUILD TARGET TOCropViewController OF PROJECT Pods WITH CONFIGURATION Debug ===
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    m:28:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    h:28:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:4: warning:
    'UNMutableNotificationContent' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
       ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note: 'UNMutableNotificationContent' has been
    explicitly marked partial here
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    m:28:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    h:28:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                      API_AVAILA
                                                      BLE(ios(10
                                                      .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:74: warning:
    'UNNotificationRequest' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                             ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note: 'UNNotificationRequest' has been explicitly
    marked partial here
    @interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    m:28:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    h:28:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                      API_AVAILA
                                                      BLE(ios(10
                                                      .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:137: warning:
    'UNMutableNotificationContent' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
     ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note: 'UNMutableNotificationContent' has been
    explicitly marked partial here
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    m:28:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    h:28:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                      API_AVAILA
                                                      BLE(ios(10
                                                      .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:4: warning:
    'UNMutableNotificationContent' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
       ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note: 'UNMutableNotificationContent' has been
    explicitly marked partial here
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    m:28:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    h:28:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                     API_AVAILA
                                                     BLE(ios(10
                                                     .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:73: warning:
    'UNNotificationRequest' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                            ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note: 'UNNotificationRequest' has been explicitly
    marked partial here
    @interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    m:28:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    h:28:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                     API_AVAILA
                                                     BLE(ios(10
                                                     .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:136: warning:
    'UNMutableNotificationContent' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:50:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note: 'UNMutableNotificationContent' has been
    explicitly marked partial here
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    m:28:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.
    h:28:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                     API_AVAILA
                                                     BLE(ios(10
                                                     .0))
    6 warnings generated.
    === BUILD TARGET TOCropViewController OF PROJECT Pods WITH CONFIGURATION Debug ===
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.m:28
    :
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.h:29
    :
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:4: warning:
    'UNMutableNotificationContent' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
       ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note: 'UNMutableNotificationContent' has been
    explicitly marked partial here
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.m:28
    :
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.h:29
    :
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                      API_AVAILA
                                                      BLE(ios(10
                                                      .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:74: warning:
    'UNNotificationRequest' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                             ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note: 'UNNotificationRequest' has been explicitly
    marked partial here
    @interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.m:28
    :
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.h:29
    :
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                      API_AVAILA
                                                      BLE(ios(10
                                                      .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:137: warning:
    'UNMutableNotificationContent' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
     ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note: 'UNMutableNotificationContent' has been
    explicitly marked partial here
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.m:28
    :
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.h:29
    :
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                      API_AVAILA
                                                      BLE(ios(10
                                                      .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:4: warning:
    'UNMutableNotificationContent' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
       ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note: 'UNMutableNotificationContent' has been
    explicitly marked partial here
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.m:28
    :
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.h:29
    :
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                     API_AVAILA
                                                     BLE(ios(10
                                                     .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:73: warning:
    'UNNotificationRequest' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                            ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note: 'UNNotificationRequest' has been explicitly
    marked partial here
    @interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.m:28
    :
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.h:29
    :
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                     API_AVAILA
                                                     BLE(ios(10
                                                     .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:136: warning:
    'UNMutableNotificationContent' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note: 'UNMutableNotificationContent' has been
    explicitly marked partial here
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.m:28
    :
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalPlugin.h:29
    :
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                     API_AVAILA
                                                     BLE(ios(10
                                                     .0))
    6 warnings generated.
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalTagsControl
    ler.m:29:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:4: warning:
    'UNMutableNotificationContent' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
       ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note: 'UNMutableNotificationContent' has been
    explicitly marked partial here
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalTagsControl
    ler.m:29:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                      API_AVAILA
                                                      BLE(ios(10
                                                      .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:74: warning:
    'UNNotificationRequest' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                             ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note: 'UNNotificationRequest' has been explicitly
    marked partial here
    @interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalTagsControl
    ler.m:29:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                      API_AVAILA
                                                      BLE(ios(10
                                                      .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:137: warning:
    'UNMutableNotificationContent' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
     ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note: 'UNMutableNotificationContent' has been
    explicitly marked partial here
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalTagsControl
    ler.m:29:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:434:1: note: annotate
    'didReceiveNotificationExtensionRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)didReceiveNotificationExtensionRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                      API_AVAILA
                                                      BLE(ios(10
                                                      .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:4: warning:
    'UNMutableNotificationContent' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
       ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note: 'UNMutableNotificationContent' has been
    explicitly marked partial here
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalTagsControl
    ler.m:29:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                     API_AVAILA
                                                     BLE(ios(10
                                                     .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:73: warning:
    'UNNotificationRequest' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
                                                                            ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h:16:12: note: 'UNNotificationRequest' has been explicitly
    marked partial here
    @interface UNNotificationRequest : NSObject <NSCopying, NSSecureCoding>
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalTagsControl
    ler.m:29:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                     API_AVAILA
                                                     BLE(ios(10
                                                     .0))
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:136: warning:
    'UNMutableNotificationContent' is only available on iOS 10.0 or newer [-Wunguarded-availability]
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
    In module 'UserNotifications' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h:60:12: note: 'UNMutableNotificationContent' has been
    explicitly marked partial here
    @interface UNMutableNotificationContent : UNNotificationContent
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalTagsControl
    ler.m:29:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/OneSignal/OneSignal/OneSignal.h:435:1: note: annotate
    'serviceExtensionTimeWillExpireRequest:withMutableNotificationContent:' with an availability attribute to silence this warning
    + (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest*)request
    withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent;
    ^
                                                     API_AVAILA
                                                     BLE(ios(10
                                                     .0))
    6 warnings generated.
    === BUILD TARGET sqflite OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-2.1.2/ios/Classes/PermissionH
    andlerPlugin.m:2:9: fatal error: 'permission_handler/permission_handler-Swift.h' file not found
    #import <permission_handler/permission_handler-Swift.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1486:15: warning: 'sqlite3_wal_checkpoint_v2'
    is only available on iOS 5.0 or newer [-Wunguarded-availability]
        int err = sqlite3_wal_checkpoint_v2(_db, dbName, checkpointMode, logFrameCount, checkpointCount);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'SQLite3' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/FMDB/src/fmdb/FMDatabase.m:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/sq
    lite3.h:8244:16: note: 'sqlite3_wal_checkpoint_v2' has been explicitly marked partial here
    SQLITE_API int sqlite3_wal_checkpoint_v2(
                   ^
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1486:15: note: enclose
    'sqlite3_wal_checkpoint_v2' in an @available check to silence this warning
        int err = sqlite3_wal_checkpoint_v2(_db, dbName, checkpointMode, logFrameCount, checkpointCount);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
    1 warning generated.
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:101:9: warning:
    'dispatch_queue_set_specific' is only available on iOS 5.0 or newer [-Wunguarded-availability]
            dispatch_queue_set_specific(_queue, kDispatchQueueSpecificKey, (__bridge void *)self, NULL);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'Foundation' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.h:9:
    In module 'CoreFoundation' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/Foundation.framework/Headers/Foundation.h:6:
    In module 'Dispatch' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/di
    spatch/queue.h:1352:1: note: 'dispatch_queue_set_specific' has been explicitly marked partial here
    dispatch_queue_set_specific(dispatch_queue_t queue, const void *key,
    ^
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:101:9: note: enclose
    'dispatch_queue_set_specific' in an @available check to silence this warning
            dispatch_queue_set_specific(_queue, kDispatchQueueSpecificKey, (__bridge void *)self, NULL);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:184:54: warning: 'dispatch_get_specific'
    is only available on iOS 5.0 or newer [-Wunguarded-availability]
        FMDatabaseQueue *currentSyncQueue = (__bridge id)dispatch_get_specific(kDispatchQueueSpecificKey);
                                                         ^~~~~~~~~~~~~~~~~~~~~
    In module 'Foundation' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.h:9:
    In module 'CoreFoundation' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/Foundation.framework/Headers/Foundation.h:6:
    In module 'Dispatch' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/di
    spatch/queue.h:1408:1: note: 'dispatch_get_specific' has been explicitly marked partial here
    dispatch_get_specific(const void *key);
    ^
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:184:54: note: enclose
    'dispatch_get_specific' in an @available check to silence this warning
        FMDatabaseQueue *currentSyncQueue = (__bridge id)dispatch_get_specific(kDispatchQueueSpecificKey);
                                                         ^~~~~~~~~~~~~~~~~~~~~
    2 warnings generated.
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:5:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.h:5:
    In file included from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/Flutter.h:51:
    In file included from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterAppDelegate.h:11:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:102:42: warning:
    'UIUserNotificationSettings' is only available on iOS 8.0 or newer [-Wunguarded-availability]
        didRegisterUserNotificationSettings:(UIUserNotificationSettings*)notificationSettings;
                                             ^
    In module 'UIKit' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:44:12: note: 'UIUserNotificationSettings' has been explicitly
    marked partial here
    @interface UIUserNotificationSettings : NSObject
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:5:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.h:5:
    In file included from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/Flutter.h:51:
    In file included from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterAppDelegate.h:11:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:101:1: note: annotate
    'application:didRegisterUserNotificationSettings:' with an availability attribute to silence this warning
    - (void)application:(UIApplication*)application
    ^
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:118:44: warning:
    'UIBackgroundFetchResult' is only available on iOS 7.0 or newer [-Wunguarded-availability]
              fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
                                               ^
    In module 'UIKit' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UIKit.framework/Headers/UIApplication.h:75:29: note: 'UIBackgroundFetchResult' has been explicitly marked partial here
    typedef NS_ENUM(NSUInteger, UIBackgroundFetchResult) {
                                ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:5:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.h:5:
    In file included from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/Flutter.h:51:
    In file included from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterAppDelegate.h:11:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:116:1: note: annotate
    'application:didReceiveRemoteNotification:fetchCompletionHandler:' with an availability attribute to silence this warning
    - (BOOL)application:(UIApplication*)application
    ^
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:186:49: warning:
    'UIBackgroundFetchResult' is only available on iOS 7.0 or newer [-Wunguarded-availability]
        performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
                                                    ^
    In module 'UIKit' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UIKit.framework/Headers/UIApplication.h:75:29: note: 'UIBackgroundFetchResult' has been explicitly marked partial here
    typedef NS_ENUM(NSUInteger, UIBackgroundFetchResult) {
                                ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:5:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.h:5:
    In file included from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/Flutter.h:51:
    In file included from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterAppDelegate.h:11:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:185:1: note: annotate
    'application:performFetchWithCompletionHandler:' with an availability attribute to silence this warning
    - (BOOL)application:(UIApplication*)application
    ^
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:194:27: warning:
    'NSUserActivity' is only available on iOS 8.0 or newer [-Wunguarded-availability]
        continueUserActivity:(NSUserActivity*)userActivity
                              ^
    In module 'Foundation' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterBinaryMessenger.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/Foundation.framework/Headers/NSUserActivity.h:20:12: note: 'NSUserActivity' has been explicitly marked partial here
    @interface NSUserActivity : NSObject
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:5:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.h:5:
    In file included from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/Flutter.h:51:
    In file included from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterAppDelegate.h:11:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPlugin.h:193:1: note: annotate
    'application:continueUserActivity:restorationHandler:' with an availability attribute to silence this warning
    - (BOOL)application:(UIApplication*)application
    ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:5:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.h:5:
    In file included from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/Flutter.h:62:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPluginAppLifeCycleDelegate.h:72:42
    : warning: 'UIUserNotificationSettings' is only available on iOS 8.0 or newer [-Wunguarded-availability]
        didRegisterUserNotificationSettings:(UIUserNotificationSettings*)notificationSettings;
                                             ^
    In module 'UIKit' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:44:12: note: 'UIUserNotificationSettings' has been explicitly
    marked partial here
    @interface UIUserNotificationSettings : NSObject
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:5:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.h:5:
    In file included from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/Flutter.h:62:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPluginAppLifeCycleDelegate.h:71:1:
    note: annotate 'application:didRegisterUserNotificationSettings:' with an availability attribute to silence this warning
    - (void)application:(UIApplication*)application
    ^
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPluginAppLifeCycleDelegate.h:86:44
    : warning: 'UIBackgroundFetchResult' is only available on iOS 7.0 or newer [-Wunguarded-availability]
              fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
                                               ^
    In module 'UIKit' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UIKit.framework/Headers/UIApplication.h:75:29: note: 'UIBackgroundFetchResult' has been explicitly marked partial here
    typedef NS_ENUM(NSUInteger, UIBackgroundFetchResult) {
                                ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:5:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.h:5:
    In file included from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/Flutter.h:62:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPluginAppLifeCycleDelegate.h:84:1:
    note: annotate 'application:didReceiveRemoteNotification:fetchCompletionHandler:' with an availability attribute to silence this
    warning
    - (void)application:(UIApplication*)application
    ^
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPluginAppLifeCycleDelegate.h:157:4
    9: warning: 'UIBackgroundFetchResult' is only available on iOS 7.0 or newer [-Wunguarded-availability]
        performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
                                                    ^
    In module 'UIKit' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UIKit.framework/Headers/UIApplication.h:75:29: note: 'UIBackgroundFetchResult' has been explicitly marked partial here
    typedef NS_ENUM(NSUInteger, UIBackgroundFetchResult) {
                                ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:5:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.h:5:
    In file included from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/Flutter.h:62:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPluginAppLifeCycleDelegate.h:156:1
    : note: annotate 'application:performFetchWithCompletionHandler:' with an availability attribute to silence this warning
    - (BOOL)application:(UIApplication*)application
    ^
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPluginAppLifeCycleDelegate.h:166:2
    7: warning: 'NSUserActivity' is only available on iOS 8.0 or newer [-Wunguarded-availability]
        continueUserActivity:(NSUserActivity*)userActivity
                              ^
    In module 'Foundation' imported from
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterBinaryMessenger.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/Foundation.framework/Headers/NSUserActivity.h:20:12: note: 'NSUserActivity' has been explicitly marked partial here
    @interface NSUserActivity : NSObject
               ^
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:5:
    In file included from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.h:5:
    In file included from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/Flutter.h:62:
    /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Headers/Public/Flutter/Flutter/FlutterPluginAppLifeCycleDelegate.h:165:1
    : note: annotate 'application:continueUserActivity:restorationHandler:' with an availability attribute to silence this warning
    - (BOOL)application:(UIApplication*)application
    ^
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:29:50: warning: 'window' is only available on iOS 5.0 or newer [-Wunguarded-availability]
          [UIApplication sharedApplication].delegate.window.rootViewController;
                                                     ^~~~~~
    In module 'UIKit' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UIKit.framework/Headers/UIApplication.h:398:51: note: 'window' has been explicitly marked partial here
    @property (nullable, nonatomic, strong) UIWindow *window NS_AVAILABLE_IOS(5_0);
                                                      ^
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:29:50: note: enclose 'window' in an @available check to silence this warning
          [UIApplication sharedApplication].delegate.window.rootViewController;
                                                     ^~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:79:45: warning: 'kUTTypeAVIMovie' is only available on iOS 8.0 or newer [-Wunguarded-availability]
          (NSString *)kUTTypeMovie, (NSString *)kUTTypeAVIMovie, (NSString *)kUTTypeVideo,
                                                ^~~~~~~~~~~~~~~
    In module 'MobileCoreServices' imported from
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:7:
    In module 'CoreServices' imported from
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/MobileCoreServices.framework/Headers/MobileCoreServices.h:9:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/CoreServices.framework/Headers/UTCoreTypes.h:892:26: note: 'kUTTypeAVIMovie' has been explicitly marked partial here
    extern const CFStringRef kUTTypeAVIMovie                             __OSX_AVAILABLE_STARTING(__MAC_10_10,__IPHONE_8_0);
                             ^
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:79:45: note: enclose 'kUTTypeAVIMovie' in an @available check to silence this warning
          (NSString *)kUTTypeMovie, (NSString *)kUTTypeAVIMovie, (NSString *)kUTTypeVideo,
                                                ^~~~~~~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:111:22: warning: 'presentViewController:animated:completion:' is only available on iOS 5.0 or newer
    [-Wunguarded-availability]
        [_viewController presentViewController:_imagePickerController animated:YES completion:nil];
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'UIKit' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UIKit.framework/Headers/UIViewController.h:227:1: note: 'presentViewController:animated:completion:' has been
    explicitly marked partial here
    - (void)presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^
    __nullable)(void))completion NS_AVAILABLE_IOS(5_0);
    ^
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:111:22: note: enclose 'presentViewController:animated:completion:' in an @available check to silence this warning
        [_viewController presentViewController:_imagePickerController animated:YES completion:nil];
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:124:20: warning: 'presentViewController:animated:completion:' is only available on iOS 5.0 or newer
    [-Wunguarded-availability]
      [_viewController presentViewController:_imagePickerController animated:YES completion:nil];
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'UIKit' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UIKit.framework/Headers/UIViewController.h:227:1: note: 'presentViewController:animated:completion:' has been
    explicitly marked partial here
    - (void)presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^
    __nullable)(void))completion NS_AVAILABLE_IOS(5_0);
    ^
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:124:20: note: enclose 'presentViewController:animated:completion:' in an @available check to silence this warning
      [_viewController presentViewController:_imagePickerController animated:YES completion:nil];
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:131:27: warning: 'dismissViewControllerAnimated:completion:' is only available on iOS 5.0 or newer [-Wunguarded-availability]
      [_imagePickerController dismissViewControllerAnimated:YES completion:nil];
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'UIKit' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UIKit.framework/Headers/UIViewController.h:229:1: note: 'dismissViewControllerAnimated:completion:' has been explicitly
    marked partial here
    - (void)dismissViewControllerAnimated: (BOOL)flag completion: (void (^ __nullable)(void))completion NS_AVAILABLE_IOS(5_0);
    ^
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:131:27: note: enclose 'dismissViewControllerAnimated:completion:' in an @available check to silence this warning
      [_imagePickerController dismissViewControllerAnimated:YES completion:nil];
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:185:27: warning: 'dismissViewControllerAnimated:completion:' is only available on iOS 5.0 or newer [-Wunguarded-availability]
      [_imagePickerController dismissViewControllerAnimated:YES completion:nil];
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In module 'UIKit' imported from /Users/user148287/Documents/sindapp/sindjufse-app/ios/Pods/Target Support
    Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library
    /Frameworks/UIKit.framework/Headers/UIViewController.h:229:1: note: 'dismissViewControllerAnimated:completion:' has been explicitly
    marked partial here
    - (void)dismissViewControllerAnimated: (BOOL)flag completion: (void (^ __nullable)(void))completion NS_AVAILABLE_IOS(5_0);
    ^
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.4.12+1/ios/Classes/ImagePickerPlu
    gin.m:185:27: note: enclose 'dismissViewControllerAnimated:completion:' in an @available check to silence this warning
      [_imagePickerController dismissViewControllerAnimated:YES completion:nil];
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    14 warnings generated.
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11:
    warning: variable 'originRect' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
          if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:40:26:
    note: uninitialized use occurs here
                    atSource:originRect];
                             ^~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:7:
    note: remove the 'if' if its condition is always true
          if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11:
    warning: variable 'originRect' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
          if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:40:26:
    note: uninitialized use occurs here
                    atSource:originRect];
                             ^~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11:
    note: remove the '&&' if its condition is always true
          if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11:
    warning: variable 'originRect' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
          if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:40:26:
    note: uninitialized use occurs here
                    atSource:originRect];
                             ^~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11:
    note: remove the '&&' if its condition is always true
          if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11:
    warning: variable 'originRect' is used uninitialized whenever '&&' condition is false [-Wsometimes-uninitialized]
          if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
              ^~~~~~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:40:26:
    note: uninitialized use occurs here
                    atSource:originRect];
                             ^~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:33:11:
    note: remove the '&&' if its condition is always true
          if (originX != nil && originY != nil && originWidth != nil && originHeight != nil) {
              ^~~~~~~~~~~~~~~~~
    /Users/user148287/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/share-0.5.3/ios/Classes/SharePlugin.m:32:7:
    note: variable 'originRect' is declared here
          CGRect originRect;
          ^
    4 warnings generated.

Could not build the application for the simulator.
Error launching application on iPhone XR.

@sjmcdowall
Copy link
Author

sjmcdowall commented Feb 12, 2019 via email

@neyara
Copy link

neyara commented Feb 12, 2019

Flutter is up-to-date, but I am on "stable" channel.

Flutter 1.0.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 5391447fae (3 months ago) • 2018-11-29 19:41:26 -0800
Engine • revision 7375a0f414
Tools • Dart 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

I'm using cocoapods 1.5.3. I'm unable to update it to 1.6.0 right now because I'm using one of the MacinCloud servers and I have no sudo access on it. I was forced to use version 4.2 of swift because I was dealing with some other errors with messages like'openSettingsURLString' was introduced in Swift 4.2.

After doing flutter run -v I get this piece of text in red:

Log message
[ +968 ms] Could not build the application for the simulator.
[   +3 ms] Error launching application on iPhone XR.
[   +3 ms] "flutter run" took 15,668ms.

#0      throwToolExit (package:flutter_tools/src/base/common.dart:26:3)
#1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:404:7)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:401:18)
#3      _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#4      _rootRunUnary (dart:async/zone.dart:1132:38)
#5      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#6      _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#7      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#8      Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#9      Future._complete (dart:async/future_impl.dart:476:7)
#10     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#11     _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#12     _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#13     RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#14     _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#15     _rootRunUnary (dart:async/zone.dart:1132:38)
#16     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#17     _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#18     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#19     Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#20     Future._complete (dart:async/future_impl.dart:476:7)
#21     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#22     _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)
#23     _rootRun (dart:async/zone.dart:1124:13)
#24     _CustomZone.run (dart:async/zone.dart:1021:19)
#25     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#28     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#29     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)

I'm also attaching two images showing both the error and the linked frameworks in xcode - in case that helps on something.

xcode_error

xcode_libraries

@sjmcdowall
Copy link
Author

sjmcdowall commented Feb 13, 2019 via email

@Allan-Nava
Copy link

I got this error:

CompileC /Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/onesignal.build/Objects-normal/arm64/OneSignalCategories.o /Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/ies/Desktop/work/ntop/nlite/ios/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/ies/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/ies/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Index/DataStore -iquote /Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/onesignal.build/onesignal-generated-files.hmap -I/Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/onesignal.build/onesignal-own-target-headers.hmap -I/Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/onesignal.build/onesignal-all-target-headers.hmap -iquote /Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/onesignal.build/onesignal-project-headers.hmap -I/Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Build/Products/Debug-iphoneos/onesignal/include -I/Users/ies/Desktop/work/ntop/nlite/ios/Pods/Headers/Private -I/Users/ies/Desktop/work/ntop/nlite/ios/Pods/Headers/Private/onesignal -I/Users/ies/Desktop/work/ntop/nlite/ios/Pods/Headers/Public -I/Users/ies/Desktop/work/ntop/nlite/ios/Pods/Headers/Public/Flutter -I/Users/ies/Desktop/work/ntop/nlite/ios/Pods/Headers/Public/OneSignal -I/Users/ies/Desktop/work/ntop/nlite/ios/Pods/Headers/Public/onesignal -I/Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/onesignal.build/DerivedSources/arm64 -I/Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/onesignal.build/DerivedSources -F/Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Build/Products/Debug-iphoneos/onesignal -F/Users/ies/Desktop/work/ntop/nlite/ios/Pods/../.symlinks/flutter/ios -F/Users/ies/Desktop/work/ntop/nlite/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework -include /Users/ies/Desktop/work/ntop/nlite/ios/Pods/Target\ Support\ Files/onesignal/onesignal-prefix.pch -MMD -MT dependencies -MF /Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/onesignal.build/Objects-normal/arm64/OneSignalCategories.d --serialize-diagnostics /Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/onesignal.build/Objects-normal/arm64/OneSignalCategories.dia -c /Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m -o /Users/ies/Library/Developer/Xcode/DerivedData/Runner-apffkuoylfsqdqazxdmhgktnzyay/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/onesignal.build/Objects-normal/arm64/OneSignalCategories.o

In file included from /Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:28:
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.h:33:12: error: cannot find interface declaration for 'OSNotificationPayload'
@interface OSNotificationPayload (Flutter)
           ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.h:37:12: error: cannot find interface declaration for 'OSNotification'; did you mean 'NSNotification'?
@interface OSNotification (Flutter)
           ^~~~~~~~~~~~~~
           NSNotification
In module 'Foundation' imported from /Users/ies/Desktop/work/ntop/nlite/ios/Pods/Headers/Public/Flutter/Flutter/FlutterBinaryMessenger.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNotificationQueue.h:8:8: note: 'NSNotification' declared here
@class NSNotification, NSNotificationCenter, NSArray<ObjectType>, NSString;
       ^
In file included from /Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:28:
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.h:41:12: error: cannot find interface declaration for 'OSNotificationOpenedResult'
@interface OSNotificationOpenedResult (Flutter)
           ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:40:17: error: cannot find interface declaration for 'OSNotification'; did you mean 'NSNotification'?
@implementation OSNotification (Flutter)
                ^~~~~~~~~~~~~~
                NSNotification
In module 'Foundation' imported from /Users/ies/Desktop/work/ntop/nlite/ios/Pods/Headers/Public/Flutter/Flutter/FlutterBinaryMessenger.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNotificationQueue.h:8:8: note: 'NSNotification' declared here
@class NSNotification, NSNotificationCenter, NSArray<ObjectType>, NSString;
       ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:44:30: error: property 'payload' not found on object of type 'NSNotification *'
    json[@"payload"] = [self.payload toJson];
                             ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:45:40: error: property 'displayType' not found on object of type 'NSNotification *'
    json[@"displayType"] = @((int)self.displayType);
                                       ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:46:29: error: property 'shown' not found on object of type 'NSNotification *'
    json[@"shown"] = @(self.shown);
                            ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:47:34: error: property 'isAppInFocus' not found on object of type 'NSNotification *'
    json[@"appInFocus"] = @(self.isAppInFocus);
                                 ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:48:30: error: property 'silentNotification' not found on object of type 'NSNotification *'
    json[@"silent"] = @(self.silentNotification);
                             ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:54:17: error: cannot find interface declaration for 'OSNotificationPayload'
@implementation OSNotificationPayload (Flutter)
                ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:58:40: error: property 'contentAvailable' not found on object of type 'const __strong id'
    json[@"contentAvailable"] = @(self.contentAvailable);
                                       ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:59:38: error: property 'mutableContent' not found on object of type 'const __strong id'
    json[@"mutableContent"] = @(self.mutableContent);
                                     ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:62:14: error: property 'rawPayload' not found on object of type 'const __strong id'
    if (self.rawPayload) {
             ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:63:69: error: property 'rawPayload' not found on object of type 'const __strong id'
        NSData *data = [NSJSONSerialization dataWithJSONObject:self.rawPayload options:NSJSONWritingPrettyPrinted error:&jsonError];
                                                                    ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:68:22: error: property 'rawPayload' not found on object of type 'const __strong id'
            if (self.rawPayload) json[@"rawPayload"] = rawPayloadString;
                     ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:72:14: error: property 'notificationID' not found on object of type 'const __strong id'
    if (self.notificationID) json[@"notificationId"] = self.notificationID;
             ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:72:61: error: property 'notificationID' not found on object of type 'const __strong id'
    if (self.notificationID) json[@"notificationId"] = self.notificationID;
                                                            ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:73:14: error: property 'templateName' not found on object of type 'const __strong id'
    if (self.templateName) json[@"templateName"] = self.templateName;
             ^
/Users/ies/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.5/ios/Classes/OneSignalCategories.m:73:57: error: property 'templateName' not found on object of type 'const __strong id'
    if (self.templateName) json[@"templateName"] = self.templateName;
                                                        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

@rogeliotrejo13
Copy link

Gracias @rgomezp esa fue la la solución 😁

@rgomezp
Copy link
Contributor

rgomezp commented Apr 30, 2019

TRANSLATION OF ABOVE:
Please replace the onesignal reference in your pubspec.yaml with the following:

onesignalflutter:
      git: git://github.com/jmrobles/OneSignal-Flutter-SDK.git

@rajeevjaiswal
Copy link

rajeevjaiswal commented May 24, 2019

Can we use onesignal sdk without extension for time being?

@rajeevjaiswal
Copy link

@rgomezp Using above mentioned OneSignal git package does not solve the issue.
Still get below error in pod install
Runner (true) and OneSignalNotificationServiceExtension (false) do not both set use_frameworks!.

@rgomezp
Copy link
Contributor

rgomezp commented May 28, 2019

@rajeevjaiswal ,
I'm not sure why it isn't working for you. This should solve the Cocoapods issue and I haven't heard any other complaints since this workaround was created

rgomezp added a commit that referenced this issue May 30, 2019
Rename Plugin to Fix Missing Header and Linker Errors #21 & #42
@jkasten2
Copy link
Member

We just released onesignal_flutter 2.0.0 which should fix the header issue when you have use_frameworks! in your Podfile. Make sure to follow the migration guide in the release notes.

@Goolpe
Copy link

Goolpe commented Oct 17, 2019

@sjmcdowall
Maybe you can help, what to do if I have one swift plugin and he need BITCODE on #157 ?

@sjmcdowall
Copy link
Author

@Goolpe -- Alas I haven't used this library in 10 months .. or Flutter since moving to a new job. Sorry

@ghost
Copy link

ghost commented Mar 10, 2020

We just released onesignal_flutter 2.0.0 which should fix the header issue when you have use_frameworks! in your Podfile. Make sure to follow the migration guide in the release notes.

It does not fix the issue.

@ghost
Copy link

ghost commented Mar 10, 2020

Battling myself to death to get it approved in xCode

ld: '...../Library/Developer/Xcode/DerivedData/Runner-cvzsobqqjcgfacgyxlhdlayobjji/Build/Products/Debug-iphoneos/FMDB/FMDB.framework/FMDB' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/..../Library/Developer/Xcode/DerivedData/Runner-cvzsobqqjcgfacgyxlhdlayobjji/Build/Products/Debug-iphoneos/FMDB/FMDB.framework/FMDB' for architecture arm64

@arutkayb
Copy link

Issue still exists...

@arutkayb
Copy link

arutkayb commented Apr 21, 2020

Updated cocoapods with
brew upgrade cocoapods

Then, changed in pods file:
config.build_settings['ENABLE_BITCODE'] = 'NO'
to
config.build_settings['ENABLE_BITCODE'] = 'YES'

Change
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignal', '>= 2.9.3', '< 3.0'
end
to
target 'OneSignalNotificationServiceExtension' do
use_frameworks!
pod 'OneSignal', '>= 2.9.3', '< 3.0'
end

Then
flutter build ios
and
XCode Archive

Done 👏

@zaidmunir11s
Copy link

IOS version in build phases of pod(in xcode) and ios version in pod file should be same (Try with 9.0)

@pacifio
Copy link

pacifio commented Aug 15, 2021

After upgrading to macOS Catalina I am still facing this issue
Almost tried everything but nothing works .
I think this is due to macOS Catalina's support for only arm64 architecture

Cause when I run this from Xcode this works fine but when I run it from terminal it fails .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests