I am facing weird errors when trying to build my project for the simulator with xcodebuild (It works fine when building directly with Xcode).
09:54:55 - tito#lt0311 Game> xcrun xcodebuild -verbose -scheme Game -configuration Debug -sdk iphoneos9.2 -derivedDataPath builds clean build | xcpretty
▸ Cleaning Game/Game [Debug]
▸ Check Dependencies
▸ Clean Succeeded
▸ Building Game/Game [Debug]
▸ Check Dependencies
▸ Compiling AppDelegate.m
▸ Compiling main.m
▸ Compiling ViewController.m
▸ Compiling ViewController.m
▸ Compiling AppDelegate.m
▸ Compiling main.m
▸ Compiling Main.storyboard
▸ Compiling LaunchScreen.storyboard
▸ Processing Info.plist
▸ Touching Game.app
▸ Signing builds/Build/Products/Debug-iphoneos/Game.app
▸ Build Succeeded
09:55:06 - tito#lt0311 Game> xcrun xcodebuild -verbose -scheme Game -configuration Debug -sdk iphonesimulator9.2 -derivedDataPath builds clean build | xcpretty
▸ Cleaning Game/Game [Debug]
▸ Check Dependencies
▸ Clean Succeeded
▸ Building Game/Game [Debug]
▸ Check Dependencies
▸ Compiling ViewController.m
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/cdefs.h:707:2: Unsupported architecture
#error Unsupported architecture
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/machine/_types.h:34:2: architecture not supported
#error architecture not supported
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:55:9: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:56:9: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:57:9: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:60:9: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:61:9: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:62:9: unknown type name '__uint64_t'; did you mean 'uint64_t'?
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:68:9: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:70:9: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:71:9: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:72:9: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:73:9: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:74:9: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:75:9: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:76:9: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types/_intptr_t.h:30:9: unknown type name '__darwin_intptr_t'
typedef __darwin_intptr_t intptr_t;
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/_types.h:42:9: unknown type name '__uint32_t'
typedef __uint32_t __darwin_wctype_t;
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types/_size_t.h:30:9: unknown type name '__darwin_size_t'; did you mean '__darwin_ino_t'?
typedef __darwin_size_t size_t;
^
❌ fatal error: too many errors emitted, stopping now [-ferror-limit=]
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h:8:9: could not build module 'Darwin'
#import <Availability.h>
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: could not build module 'Darwin'
#include <sys/types.h>
~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/objc/objc.h:31:10: could not build module 'Darwin'
#include <sys/types.h> // for __DARWIN_NULL
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/mach-o/arch.h:32:10: could not build module 'Darwin'
#include <stdint.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/dispatch/dispatch.h:25:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/os/base.h:24:10: could not build module 'Darwin'
#include <sys/cdefs.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:32:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:8:10: could not build module 'Darwin'
#include <stdbool.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:10:10: could not build module 'Darwin'
#include <TargetConditionals.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:16:10: could not build module 'Darwin'
#include <TargetConditionals.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h:12:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:10: could not build module 'Darwin'
#include <stdbool.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: could not build module 'Foundation'
#include <Foundation/Foundation.h>
~~~~~~~~^
❌ /Users/tito/Documents/workspace/Game/Game/ViewController.h:9:9: could not build module 'UIKit'
#import <UIKit/UIKit.h>
~~~~~~~~^
▸ Compiling AppDelegate.m
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/cdefs.h:707:2: Unsupported architecture
#error Unsupported architecture
~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/machine/_types.h:34:2: architecture not supported
#error architecture not supported
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:55:9: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:56:9: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:57:9: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:60:9: unknown type name '__uint32_t'; did you mean 'uint32_t'?
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:61:9: unknown type name '__uint32_t'; did you mean 'uint32_t'?
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:62:9: unknown type name '__uint64_t'; did you mean 'uint64_t'?
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:68:9: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:70:9: unknown type name '__uint16_t'; did you mean 'uint16_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:71:9: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:72:9: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:73:9: unknown type name '__uint32_t'; did you mean 'uint32_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:74:9: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:75:9: unknown type name '__uint32_t'; did you mean 'uint32_t'?
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types.h:76:9: unknown type name '__uint32_t'; did you mean 'uint32_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types/_intptr_t.h:30:9: unknown type name '__darwin_intptr_t'
typedef __darwin_intptr_t intptr_t;
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types/_size_t.h:30:9: unknown type name '__darwin_size_t'
typedef __darwin_size_t size_t;
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/_types/_ct_rune_t.h:31:9: unknown type name '__darwin_ct_rune_t'; did you mean '__darwin_wctrans_t'?
typedef __darwin_ct_rune_t ct_rune_t;
^
❌ fatal error: too many errors emitted, stopping now [-ferror-limit=]
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h:8:9: could not build module 'Darwin'
#import <Availability.h>
^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: could not build module 'Darwin'
#include <sys/types.h>
~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/objc/objc.h:31:10: could not build module 'Darwin'
#include <sys/types.h> // for __DARWIN_NULL
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/mach-o/arch.h:32:10: could not build module 'Darwin'
#include <stdint.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/dispatch/dispatch.h:25:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/os/base.h:24:10: could not build module 'Darwin'
#include <sys/cdefs.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:32:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:8:10: could not build module 'Darwin'
#include <stdbool.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:10:10: could not build module 'Darwin'
#include <TargetConditionals.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:16:10: could not build module 'Darwin'
#include <TargetConditionals.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h:12:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:10: could not build module 'Darwin'
#include <stdbool.h>
~~~~~~~~^
❌ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: could not build module 'Foundation'
#include <Foundation/Foundation.h>
~~~~~~~~^
❌ /Users/tito/Documents/workspace/Game/Game/AppDelegate.h:9:9: could not build module 'UIKit'
#import <UIKit/UIKit.h>
~~~~~~~~^
▸ Compiling main.m
▸ Compiling AppDelegate.m
** BUILD FAILED **
The following build commands failed:
CompileC builds/Build/Intermediates/Game.build/Debug-iphoneos/Game.build/Objects-normal/arm64/ViewController.o Game/ViewController.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC builds/Build/Intermediates/Game.build/Debug-iphoneos/Game.build/Objects-normal/armv7/AppDelegate.o Game/AppDelegate.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
This commands have been executed on a project that I had just created with Xcode7.2.
Does anyone know how to solve these errors?
On the apple forums user inside found another workaround:
Pass PLATFORM_NAME=iphonesimulator to xcodebuild, in addition to
-sdk iphonesimulator.
By this way you're not related to simulator name or id.
https://forums.developer.apple.com/thread/27975
The workaround is to specify the destination parameter when building -
xcodebuild ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -workspace "${PROJECT_NAME}.xcworkspace" -scheme "${TARGET_NAME}" -sdk iphonesimulator BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" **-destination 'platform=iOS Simulator,id=DC050A0D-6041-40F5-9D0E-EAEFA1D1EA42,OS=9.2'** clean build
(Replace the "id" with name such as name=iPhone 6 if you have only one simulator of that specific type)
Related
While integrating SQLCipher with cocoapods I’m getting multiple redefinition errors.
Version: 4.5.2
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:723:8: error: redefinition of 'sqlite3_file'
struct sqlite3_file {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:735:8: note: previous definition is here
struct sqlite3_file {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:822:8: error: redefinition of 'sqlite3_io_methods'
struct sqlite3_io_methods {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:834:8: note: previous definition is here
struct sqlite3_io_methods {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:1427:8: error: redefinition of 'sqlite3_vfs'
struct sqlite3_vfs {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:1439:8: note: previous definition is here
struct sqlite3_vfs {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:1724:8: error: redefinition of 'sqlite3_mem_methods'
struct sqlite3_mem_methods {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:1736:8: note: previous definition is here
struct sqlite3_mem_methods {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:6999:8: error: redefinition of 'sqlite3_module'
struct sqlite3_module {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:6885:8: note: previous definition is here
struct sqlite3_module {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7139:8: error: redefinition of 'sqlite3_index_info'
struct sqlite3_index_info {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7025:8: note: previous definition is here
struct sqlite3_index_info {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7142:10: error: redefinition of 'sqlite3_index_constraint'
struct sqlite3_index_constraint {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7028:10: note: previous definition is here
struct sqlite3_index_constraint {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7149:10: error: redefinition of 'sqlite3_index_orderby'
struct sqlite3_index_orderby {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7035:10: note: previous definition is here
struct sqlite3_index_orderby {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7154:10: error: redefinition of 'sqlite3_index_constraint_usage'
struct sqlite3_index_constraint_usage {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7040:10: note: previous definition is here
struct sqlite3_index_constraint_usage {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7285:8: error: redefinition of 'sqlite3_vtab'
struct sqlite3_vtab {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7171:8: note: previous definition is here
struct sqlite3_vtab {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7309:8: error: redefinition of 'sqlite3_vtab_cursor'
struct sqlite3_vtab_cursor {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7195:8: note: previous definition is here
struct sqlite3_vtab_cursor {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:7814:8: error: redefinition of 'sqlite3_mutex_methods'
struct sqlite3_mutex_methods {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:7699:8: note: previous definition is here
struct sqlite3_mutex_methods {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:8570:8: error: redefinition of 'sqlite3_pcache_page'
struct sqlite3_pcache_page {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:8445:8: note: previous definition is here
struct sqlite3_pcache_page {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:8735:8: error: redefinition of 'sqlite3_pcache_methods2'
struct sqlite3_pcache_methods2 {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:8610:8: note: previous definition is here
struct sqlite3_pcache_methods2 {
^
<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "sqlite3ext.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3ext.h:20:
#include <sqlite3.h>
^
/Users/mukeshyadav/Library/Developer/Xcode/DerivedData/MindTickle-buzymtagwbmstehjmknrjcjxuysn/Build/Products/Debug-iphonesimulator/SQLCipher/SQLCipher.framework/Headers/sqlite3.h:8758:8: error: redefinition of 'sqlite3_pcache_methods'
struct sqlite3_pcache_methods {
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/sqlite3.h:8633:8: note: previous definition is here
struct sqlite3_pcache_methods {
^
<unknown>:0: error: could not build Objective-C module 'SQLite3'
I've just added SQLCipher pod in pod file
pod 'SQLCipher'
Other pods I am using are AWSS3, FirebaseAnalytics, Mixpanel etc.
I'm looking to add the firebase_messaging 7.0.3 package to add Push Notifications to my project. I've configured it for Android and it's working like a charm. Getting the Registration Token and can push notifications to my emulator and phone no problem.
Now, when I run the iOS build it fails on finding protocol declaration for 'FIRMessagingDelegate'. From what I understand the FIR- prefix has been removed some time ago and should now just be called MessagingDelegate.
I've ran both pod install and update and tried cleaning flutter.
flutter clean
pod install
pod update
Also, tried to add Firebase-Messaging to my Podfile version less and trying older versions to no avail.
I followed all the steps in the iOS configuration at: https://pub.dev/packages/firebase_messaging and tried it with method swizzling and without. I've ran out of options to try, perhaps some dependencies are not using the right version of firebase someplace but I'm not really sure how to check for those.
Here's the Stack Trace from the build:
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 56.0s
Failed to build iOS app
Error output from Xcode build:
↳
2021-02-08 16:55:26.766 xcodebuild[37625:1544731] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTDKRemoteDeviceData.m:371
Details: (null) deviceType from 00008030-000E78DC3C81802E was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x7fdc6daa9710>
Method: -platform
Thread: <NSThread: 0x7fdc6d00f3d0>{number = 2, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **
Xcode's output:
↳
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:14:43: error: cannot find protocol declaration for 'FIRMessagingDelegate'
#interface FLTFirebaseMessagingPlugin () <FIRMessagingDelegate>
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:190:43: error: expected a type
- (void)applicationReceivedRemoteMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:284:28: error: expected a type
- (void)messaging:(nonnull FIRMessaging *)messaging
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:289:20: error: expected a type
- (void)messaging:(FIRMessaging *)messaging
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:290:24: error: expected a type
didReceiveMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:55:6: error: use of undeclared identifier 'FIRMessaging'
[FIRMessaging messaging].delegate = self;
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:136:6: error: use of undeclared identifier 'FIRMessaging'
[FIRMessaging messaging].shouldEstablishDirectChannel = true;
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:144:7: error: use of undeclared identifier 'FIRMessaging'
[[FIRMessaging messaging] subscribeToTopic:topic
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:150:7: error: use of undeclared identifier 'FIRMessaging'
[[FIRMessaging messaging] unsubscribeFromTopic:topic
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:155:21: warning: 'FIRInstanceID' is deprecated: FIRInstanceID is deprecated, please use FIRInstallations for installation identifier handling and use FIRMessaging for FCM registration token handling. [-Wdeprecated-declarations]
[[FIRInstanceID instanceID]
^
In module 'FirebaseInstanceID' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:190:1: note: 'FIRInstanceID' has been explicitly marked deprecated here
__deprecated_msg("FIRInstanceID is deprecated, please use FIRInstallations for installation "
^
In module 'UIKit' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:156:33: warning: 'FIRInstanceIDResult' is deprecated: FIRInstanceIDResult is deprecated, please use FIRInstallations for app instance identifier handling and use FIRMessaging for FCM registration token handling. [-Wdeprecated-declarations]
instanceIDWithHandler:^(FIRInstanceIDResult *_Nullable instanceIDResult,
^
In module 'FirebaseInstanceID' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:153:1: note: 'FIRInstanceIDResult' has been explicitly marked deprecated here
__deprecated_msg("FIRInstanceIDResult is deprecated, please use FIRInstallations "
^
In module 'UIKit' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:156:9: warning: 'instanceIDWithHandler:' is deprecated: Use `Installations.installationID(completion:)` to get the app instance identifier instead. Use `Messaging.token(completion:)` to get FCM registration token instead. [-Wdeprecated-declarations]
instanceIDWithHandler:^(FIRInstanceIDResult *_Nullable instanceIDResult,
^
In module 'FirebaseInstanceID' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:215:5: note: 'instanceIDWithHandler:' has been explicitly marked deprecated here
__deprecated_msg("Use `Installations.installationID(completion:)` to get the app instance "
^
In module 'UIKit' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:166:21: warning: 'FIRInstanceID' is deprecated: FIRInstanceID is deprecated, please use FIRInstallations for installation identifier handling and use FIRMessaging for FCM registration token handling. [-Wdeprecated-declarations]
[[FIRInstanceID instanceID] deleteIDWithHandler:^void(NSError *_Nullable error) {
^
In module 'FirebaseInstanceID' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:190:1: note: 'FIRInstanceID' has been explicitly marked deprecated here
__deprecated_msg("FIRInstanceID is deprecated, please use FIRInstallations for installation "
^
In module 'UIKit' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:166:33: warning: 'deleteIDWithHandler:' is deprecated: Use `Installations.delete(completion:)` instead. Also check `Messaging.deleteData(completion:)`if you want to delete FCM registration token. [-Wdeprecated-declarations]
[[FIRInstanceID instanceID] deleteIDWithHandler:^void(NSError *_Nullable error) {
^
In module 'FirebaseInstanceID' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:321:33: note: 'deleteIDWithHandler:' has been explicitly marked deprecated here
__deprecated_msg("Use `Installations.delete(completion:)` instead. "
^
In module 'UIKit' imported from /Users/peterpoliwoda/Development/git/bd4qol_mobile_app/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:176:20: error: use of undeclared identifier 'FIRMessaging'
BOOL value = [[FIRMessaging messaging] isAutoInitEnabled];
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:180:6: error: use of undeclared identifier 'FIRMessaging'
[FIRMessaging messaging].autoInitEnabled = value.boolValue;
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:191:52: error: property 'appData' not found on object of type '__strong id'
[self didReceiveRemoteNotification:remoteMessage.appData];
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:204:7: error: use of undeclared identifier 'FIRMessaging'
[[FIRMessaging messaging] appDidReceiveMessage:userInfo];
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:263:5: error: use of undeclared identifier 'FIRMessaging'
[[FIRMessaging messaging] setAPNSToken:deviceToken type:FIRMessagingAPNSTokenTypeSandbox];
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:268:48: error: use of undeclared identifier 'FIRMessaging'
[_channel invokeMethod:#"onToken" arguments:[FIRMessaging messaging].FCMToken];
^
/Users/peterpoliwoda/Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-7.0.3/ios/Classes/FLTFirebaseMessagingPlugin.m:291:63: error: property 'appData' not found on object of type '__strong id'
[_channel invokeMethod:#"onMessage" arguments:remoteMessage.appData];
^
5 warnings and 16 errors generated.
$ flutter --version
Flutter 1.22.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9b2d32b605 (3 weeks ago) • 2021-01-22 14:36:39 -0800
Engine • revision 2f0af37152
Tools • Dart 2.10.5
Here is the log from vscode
Launching lib/main.dart on iPhone 11 in debug mode...
Running pod install... 3.9s
Running Xcode build...
Xcode build done. 10.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/abdurrohman/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:195:43: error: expected a type
- (void)applicationReceivedRemoteMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
/Users/abdurrohman/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:302:53: error: nullability specifier 'nonnull' conflicts with
existing specifier 'nullable'
didReceiveRegistrationToken:(nonnull NSString *)fcmToken {
^
/Users/abdurrohman/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:307:24: error: expected a type
didReceiveMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
/Users/abdurrohman/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:141:30: error: property 'shouldEstablishDirectChannel' not
found on object of type 'FIRMessaging *'
[FIRMessaging messaging].shouldEstablishDirectChannel = true;
^
/Users/abdurrohman/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:160:21: warning: 'FIRInstanceID' is deprecated: FIRInstanceID
is deprecated, please use FIRInstallations for installation identifier handling and use FIRMessaging for FCM registration token handling. [-Wdeprecated-declarations]
[[FIRInstanceID instanceID]
^
In module 'FirebaseInstanceID' imported from /Users/abdurrohman/bsi/flutter_firebase/ios/Pods/Headers/Public/Firebase/Firebase.h:74:
/Users/abdurrohman/bsi/flutter_firebase/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:190:1: note: 'FIRInstanceID' has been explicitly marked deprecated here
__deprecated_msg("FIRInstanceID is deprecated, please use FIRInstallations for installation "
^
In module 'UIKit' imported from /Users/abdurrohman/bsi/flutter_firebase/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation
.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFo
undation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro
'__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/abdurrohman/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:161:33: warning: 'FIRInstanceIDResult' is deprecated:
FIRInstanceIDResult is deprecated, please use FIRInstallations for app instance identifier handling and use FIRMessaging for FCM registration token handling.
[-Wdeprecated-declarations]
instanceIDWithHandler:^(FIRInstanceIDResult *_Nullable instanceIDResult,
^
In module 'FirebaseInstanceID' imported from /Users/abdurrohman/bsi/flutter_firebase/ios/Pods/Headers/Public/Firebase/Firebase.h:74:
/Users/abdurrohman/bsi/flutter_firebase/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:153:1: note: 'FIRInstanceIDResult' has been explicitly marked
deprecated here
__deprecated_msg("FIRInstanceIDResult is deprecated, please use FIRInstallations "
^
In module 'UIKit' imported from /Users/abdurrohman/bsi/flutter_firebase/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation
.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFo
undation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro
'__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/abdurrohman/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:161:9: warning: 'instanceIDWithHandler:' is deprecated: Use
`Installations.installationID(completion:)` to get the app instance identifier instead. Use `Messaging.token(completion:)` to get FCM registration token instead.
[-Wdeprecated-declarations]
instanceIDWithHandler:^(FIRInstanceIDResult *_Nullable instanceIDResult,
^
In module 'FirebaseInstanceID' imported from /Users/abdurrohman/bsi/flutter_firebase/ios/Pods/Headers/Public/Firebase/Firebase.h:74:
/Users/abdurrohman/bsi/flutter_firebase/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:215:5: note: 'instanceIDWithHandler:' has been explicitly marked
deprecated here
__deprecated_msg("Use `Installations.installationID(completion:)` to get the app instance "
^
In module 'UIKit' imported from /Users/abdurrohman/bsi/flutter_firebase/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation
.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFo
undation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro
'__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/abdurrohman/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:171:21: warning: 'FIRInstanceID' is deprecated: FIRInstanceID
is deprecated, please use FIRInstallations for installation identifier handling and use FIRMessaging for FCM registration token handling. [-Wdeprecated-declarations]
[[FIRInstanceID instanceID] deleteIDWithHandler:^void(NSError *_Nullable error) {
^
In module 'FirebaseInstanceID' imported from /Users/abdurrohman/bsi/flutter_firebase/ios/Pods/Headers/Public/Firebase/Firebase.h:74:
/Users/abdurrohman/bsi/flutter_firebase/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:190:1: note: 'FIRInstanceID' has been explicitly marked deprecated here
__deprecated_msg("FIRInstanceID is deprecated, please use FIRInstallations for installation "
^
In module 'UIKit' imported from /Users/abdurrohman/bsi/flutter_firebase/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation
.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFo
undation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro
'__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/abdurrohman/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:171:33: warning: 'deleteIDWithHandler:' is deprecated: Use
`Installations.delete(completion:)` instead. Also check `Messaging.deleteData(completion:)`if you want to delete FCM registration token. [-Wdeprecated-declarations]
[[FIRInstanceID instanceID] deleteIDWithHandler:^void(NSError *_Nullable error) {
^
In module 'FirebaseInstanceID' imported from /Users/abdurrohman/bsi/flutter_firebase/ios/Pods/Headers/Public/Firebase/Firebase.h:74:
/Users/abdurrohman/bsi/flutter_firebase/ios/Pods/FirebaseInstanceID/Firebase/InstanceID/Public/FIRInstanceID.h:321:33: note: 'deleteIDWithHandler:' has been explicitly marked
deprecated here
__deprecated_msg("Use `Installations.delete(completion:)` instead. "
^
In module 'UIKit' imported from /Users/abdurrohman/bsi/flutter_firebase/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation
.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFo
undation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro
'__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
^
/Users/abdurrohman/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:196:52: error: property 'appData' not found on object of type
'__strong id'
[self didReceiveRemoteNotification:remoteMessage.appData];
^
/Users/abdurrohman/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:308:63: error: property 'appData' not found on object of type
'__strong id'
[_channel invokeMethod:#"onMessage" arguments:remoteMessage.appData];
^
5 warnings and 6 errors generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
'FirebaseFirestore' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
'firebase_messaging' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 11.
#SOLVED
References:
https://firebase.flutter.dev/docs/messaging/overview
https://github.com/MaikuB/flutter_local_notifications/issues/1004
I got some error on iOS setup and this is my solved setup on Podfile.
# Uncomment this line to define a global platform for your project
platform :ios, '11.0'
$FirebaseSDKVersion = '8.3.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
When i check on Android, i got some new error again. Some problem come from Firebase initialization on Activity and Application. This is my solved setup on Android.
MainApplication.kt
package id.refactory.flutter_firebase
import android.content.Context
import androidx.multidex.MultiDex
import com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin
import io.flutter.app.FlutterApplication
import io.flutter.plugin.common.PluginRegistry
import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback
import io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingPlugin
import io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingBackgroundService;
class MainApplication : FlutterApplication(), PluginRegistrantCallback {
override fun onCreate() {
super.onCreate()
FlutterFirebaseMessagingBackgroundService.setPluginRegistrant(this)
}
override fun attachBaseContext(base: Context) {
super.attachBaseContext(base)
MultiDex.install(this)
}
override fun registerWith(registry: PluginRegistry?) {
FlutterFirebaseMessagingPlugin.registerWith(registry?.registrarFor("io.flutter.plugins.firebase.messaging.FirebaseMessagingPlugin"))
FlutterLocalNotificationsPlugin.registerWith(registry?.registrarFor("com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin"))
}
}
MainActivity.kt
package id.refactory.flutter_firebase
import android.os.Bundle
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant
class MainActivity: FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
}
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
GeneratedPluginRegistrant.registerWith(flutterEngine)
}
}
Hope you all guys solve your problem that related with this question.
I am this error while building for device for iOS in flutter repeatedly, I have tried many things but no resolution yet. This issue is occurring with flutter firebase project and the release is stuck for more than 4 days. I need updated guide for me to resolve this issue as soon as possible
I have updated the flutter and current versions are Flutter 1.20.3 and dart 2.9.2
2020-09-05 12:53:42.052 xcodebuild[72084:478348] warning: The file
reference for
"Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h"
is a member
of multiple groups ("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved
(but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another
reference to the same path.
2020-09-05 12:53:42.052 xcodebuild[72084:478348] warning: The file reference for
"Objective-C/TOCropViewController/Views/TOCropOverlayView.h" is a
member of multiple
groups ("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the membership in one of the
groups will be preserved (but
membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another
reference to the same path.
2020-09-05 12:53:42.052 xcodebuild[72084:478348] warning: The file reference for
"Objective-C/TOCropViewController/Models/TOCroppedImageAttributes.h"
is a member of
multiple groups ("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be preserved (but
membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another
reference to the same path.
2020-09-05 12:53:42.052 xcodebuild[72084:478348] warning: The file reference for
"Objective-C/TOCropViewController/Views/TOCropScrollView.h" is a
member of multiple
groups ("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the membership in one of the
groups will be preserved (but
membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another
reference to the same path.
2020-09-05 12:53:42.052 xcodebuild[72084:478348] warning: The file reference for
"Objective-C/TOCropViewController/Views/TOCropToolbar.h" is a member
of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the membership in one of the
groups will be preserved (but membership in
targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same
path.
2020-09-05 12:53:42.052 xcodebuild[72084:478348] warning: The file reference for
"Objective-C/TOCropViewController/Views/TOCropView.h" is a member of
multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the membership in one of the
groups will be preserved (but membership in
targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same
path.
2020-09-05 12:53:42.052 xcodebuild[72084:478348] warning: The file reference for
"Objective-C/TOCropViewController/TOCropViewController.h" is a member
of multiple groups
("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the membership in one of the
groups will be preserved (but membership in
targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same
path.
2020-09-05 12:53:42.052 xcodebuild[72084:478348] warning: The file reference for
"Objective-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h"
is a
member of multiple groups ("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the
membership in one of the groups will be
preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add
another reference to the same path.
** BUILD FAILED **
Xcode's output: ↳
In file included from /Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.m:26:
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:328:19:
warning: empty paragraph passed to '#param'
command [-Wdocumentation]
#param sharedStyle
~~~~~~~~~~~~~~~~~^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:343:25:
warning: empty paragraph passed to '#param'
command [-Wdocumentation]
#param allowTapToDismiss
~~~~~~~~~~~~~~~~~~~~~~~^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:343:9:
warning: parameter 'allowTapToDismiss' not found
in the function declaration [-Wdocumentation]
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:343:9:
note: did you mean 'tapToDismissEnabled'?
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
tapToDismissEnabled
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:362:20:
warning: empty paragraph passed to '#param'
command [-Wdocumentation]
#param queueEnabled
~~~~~~~~~~~~~~~~~~^
4 warnings generated.
In file included from /Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.m:26:
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:328:19:
warning: empty paragraph passed to '#param'
command [-Wdocumentation]
#param sharedStyle
~~~~~~~~~~~~~~~~~^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:343:25:
warning: empty paragraph passed to '#param'
command [-Wdocumentation]
#param allowTapToDismiss
~~~~~~~~~~~~~~~~~~~~~~~^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:343:9:
warning: parameter 'allowTapToDismiss' not found
in the function declaration [-Wdocumentation]
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:343:9:
note: did you mean 'tapToDismissEnabled'?
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
tapToDismissEnabled
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:362:20:
warning: empty paragraph passed to '#param'
command [-Wdocumentation]
#param queueEnabled
~~~~~~~~~~~~~~~~~~^
4 warnings generated.
In file included from /Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/FluttertoastPlugin.m:2:
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:328:19:
warning: empty paragraph passed to '#param'
command [-Wdocumentation]
#param sharedStyle
~~~~~~~~~~~~~~~~~^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:343:25:
warning: empty paragraph passed to '#param'
command [-Wdocumentation]
#param allowTapToDismiss
~~~~~~~~~~~~~~~~~~~~~~~^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:343:9:
warning: parameter 'allowTapToDismiss' not found
in the function declaration [-Wdocumentation]
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:343:9:
note: did you mean 'tapToDismissEnabled'?
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
tapToDismissEnabled
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:362:20:
warning: empty paragraph passed to '#param'
command [-Wdocumentation]
#param queueEnabled
~~~~~~~~~~~~~~~~~~^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/FluttertoastPlugin.m:20:23:
warning: unused variable 'viewController'
[-Wunused-variable]
UIViewController *viewController =
^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/FluttertoastPlugin.m:99:21:
warning: unused variable 'topPadding'
[-Wunused-variable]
CGFloat topPadding = window.safeAreaInsets.top;
^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/FluttertoastPlugin.m:100:21:
warning: unused variable 'bottomPadding'
[-Wunused-variable]
CGFloat bottomPadding = window.safeAreaInsets.bottom;
^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/FluttertoastPlugin.m:73:19:
warning: unused variable 'size'
[-Wunused-variable]
NSNumber *size = call.arguments[#"size"];
^
8 warnings generated.
In file included from /Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/FluttertoastPlugin.m:2:
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:328:19:
warning: empty paragraph passed to '#param'
command [-Wdocumentation]
#param sharedStyle
~~~~~~~~~~~~~~~~~^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:343:25:
warning: empty paragraph passed to '#param'
command [-Wdocumentation]
#param allowTapToDismiss
~~~~~~~~~~~~~~~~~~~~~~~^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:343:9:
warning: parameter 'allowTapToDismiss' not found
in the function declaration [-Wdocumentation]
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:343:9:
note: did you mean 'tapToDismissEnabled'?
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
tapToDismissEnabled
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/UIView+Toast.h:362:20:
warning: empty paragraph passed to '#param'
command [-Wdocumentation]
#param queueEnabled
~~~~~~~~~~~~~~~~~~^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/FluttertoastPlugin.m:20:23:
warning: unused variable 'viewController'
[-Wunused-variable]
UIViewController *viewController =
^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/FluttertoastPlugin.m:99:21:
warning: unused variable 'topPadding'
[-Wunused-variable]
CGFloat topPadding = window.safeAreaInsets.top;
^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/FluttertoastPlugin.m:100:21:
warning: unused variable 'bottomPadding'
[-Wunused-variable]
CGFloat bottomPadding = window.safeAreaInsets.bottom;
^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.0.4/ios/Classes/FluttertoastPlugin.m:73:19:
warning: unused variable 'size'
[-Wunused-variable]
NSNumber *size = call.arguments[#"size"];
^
8 warnings generated.
6 warnings generated.
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:195:43:
warning:
'FIRMessagingRemoteMessage' is deprecated: FCM direct channel is deprecated, please use APNs for downstream message handling.
[-Wdeprecated-declarations]
- (void)applicationReceivedRemoteMessage:(FIRMessagingRemoteMessage
*)remoteMessage {
^
In module 'FirebaseMessaging' imported from /Users/vickky/Documents/project1/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/vickky/Documents/project1/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:219:1:
note: 'FIRMessagingRemoteMessage' has been explicitly
marked deprecated here
__deprecated_msg(
^
In module 'UIKit' imported from /Users/vickky/Documents/project1/ios/Pods/Target Support
Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h
:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoun
dation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/usr/include/sys/cdefs.h:191:48:
note: expanded from macro
'__deprecated_msg'
#define __deprecated_msg(_msg) attribute((deprecated(_msg)))
^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:307:24:
warning:
'FIRMessagingRemoteMessage' is deprecated: FCM direct channel is deprecated, please use APNs for downstream message handling.
[-Wdeprecated-declarations]
didReceiveMessage:(FIRMessagingRemoteMessage *)remoteMessage {
^
In module 'FirebaseMessaging' imported from /Users/vickky/Documents/project1/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/vickky/Documents/project1/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:219:1:
note: 'FIRMessagingRemoteMessage' has been explicitly
marked deprecated here
__deprecated_msg(
^
In module 'UIKit' imported from /Users/vickky/Documents/project1/ios/Pods/Target Support
Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h
:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoun
dation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/usr/include/sys/cdefs.h:191:48:
note: expanded from macro
'__deprecated_msg'
#define __deprecated_msg(_msg) attribute((deprecated(_msg)))
^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:141:30:
warning:
'shouldEstablishDirectChannel' is deprecated: FCM direct channel is deprecated, please use APNs channel for downstream message
delivery. [-Wdeprecated-declarations]
[FIRMessaging messaging].shouldEstablishDirectChannel = true;
^
In module 'FirebaseMessaging' imported from /Users/vickky/Documents/project1/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/vickky/Documents/project1/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:283:56:
note: 'shouldEstablishDirectChannel' has been
explicitly marked deprecated here
#property(nonatomic) BOOL shouldEstablishDirectChannel DEPRECATED_MSG_ATTRIBUTE(
^
In module 'UIKit' imported from /Users/vickky/Documents/project1/ios/Pods/Target Support
Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h
:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoun
dation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/usr/include/AvailabilityMacros.h:182:64:
note: expanded from macro
'DEPRECATED_MSG_ATTRIBUTE'
#define DEPRECATED_MSG_ATTRIBUTE(s) attribute((deprecated(s)))
^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:196:52:
warning: 'appData' is
deprecated [-Wdeprecated-declarations]
[self didReceiveRemoteNotification:remoteMessage.appData];
^
In module 'FirebaseMessaging' imported from /Users/vickky/Documents/project1/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/vickky/Documents/project1/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:226:62:
note: 'appData' has been explicitly marked deprecated
here
#property(nonatomic, readonly, strong) NSDictionary *appData DEPRECATED_ATTRIBUTE;
^
In module 'UIKit' imported from /Users/vickky/Documents/project1/ios/Pods/Target Support
Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h
:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoun
dation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/usr/include/AvailabilityMacros.h:180:60:
note: expanded from macro
'DEPRECATED_ATTRIBUTE'
#define DEPRECATED_ATTRIBUTE attribute((deprecated))
^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:306:1:
warning: implementing
deprecated method [-Wdeprecated-implementations]
- (void)messaging:(FIRMessaging *)messaging
^
In module 'FirebaseMessaging' imported from /Users/vickky/Documents/project1/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/vickky/Documents/project1/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:253:1:
note: method 'messaging:didReceiveMessage:' declared
here
- (void)messaging:(FIRMessaging *)messaging
^
/Users/vickky/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:308:63:
warning: 'appData' is
deprecated [-Wdeprecated-declarations]
[_channel invokeMethod:#"onMessage" arguments:remoteMessage.appData];
^
In module 'FirebaseMessaging' imported from /Users/vickky/Documents/project1/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Users/vickky/Documents/project1/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:226:62:
note: 'appData' has been explicitly marked deprecated
here
#property(nonatomic, readonly, strong) NSDictionary *appData DEPRECATED_ATTRIBUTE;
^
In module 'UIKit' imported from /Users/vickky/Documents/project1/ios/Pods/Target Support
Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h
:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoun
dation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk/usr/include/AvailabilityMacros.h:180:60:
note: expanded from macro
'DEPRECATED_ATTRIBUTE'
#define DEPRECATED_ATTRIBUTE attribute((deprecated))
^
6 warnings generated.
1 warning generated.
Failed to subset font; aborting.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/vickky/Documents/project1/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h
(in target 'TOCropViewController'
from project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/vickky/Documents/project1/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropOverlayView.h
(in target 'TOCropViewController' from project
'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/vickky/Documents/project1/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Models/TOCroppedImageAttributes.h
(in target 'TOCropViewController' from
project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/vickky/Documents/project1/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropScrollView.h
(in target 'TOCropViewController' from project
'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/vickky/Documents/project1/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.h
(in target 'TOCropViewController' from project
'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/vickky/Documents/project1/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropView.h
(in target 'TOCropViewController' from project 'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/vickky/Documents/project1/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewController.h
(in target 'TOCropViewController' from project
'Pods')
warning: Skipping duplicate build file in Copy Headers build phase:
/Users/vickky/Documents/project1/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h
(in target
'TOCropViewController' from project 'Pods')
Encountered error while building for device.
This is an issue with the image cropper see here: not able to build project in iOS
The way I solved it was:
I deleted the Pods folder & Podfile & Podfile.lock under the iOS folder
I ran flutter clean & flutter packages get
If it doesn't work, try the stable channel flutter channel stable, and then go back to flutter channel master and repeat the steps above in each step. Sometimes switching channels fixes things for some reason.
I'm trying to build on simulator but getting warnings and errors.
I have replaced many packages with latest version but nothing happened still getting a lots of warnings.
My MacOs version: catalina 10.15.2
flutter version:1.12.13+hotfix.5
dart version:2.7.0
flutter run output console:
Errors:
Failed to build iOS app
Error output from Xcode build:
↳
2019-12-23 14:40:27.817 XCBBuildService[82944:471889] Failed to remove:
/Users/brightrootssgruti/Library/Developer/Xcode/DerivedData/Runner-asthupoaqltbbmesqetcacindons/Build/Intermediates.noindex/XCBuil
dData/ad956668556b5ace65773807034d312f-manifest.xcbuild:
unlink(/Users/brightrootssgruti/Library/Developer/Xcode/DerivedData/Runner-asthupoaqltbbmesqetcacindons/Build/Intermediates.noindex
/XCBuildData/ad956668556b5ace65773807034d312f-manifest.xcbuild): No such file or directory (2)
2019-12-23 14:40:28.782 XCBBuildService[82944:471889] Failed to remove:
/Users/brightrootssgruti/Library/Developer/Xcode/DerivedData/Runner-asthupoaqltbbmesqetcacindons/Build/Intermediates.noindex/XCBuil
dData/ad956668556b5ace65773807034d312f-desc.xcbuild:
unlink(/Users/brightrootssgruti/Library/Developer/Xcode/DerivedData/Runner-asthupoaqltbbmesqetcacindons/Build/Intermediates.noindex
/XCBuildData/ad956668556b5ace65773807034d312f-desc.xcbuild): No such file or directory (2)
** BUILD FAILED **
Xcode's output:
Xcode's output:
↳
In file included from
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/UIView+Toast.m:26
:
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/UIView+Toast.h:32
8:19: warning: empty paragraph passed to '#param' command [-Wdocumentation]
#param sharedStyle
~~~~~~~~~~~~~~~~~^
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/UIView+Toast.h:34
3:25: warning: empty paragraph passed to '#param' command [-Wdocumentation]
#param allowTapToDismiss
~~~~~~~~~~~~~~~~~~~~~~~^
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/UIView+Toast.h:34
3:9: warning: parameter 'allowTapToDismiss' not found in the function declaration [-Wdocumentation]
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/UIView+Toast.h:34
3:9: note: did you mean 'tapToDismissEnabled'?
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
tapToDismissEnabled
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/UIView+Toast.h:36
2:20: warning: empty paragraph passed to '#param' command [-Wdocumentation]
#param queueEnabled
~~~~~~~~~~~~~~~~~~^
4 warnings generated.
In file included from
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/FluttertoastPlugi
n.m:2:
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/UIView+Toast.h:32
8:19: warning: empty paragraph passed to '#param' command [-Wdocumentation]
#param sharedStyle
~~~~~~~~~~~~~~~~~^
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/UIView+Toast.h:34
3:25: warning: empty paragraph passed to '#param' command [-Wdocumentation]
#param allowTapToDismiss
~~~~~~~~~~~~~~~~~~~~~~~^
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/UIView+Toast.h:34
3:9: warning: parameter 'allowTapToDismiss' not found in the function declaration [-Wdocumentation]
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/UIView+Toast.h:34
3:9: note: did you mean 'tapToDismissEnabled'?
#param allowTapToDismiss
^~~~~~~~~~~~~~~~~
tapToDismissEnabled
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/UIView+Toast.h:36
2:20: warning: empty paragraph passed to '#param' command [-Wdocumentation]
#param queueEnabled
~~~~~~~~~~~~~~~~~~^
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/FluttertoastPlugi
n.m:19:23: warning: unused variable 'viewController' [-Wunused-variable]
UIViewController *viewController =
^
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/FluttertoastPlugi
n.m:70:21: warning: unused variable 'topPadding' [-Wunused-variable]
CGFloat topPadding = window.safeAreaInsets.top;
^
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/FluttertoastPlugi
n.m:71:21: warning: unused variable 'bottomPadding' [-Wunused-variable]
CGFloat bottomPadding = window.safeAreaInsets.bottom;
^
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.1.0/ios/Classes/FluttertoastPlugi
n.m:48:19: warning: unused variable 'size' [-Wunused-variable]
NSNumber *size = call.arguments[#"size"];
^
8 warnings generated.
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/git/plugins-441417c2fed0ff26bf84a49ab2c5ffd2aa5487de/packages/firebase_a
uth/ios/Classes/FirebaseAuthPlugin.m:358:62: warning: implicit conversion loses integer precision: 'long' to 'int'
[-Wshorten-64-to-32]
userData[#"lastSignInTimestamp"] = [NSNumber numberWithInt:lastSignInDate];
~ ^~~~~~~~~~~~~~
1 warning generated.
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRewardedV
ideoAdWrapper.m:67:66: warning: implicit conversion loses integer precision: 'FLTRewardedVideoAdStatus' to 'int'
[-Wshorten-64-to-32]
(NSString *)rewardedStatusToString[[NSNumber numberWithInt:_rewardedStatus]];
~ ^~~~~~~~~~~~~~~
1 warning generated.
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRequestFa
ctory.m:71:13: warning: 'testDevices' is deprecated: Use GADMobileAds.sharedInstance.requestConfiguration.testDeviceIdentifiers.
[-Wdeprecated-declarations]
request.testDevices = testDevices;
^
In module 'GoogleMobileAds' imported from
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRequestFa
ctory.h:5:
/Users/brightrootssgruti/ShrutiProjects/shrutiFlutterProjects/babilok/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFram
ework-Current/GoogleMobileAds.framework/Headers/GADRequest.h:88:71: note: 'testDevices' has been explicitly marked deprecated here
#property(nonatomic, copy, nullable) NSArray<NSString *> *testDevices GAD_DEPRECATED_MSG_ATTRIBUTE(
^
In module 'GoogleMobileAds' imported from
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRequestFa
ctory.h:5:
/Users/brightrootssgruti/ShrutiProjects/shrutiFlutterProjects/babilok/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFram
ework-Current/GoogleMobileAds.framework/Headers/GoogleMobileAdsDefines.h:25:56: note: expanded from macro
'GAD_DEPRECATED_MSG_ATTRIBUTE'
#define GAD_DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRequestFa
ctory.m:91:15: warning: 'birthday' is deprecated [-Wdeprecated-declarations]
request.birthday =
^
In module 'GoogleMobileAds' imported from
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRequestFa
ctory.h:5:
/Users/brightrootssgruti/ShrutiProjects/shrutiFlutterProjects/babilok/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFram
ework-Current/GoogleMobileAds.framework/Headers/GADRequest.h:95:55: note: 'birthday' has been explicitly marked deprecated here
#property(nonatomic, copy, nullable) NSDate *birthday GAD_DEPRECATED_ATTRIBUTE;
^
In module 'GoogleMobileAds' imported from
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRequestFa
ctory.h:5:
/Users/brightrootssgruti/ShrutiProjects/shrutiFlutterProjects/babilok/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFram
ework-Current/GoogleMobileAds.framework/Headers/GoogleMobileAdsDefines.h:33:49: note: expanded from macro
'GAD_DEPRECATED_ATTRIBUTE'
#define GAD_DEPRECATED_ATTRIBUTE __attribute__((deprecated))
^
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRequestFa
ctory.m:106:19: warning: 'gender' is deprecated [-Wdeprecated-declarations]
request.gender = genderValue;
^
In module 'GoogleMobileAds' imported from
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRequestFa
ctory.h:5:
/Users/brightrootssgruti/ShrutiProjects/shrutiFlutterProjects/babilok/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFram
ework-Current/GoogleMobileAds.framework/Headers/GADRequest.h:92:47: note: 'gender' has been explicitly marked deprecated here
#property(nonatomic, assign) GADGender gender GAD_DEPRECATED_ATTRIBUTE;
^
In module 'GoogleMobileAds' imported from
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRequestFa
ctory.h:5:
/Users/brightrootssgruti/ShrutiProjects/shrutiFlutterProjects/babilok/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFram
ework-Current/GoogleMobileAds.framework/Headers/GoogleMobileAdsDefines.h:33:49: note: expanded from macro
'GAD_DEPRECATED_ATTRIBUTE'
#define GAD_DEPRECATED_ATTRIBUTE __attribute__((deprecated))
^
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRequestFa
ctory.m:116:14: warning: 'tagForChildDirectedTreatment:' is deprecated: use [GADMobileAds.sharedInstance.requestConfiguration
tagForChildDirectedTreatment] [-Wdeprecated-declarations]
[request tagForChildDirectedTreatment:childDirected.boolValue];
^
In module 'GoogleMobileAds' imported from
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRequestFa
ctory.h:5:
/Users/brightrootssgruti/ShrutiProjects/shrutiFlutterProjects/babilok/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFram
ework-Current/GoogleMobileAds.framework/Headers/GADRequest.h:126:5: note: 'tagForChildDirectedTreatment:' has been explicitly
marked deprecated here
GAD_DEPRECATED_MSG_ATTRIBUTE(
^
In module 'GoogleMobileAds' imported from
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTRequestFa
ctory.h:5:
/Users/brightrootssgruti/ShrutiProjects/shrutiFlutterProjects/babilok/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFram
ework-Current/GoogleMobileAds.framework/Headers/GoogleMobileAdsDefines.h:25:56: note: expanded from macro
'GAD_DEPRECATED_MSG_ATTRIBUTE'
#define GAD_DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
4 warnings generated.
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTMobileAd.
m:40:17: warning: 'configureWithApplicationID:' is deprecated: Use [GADMobileAds.sharedInstance startWithCompletionHandler:]
[-Wdeprecated-declarations]
[GADMobileAds configureWithApplicationID:appId];
^
In module 'GoogleMobileAds' imported from
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTMobileAd.
h:6:
/Users/brightrootssgruti/ShrutiProjects/shrutiFlutterProjects/babilok/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFram
ework-Current/GoogleMobileAds.framework/Headers/GADMobileAds.h:74:5: note: 'configureWithApplicationID:' has been explicitly marked
deprecated here
GAD_DEPRECATED_MSG_ATTRIBUTE("Use [GADMobileAds.sharedInstance startWithCompletionHandler:]");
^
In module 'GoogleMobileAds' imported from
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTMobileAd.
h:6:
/Users/brightrootssgruti/ShrutiProjects/shrutiFlutterProjects/babilok/ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFram
ework-Current/GoogleMobileAds.framework/Headers/GoogleMobileAdsDefines.h:25:56: note: expanded from macro
'GAD_DEPRECATED_MSG_ATTRIBUTE'
#define GAD_DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
/Users/brightrootssgruti/ShrutiProjects/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.9.0+10/ios/Classes/FLTMobileAd.
m:98:79: warning: implicit conversion loses integer precision: 'FLTMobileAdStatus' to 'int' [-Wshorten-64-to-32]
NSString *statusString = (NSString *)statusToString[[NSNumber numberWithInt:_status]];
~ ^~~~~~~
2 warnings generated.
<module-includes>:1:1: warning: umbrella header for module 'cloud_firestore' does not include header 'CloudFirestorePlugin.h'
[-Wincomplete-umbrella]
#import "Headers/cloud_firestore-umbrella.h"
^
1 warning generated.
<module-includes>:1:1: warning: umbrella header for module 'firebase_admob' does not include header 'FirebaseAdMobPlugin.h'
[-Wincomplete-umbrella]
#import "Headers/firebase_admob-umbrella.h"
^
1 warning generated.
2 warnings generated.
error: unable to read property list from file:
/Users/brightrootssgruti/ShrutiProjects/shrutiFlutterProjects/babilok/ios/Runner/Info.plist: The operation couldn’t be completed.
(XCBUtil.PropertyListConversionError error 1.) (in target 'Runner' from project 'Runner')
note: Using new build system
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
Shrutis-MacBook-Air:babilok brightrootssgruti$
You just have to upgrade your FlutterToast library
fluttertoast: ^4.0.0
And in my case, I changed the target platform to iOS 10.0 as well in Podfile
platform :ios, '10.0'