Hello,
The package works well on my IOS simulator, but the build failed when I run it on my device.
Any idea about how to fix ?
thank you.
Failed to build iOS app
Error output from Xcode build:
↳
2021-01-11 20:25:43.992 xcodebuild[4730:4360517] DVTAssertions: Warning in
/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTDKRemoteDeviceData.m:371
Details: (null) deviceType from 62cdf2dab688e03ecf77f1cfc4a6f43305f211e6 was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x7fd27d53a830>
Method: -platform
Thread: <NSThread: 0x7fd27bd369d0>{number = 7, name = (null)}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
2021-01-11 20:25:44.228 xcodebuild[4730:4360516] DVTAssertions: Warning in
/Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-17705/DTDeviceKitBase/DTDKRemoteDeviceData.m:371
Details: (null) deviceType from 62cdf2dab688e03ecf77f1cfc4a6f43305f211e6 was NULL when -platform called.
Object: <DTDKMobileDeviceToken: 0x7fd27d53a830>
Method: -platform
Thread: <NSThread: 0x7fd27d37a270>{number = 9, 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/benjaminazogui/Development/FlutterSDK/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+17/ios/Classes/FLTImagePickerPlugin.m:14
9:20: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of
UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", nil)
^
In module 'UIKit' imported from /Users/benjaminazogui/Development/Projects/gitProjects/Service Adom Pro/services_adom_pro/ios/Pods/Target Support
Files/image_picker/image_picker-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk/System/Library/Frameworks/UIKit.framework/He
aders/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
1 warning generated.
ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find or use auto-linked library 'swiftCore'
ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCompatibility50'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftUIKit'
ld: warning: Could not find or use auto-linked library 'swiftCompatibility51'
ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
ld: warning: Could not find or use auto-linked library 'swiftCompatibilityDynamicReplacements'
ld: warning: Could not find or use auto-linked library 'swiftMetal'
ld: warning: Could not find or use auto-linked library 'swiftDispatch'
ld: warning: Could not find or use auto-linked library 'swiftCoreMedia'
ld: warning: Could not find or use auto-linked library 'swiftCoreAudio'
Undefined symbols for architecture arm64:
"_swift_FORCE_LOAD$_swiftCompatibilityDynamicReplacements", referenced from:
_swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_maps_launcher)
"_swift_FORCE_LOAD$_swiftCompatibility51", referenced from:
_swift_FORCE_LOAD$swiftCompatibility51$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCompatibility51$_maps_launcher)
"_swift_FORCE_LOAD$_swiftCompatibility50", referenced from:
_swift_FORCE_LOAD$swiftCompatibility50$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCompatibility50$_maps_launcher)
"_swift_FORCE_LOAD$swiftCoreAudio", referenced from:
_swift_FORCE_LOAD$swiftCoreAudio$maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCoreAudio$maps_launcher)
"type metadata for Swift.String", referenced from:
maps_launcher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"swift_bridgeObjectRelease", referenced from:
maps_launcher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftCoreMedia", referenced from:
_swift_FORCE_LOAD$swiftCoreMedia$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCoreMedia$_maps_launcher)
"_swift_FORCE_LOAD$_swiftCoreImage", referenced from:
_swift_FORCE_LOAD$swiftCoreImage$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCoreImage$_maps_launcher)
"_swift_FORCE_LOAD$_swiftCoreGraphics", referenced from:
_swift_FORCE_LOAD$swiftCoreGraphics$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCoreGraphics$_maps_launcher)
"_swift_FORCE_LOAD$_swiftQuartzCore", referenced from:
_swift_FORCE_LOAD$swiftQuartzCore$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftQuartzCore$_maps_launcher)
"_swift_release", referenced from:
___swift_destroy_boxed_opaque_existential_0 in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftDispatch", referenced from:
_swift_FORCE_LOAD$swiftDispatch$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftDispatch$_maps_launcher)
"_swift_FORCE_LOAD$_swiftCoreFoundation", referenced from:
_swift_FORCE_LOAD$swiftCoreFoundation$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCoreFoundation$maps_launcher)
"swift_getInitializedObjCClass", referenced from:
static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
type metadata accessor for maps_launcher.SwiftMapsLauncherPlugin in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
@objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
maps_launcher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftFoundation", referenced from:
_swift_FORCE_LOAD$swiftFoundation$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftFoundation$_maps_launcher)
"value witness table for Builtin.UnknownObject", referenced from:
full type metadata for maps_launcher.SwiftMapsLauncherPlugin in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"(extension in Foundation):Swift.String._bridgeToObjectiveC() -> __C.NSString", referenced from:
static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
@objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"Swift.bridgeAnythingToObjectiveC(A) -> Swift.AnyObject", referenced from:
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_getTypeByMangledNameInContext", referenced from:
___swift_instantiateConcreteTypeFromMangledName in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftUIKit", referenced from:
_swift_FORCE_LOAD$swiftUIKit$maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftUIKit$maps_launcher)
"Swift.String.append(Swift.String) -> ()", referenced from:
maps_launcher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftDarwin", referenced from:
_swift_FORCE_LOAD$swiftDarwin$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftDarwin$maps_launcher)
"swift_unknownObjectRelease", referenced from:
static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
@objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"static (extension in Foundation):Swift.String.unconditionallyBridgeFromObjectiveC(__C.NSString?) -> Swift.String", referenced from:
maps_launcher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
function signature specialization <Arg[0] = Dead, Arg[1] = Dead, Arg[2] = Owned To Guaranteed> of function signature specialization <Arg[1] =
[Closure Propagated : reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.Optional<Swift.AnyObject>)
-> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned
@convention(block) (@unowned Swift.AnyObject?) -> ()]> of maps_launcher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result:
(Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftMetal", referenced from:
_swift_FORCE_LOAD$swiftMetal$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftMetal$_maps_launcher)
"_swift_unknownObjectRetain", referenced from:
@objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: __C.FlutterPluginRegistrar) -> () in
libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
"_swift_FORCE_LOAD$_swiftObjectiveC", referenced from:
_swift_FORCE_LOAD$swiftObjectiveC$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftObjectiveC$_maps_launcher)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description