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
Steps to Reproduce Issue:
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!
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 ...
@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
I totally understand that -- but this is how Flutter works -- its part of the project build file(s) it creates ... See the full verbose output I attached to the Issue on github ..
I have also posted in Flutter too about this ... but no response ...
And yes -- my Podfile is exactly the one posted .. here it is again .. as well as the Podfile.lock
I have no ideas on how to "fix" anything so the LD for OneSignal doesn't include the rest of the libraries... was hoping you guys had some idea .. this doesn't appear to be a "normal" Flutter dependency ... the Google FCM plugin doesn't need this stuff ...
-- Podfile
platform :ios, '10.0'
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
-- Also -- here is the Podfile.lock that is generated (almost) each build..
PODS:
DEPENDENCIES:
.symlinks/plugins/device_info/ios).symlinks/flutter/ios).symlinks/plugins/flutter_secure_storage/ios).symlinks/plugins/local_auth/ios).symlinks/plugins/location/ios).symlinks/plugins/onesignal/ios).symlinks/plugins/open_file/ios).symlinks/plugins/package_info/ios).symlinks/plugins/path_provider/ios).symlinks/plugins/shared_preferences/ios).symlinks/plugins/uni_links/ios).symlinks/plugins/url_launcher/ios)SPEC REPOS:
https://github.com/cocoapods/specs.git:
- OneSignal
EXTERNAL SOURCES:
device_info:
:path: ".symlinks/plugins/device_info/ios"
Flutter:
:path: ".symlinks/flutter/ios"
flutter_secure_storage:
:path: ".symlinks/plugins/flutter_secure_storage/ios"
local_auth:
:path: ".symlinks/plugins/local_auth/ios"
location:
:path: ".symlinks/plugins/location/ios"
onesignal:
:path: ".symlinks/plugins/onesignal/ios"
open_file:
:path: ".symlinks/plugins/open_file/ios"
package_info:
:path: ".symlinks/plugins/package_info/ios"
path_provider:
:path: ".symlinks/plugins/path_provider/ios"
shared_preferences:
:path: ".symlinks/plugins/shared_preferences/ios"
uni_links:
:path: ".symlinks/plugins/uni_links/ios"
url_launcher:
:path: ".symlinks/plugins/url_launcher/ios"
SPEC CHECKSUMS:
device_info: 76ce0b32e13034d1883be4a382433648f9dcee63
Flutter: 9d0fac939486c9aba2809b7982dfdbb47a7b0296
flutter_secure_storage: cbb73e37aa0c66689fe63799a9619ac66849b8fa
local_auth: dca7d49d2228a53db258478ee98ee19402ff0c49
location: 26c90953ad5916331d0d1d913898779910416487
OneSignal: a506e3bc61d2030f0757faf9bd783a9b211c6e3c
onesignal: 73d086c833571282264a75e090411d039328a8a2
open_file: 40d524de730775bb4edb021fa137cc1d2fa13f1c
package_info: d7c98b64f60add4c2908b9d94d82a45d3c8827ad
path_provider: 09407919825bfe3c2deae39453b7a5b44f467873
shared_preferences: 5a1d487c427ee18fcd3ea1f2a131569481834b53
uni_links: 5ee5240df5cbffc52d9e7f8017a576b6a6bc5141
url_launcher: 92b89c1029a0373879933c21642958c874539095
PODFILE CHECKSUM: 530d76629cdb9b493aab7ed5604c44e4493a8f12
COCOAPODS: 1.5.3
On Dec 16, 2018, at 1:06 PM, Brad Hesse notifications@github.com wrote:
@sjmcdowall https://github.com/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
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/42#issuecomment-447663567, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8M7VcTTqBhtxB0aMXpLVwYzFG65Lwoks5u5ouggaJpZM4ZUHim.
@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?
Another useful troubleshooting step would be to create an entirely new Flutter project and see if you can integrate OneSignal using your environment.
In answer to your prior question -- we are on CocoaPods 1.5.3 which is official version Flutter supports (nothing earlier is allowed)
I do plan to try out the new beta CocoaPods .. just to see
As for the below -- yes -- I was actually going to take your example app -- and just add all the other pubspec.yaml dependencies etc. to the same app and
see if we get the same issue ..
but first.. I'll try Beta cocoapods 1.6.X
I'll keep in touch ..
On Dec 16, 2018, at 11:04 PM, Brad Hesse notifications@github.com wrote:
Another useful troubleshooting step would be to create an entirely new Flutter project and see if you can integrate OneSignal using your environment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/42#issuecomment-447716624, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8M7VeuPKr06WSvERhKJiMQjMGvDOSnks5u5xflgaJpZM4ZUHim.
As a semi follow up -- I am looking more closely at the compile error and it's NOT from the Pod stuff at all .. it's the main Runner project and the Target within that ..
We need to figure out a way to get this Target in runner to be AFTER the Pod's Project
=== BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug ===
=== BUILD TARGET OneSignalNotificationServiceExtension OF PROJECT Runner WITH CONFIGURATION Debug ===
Check dependencies
Write auxiliary files
write-file /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServic
eExtension.build/Script-CC091B9B7253D21F00764737.sh
chmod 0755 /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Script-CC091B9B7253D21F00764737.sh
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.plist
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/Development/flutter/bin:/Users/sjm/.fastlane/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:.:/usr/local/opt/go/libexec/bin"
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
ProcessProductPackaging "" /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/OneSignalNotificationServiceExtension.appex-Simulated.xcent
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/Development/flutter/bin:/Users/sjm/.fastlane/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:.:/usr/local/opt/go/libexec/bin"
Entitlements:
{
"application-identifier" = "LVZ24S452F.com.missionmode.mobile.OneSignalNotificationServiceExtension";
"com.apple.security.application-groups" = (
"group.com.missionmode.mobile.onesignal"
);
}
builtin-productPackagingUtility -entitlements -format xml -o /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/OneSignalNotificationServiceExtension.appex-Simulated.xcent
PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Script-CC091B9B7253D21F00764737.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/OneSignalNotificationServiceExtension.build/Script-CC091B9B7253D21F00764737.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/Development/flutter/bin:/Users/sjm/.fastlane/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:.:/usr/local/opt/go/libexec/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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/mobile/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/ios/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_launcher -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/OneSignalSDK/Framework -filelist /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -mios-simulator-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /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)
Steven McDowall - VP Engineering
MissionMode
20 West Kinzie Street, Suite 1420
Chicago, IL 60654
tel +1.336.608.2001
Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain sensitive and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
On Dec 17, 2018, at 8:44 AM, Steven McDowall steve@accendi.com wrote:
In answer to your prior question -- we are on CocoaPods 1.5.3 which is official version Flutter supports (nothing earlier is allowed)
I do plan to try out the new beta CocoaPods .. just to see
As for the below -- yes -- I was actually going to take your example app -- and just add all the other pubspec.yaml dependencies etc. to the same app and
see if we get the same issue ..but first.. I'll try Beta cocoapods 1.6.X
I'll keep in touch ..
On Dec 16, 2018, at 11:04 PM, Brad Hesse <[email protected] notifications@github.com> wrote:
Another useful troubleshooting step would be to create an entirely new Flutter project and see if you can integrate OneSignal using your environment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/42#issuecomment-447716624, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8M7VeuPKr06WSvERhKJiMQjMGvDOSnks5u5xflgaJpZM4ZUHim.
@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.
OK -- was just about to write you !
Here is the screenshot of the vanilla thing you wanted (see below)
However, I was hacking around -- and for fun I added ALL the damn libraries in the Pod project to the dependency of the OneSignal target ... (which I removed for the screen shot)
However -- damn it -- now that I've done all this -- I can't reproduce the issue -- which I guess is good gnus?
Sigh
/Steve
On Dec 17, 2018, at 1:47 PM, Brad Hesse notifications@github.com wrote:
@sjmcdowall https://github.com/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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/42#issuecomment-447954886, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8M7UBAE9pPE7HQX_foI9Rz8JbVsKJbks5u5-bCgaJpZM4ZUHim.
Hi @sjmcdowall, sorry for the slowdown during the holidays. What's the status of this issue currently?
As long as I put some of the Pod dependencies in the target for OneSignal it compiles fine .. just keeping with that for now
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.
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!
@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 ..
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:
````
platform :ios, '10.2'
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!
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
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...

