pikaju / flutter-maps-launcher

Simple Flutter package to open the maps application (or browser) on all platforms.
https://pub.dev/packages/maps_launcher
MIT License
60 stars 43 forks source link

Failed to build on IOS #11

Closed ben55j closed 1 year ago

ben55j commented 3 years ago

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_FORCELOAD$_swiftCompatibilityDynamicReplacements", referenced from: swift_FORCELOAD$swiftCompatibilityDynamicReplacements$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: swift_FORCELOAD$swiftCompatibilityDynamicReplacements$_maps_launcher) "swift_FORCELOAD$_swiftCompatibility51", referenced from: swift_FORCELOAD$swiftCompatibility51$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: __swift_FORCELOAD$swiftCompatibility51$_maps_launcher) "swift_FORCELOAD$_swiftCompatibility50", referenced from: swift_FORCELOAD$swiftCompatibility50$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: swift_FORCELOAD$swiftCompatibility50$_maps_launcher) "swift_FORCELOAD$_swiftCoreAudio", referenced from: swift_FORCELOAD$swiftCoreAudio$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: swift_FORCELOAD$swiftCoreAudio$_maps_launcher) "type metadata for Swift.String", referenced from: mapslauncher.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) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of mapslauncher.SwiftMapsLauncherPlugin.handle(: C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) "_swift_bridgeObjectRelease", referenced from: mapslauncher.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) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of mapslauncher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) "swift_FORCELOAD$_swiftCoreMedia", referenced from: swift_FORCELOAD$swiftCoreMedia$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: swift_FORCELOAD$swiftCoreMedia$_maps_launcher) "swift_FORCELOAD$_swiftCoreImage", referenced from: swift_FORCELOAD$swiftCoreImage$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: swift_FORCELOAD$swiftCoreImage$_maps_launcher) "swift_FORCELOAD$_swiftCoreGraphics", referenced from: swift_FORCELOAD$swiftCoreGraphics$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: __swift_FORCELOAD$swiftCoreGraphics$_maps_launcher) "swift_FORCELOAD$_swiftQuartzCore", referenced from: swift_FORCELOAD$swiftQuartzCore$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: swift_FORCELOAD$swiftQuartzCore$_maps_launcher) "_swift_release", referenced from: _swift_destroy_boxed_opaque_existential_0 in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) "swift_FORCELOAD$_swiftDispatch", referenced from: swift_FORCELOAD$swiftDispatch$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: __swift_FORCELOAD$swiftDispatch$_maps_launcher) "swift_FORCELOAD$_swiftCoreFoundation", referenced from: swift_FORCELOAD$swiftCoreFoundation$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: swift_FORCELOAD$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) mapslauncher.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) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of mapslauncher.SwiftMapsLauncherPlugin.handle(: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) "swift_FORCELOAD$_swiftFoundation", referenced from: swift_FORCELOAD$swiftFoundation$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: swift_FORCELOAD$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) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of mapslauncher.SwiftMapsLauncherPlugin.handle(: C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) "_swiftgetTypeByMangledNameInContext", referenced from: swift_instantiateConcreteTypeFromMangledName in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) "swift_FORCELOAD$_swiftUIKit", referenced from: swift_FORCELOAD$swiftUIKit$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: __swift_FORCELOAD$swiftUIKit$_maps_launcher) "Swift.String.append(Swift.String) -> ()", referenced from: mapslauncher.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) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of mapslauncher.SwiftMapsLauncherPlugin.handle(: C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) "swift_FORCELOAD$_swiftDarwin", referenced from: swift_FORCELOAD$swiftDarwin$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: swift_FORCELOAD$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) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of mapslauncher.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: mapslauncher.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) -> () to @escaping @callee_guaranteed (@in_guaranteed Swift.Optional) -> (), Argument Types : [@escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> ()]> of mapslauncher.SwiftMapsLauncherPlugin.handle(: C.FlutterMethodCall, result: (Any?) -> ()) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) "swift_FORCELOAD$_swiftMetal", referenced from: swift_FORCELOAD$swiftMetal$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: swift_FORCELOAD$swiftMetal$_maps_launcher) "_swift_unknownObjectRetain", referenced from: @objc static maps_launcher.SwiftMapsLauncherPlugin.register(with: C.FlutterPluginRegistrar) -> () in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) "swift_FORCELOAD$_swiftObjectiveC", referenced from: swift_FORCELOAD$swiftObjectiveC$_maps_launcher in libmaps_launcher.a(SwiftMapsLauncherPlugin.o) (maybe you meant: swift_FORCELOAD$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

ben55j commented 3 years ago

Here my flutter doctor: Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel dev, 1.26.0-1.0.pre, on macOS 11.1 20C69 darwin-x64, locale fr-FR) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 12.3) [✓] Android Studio (version 4.1) [✓] VS Code (version 1.52.1) [✓] Connected device (2 available)

• No issues found!

pikaju commented 1 year ago

Can you please check if the issue persists in version 2.1.0?