Omw home now but will give it a go as soon as I arrive !
Will let you know ASAP!
Thanks ! 🙏
On Thu, 31 Jan 2019 at 20:34, S McDowall notifications@github.com wrote:
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...[image: screen shot 2019-01-31 at 2 29 10 pm]
https://user-images.githubusercontent.com/2034925/52080238-49b47a80-2565-11e9-8540-33da757d071c.png—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/42#issuecomment-459476383,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMJb5aMAAngxYdND8hsUU7E-NSra1gSqks5vI0VPgaJpZM4ZUHim
.
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!
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.

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 ! 🙏
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!
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..
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.
Not sure this will help but ..
1 -- if you haven't make sure to do a flutter upgrade ..
2 -- what flutter channel are you on? We are on "beta"
3 -- we are using cocoapods 1.6.0
4 -- we had to set our SWIFT to 4.0 not 4.2 -- but some had to do 4.2 so YMMV
That error log doesn't appear to have any errors only wanrings?
maybe do a "flutter run -v" to get more verbose errors -- especially at the bottom?
What's your project (in the Xcode files) version # set to? Some of thos warnings appear .. odd.. if you are targeting 10.2 or whatever..
On Feb 12, 2019, at 3:23 PM, Nívea Melo notifications@github.com wrote:
Hello,
I ended up with the same problem of you guys @lifenautjoe https://github.com/lifenautjoe and @sjmcdowall https://github.com/sjmcdowall and tried the work-around mentioned in this comment https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/42#issuecomment-459476383. 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
And this is the error I got
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/42#issuecomment-462919612, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8M7VF8Q0PMwXh72bE4yhI9x0qHW2LMks5vMyKwgaJpZM4ZUHim.
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.


Honestly -- I think this is beyond anything to do with OneSignal .. And nothing similar with what we others have run into ..
1 -- Does this run/work on Android ? I.e. target an Android simulator with your "flutter run"
2 -- Does this work WITHOUT OneSignal at all?
3 -- Does this work WITH OneSignal but without the Swift Plugin(s) you have?
My gut is telling me something is odd about one or more of your OTHER plugins ...
On Feb 12, 2019, at 6:07 PM, Nívea Melo notifications@github.com wrote:
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
I'm also attaching two images showing both the error and the linked frameworks in xcode - in case that helps on something.https://user-images.githubusercontent.com/24644618/52674003-4e2b4c80-2ef0-11e9-8e28-da62d65d6f3d.png
https://user-images.githubusercontent.com/24644618/52674023-584d4b00-2ef0-11e9-9a5e-0391a65b931e.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/42#issuecomment-462976752, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8M7Xf1N_02PFIOAW-j8KRG5jTIjkjwks5vM0kWgaJpZM4ZUHim.
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.
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.
I Fixed with this line in ubspec.yaml
onesignal: 1.0.0
Because with onesignal: ^1.0.0 use onesignal 1.0.5 and it creates the problem
@Allan-Nava - I am running 1.0.4 without problems.. may want to try that -- and also -- post this as a NEW issue? Doesn't seem related to this original issue at all... which is CLOSED.. so @Nightsd01 may not even look at it
Ok thanks, I will try
Il giorno ven 15 feb 2019 alle 16:01 S McDowall notifications@github.com
ha scritto:
@Allan-Nava https://github.com/Allan-Nava - I am running 1.0.4 without
problems.. may want to try that -- and also -- post this as a NEW issue?
Doesn't seem related to this original issue at all... which is CLOSED.. so
@Nightsd01 https://github.com/Nightsd01 may not even look at it—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/42#issuecomment-464080638,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVdMg6Y2Xe4xgG1chriKqRoSP2_WiBYQks5vNsvSgaJpZM4ZUHim
.
L/Users/vivekmohan/Work/flutter/projects/demogorgon/build/ios/Debug-iphoneos/url_launcher'
ld: library not found for -lBoringSSL-GRPC
clang: error: linker command failed with exit code 1 (use -v to see invocation)
EDIT: shortened to error
@vmwsree -- You are posting to a Closed issue. Open a new one. However, it appears you are hitting the same issue I did and solved above. Please read my notes above on how to (maybe) solve this by adding a bunch of dependencies to the OneSignal Target in XCode.
Well crap, now I'm trying to use a swift plugin and all hell breaks loose.
Yeah -- don't do that! :) Seriously what plugin? Maybe there are others that do the same that aren't Swift? And "what all hell" is breaking loose? Although I can imagine...
I seriously think One Signal Team is being irresponsible now, Its your project and please fix these, I have been waiting for more than 6 months. Better not at all use one signal SDK. Thats one call i would advocate everyone, because it just messeup ur project
hello, since I'm using the library: flutter printing, which obeys me to use runner useFramework! in my project, how can I solve with onesignal since it doesn't support useFramework!
I don't honestly remember if I have a Swift plugin in anymore -- I did have one and had some issues -- but in any event here is my Pod file for the project that is working ... note it doesn't enable swift per se but it does have some logic for Swift at the bottom .. maybe give it a try?
# 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
i had try but not work =(
Out of curiosity what happens if you do use "use_frameworks!" ?? Maybe it just works now?
if i use use_frameworks! only target runner , show me this error:
Resolving dependencies of Podfile
[!] Unable to integrate the following embedded targets with their respective host targets (a host target is a "parent"
target which embeds a "child" target like a framework or extension):
- Runner (true) and OneSignalNotificationServiceExtension (false) do not both set use_frameworks!.
if i add use_frameworks! also below target OneSignalNotificationServiceExtension show me this error:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Encountered error while building for device.
Hi all,
I know this is frustrating. But there's nothing we can currently do except show interest in getting this fixed to the folks at Cocoapods. Follow the issue here: https://github.com/CocoaPods/CocoaPods/issues/8246
@rgomezp but if instead I insert the script for onesignal in swift instead of object c, could it work? , or any workaround is impossible now?
@brux88 -- Have you actually created a paid OneSignal account (even at the minimum level) and submitted an actual support ticket? They get a different channel and response than from here.
no i have free account, but i think this common problem for all
That's right. Getting prioritized support won't be of help in this case. I actually tried to get the folks at CocoaPods to take another look at that issue #8246 but not enough people are commenting on it so who knows when they will give it any attention. Once again, sorry about the inconvenience this has caused folks. For now, I recommend y'all try to get them to prioritize the issue.
@Nightsd01 any insight here?
Same problem,
Launching lib/main.dart on iPhone Xs Max in debug mode...
Xcode build done. 2.1s Failed to build iOS app
Error output from Xcode build:
↳
* BUILD FAILED *
Xcode's output:
↳
Files/OneSignal/onesignal-prefix.pch"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include "/Users/roger/flutter/FlutterGoogleMaps/ios/Pods/Target Support Files/onesignal/onesignal-prefix.pch"
^~~~~~~~~~~~~~~~~~~~~
"/Users/roger/flutter/FlutterGoogleMaps/ios/Pods/Target Support Files/OneSignal/onesignal-prefix.pch"
In file included from
/Users/roger/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.1.0/ios/Classes/OneSignalCategories.m:28:
/Users/roger/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.1.0/ios/Classes/OneSignalCategories.h:28:9: fatal error:
'OneSignal/OneSignal.h' file not found
#import
^~~~~~~
1 warning and 1 error generated.
Could not build the application for the simulator.
I am not positive this is the exact same issue -- are you sure you went through all the steps in the (quite long) .. If nothing else run with a -v ... "flutter run -v" and that will give a LOT of info .. but I think this is something a bit different than the linking errors?
@sjmcdowall ,
Yea, seems to be the same issue. But different results. One being a linking issue, the other being headers. Both path issues due to Cocoapods not handling projects with both Swift and Objective-C.
@rgomezp before than flutter, I was developing in Ionic, and this issue ever solves with pod install, pod setup etc but now with flutter I haven't success, I followed all official flutter documentation from oneSignal, and removed use_frameworks from podfile etc
What error are you getting??
Anything interesting running with -v ??
Sent from my iPad
On Apr 17, 2019, at 6:43 PM, Rogelio Trejo notifications@github.com wrote:
@rgomezp before then flutter, I was developing in Ionic, and this issue ever solves with pod install, pod setup etc but now with flutter I haven't success, I followed all official flutter documentation from oneSignal, and removed use_frameworks from podfile etc
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
@sjmcdowall anything else, same error file not found
@rogeliotrejo13 ,
Estas usando swift?
@rgomezp Si, estoy usando Swift, se creo por default mi proyecto así.
@rogeliotrejo13 ,
Puedes intentar usar esto en tu pubspec.yaml:
onesignalflutter:
git: git://github.com/jmrobles/OneSignal-Flutter-SDK.git
en vez de la referencia a onesignal ?
Gracias @rgomezp esa fue la la solución 😁
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
Can we use onesignal sdk without extension for time being?
@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!.
@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
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.
@sjmcdowall
Maybe you can help, what to do if I have one swift plugin and he need BITCODE on https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/157 ?
@Goolpe -- Alas I haven't used this library in 10 months .. or Flutter since moving to a new job. Sorry
We just released onesignal_flutter 2.0.0 which should fix the header issue when you have
use_frameworks!in yourPodfile. Make sure to follow the migration guide in the release notes.
It does not fix the issue.
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
Issue still exists...
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 👏
IOS version in build phases of pod(in xcode) and ios version in pod file should be same (Try with 9.0)
Most helpful comment
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...