CarnegieTechnologies / gallery_saver

Flutter plugin that saves images and videos to devices gallery
Apache License 2.0
158 stars 331 forks source link

Can't build it for ios due to 'Undefined symbols for architecture x86_64' #93

Closed novas1r1 closed 3 years ago

novas1r1 commented 3 years ago

Hi, I tried for... days now and I'm getting crazy. I'm not able to build my flutter app for ios with this plugin. I removed the plugin and the build went fine. I'm adding it again, it fails.

What I've tried:

I'm way more into android so I'm struggeling with this a lot. Help would really save my day!

Heres the logfile.

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 'swiftObjectiveC'
ld: warning: Could not find or use auto-linked library 'swiftPhotos'
ld: warning: Could not find or use auto-linked library 'swiftSwiftOnoneSupport'
ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftDispatch'
ld: warning: Could not find or use auto-linked library 'swiftAVFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCoreMedia'
ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
ld: warning: Could not find or use auto-linked library 'swiftCore'
ld: warning: Could not find or use auto-linked library 'swiftCoreMIDI'
ld: warning: Could not find or use auto-linked library 'swiftUniformTypeIdentifiers'
ld: warning: Could not find or use auto-linked library 'swiftCoreLocation'
ld: warning: Could not find or use auto-linked library 'swiftCoreAudio'
ld: warning: Could not find or use auto-linked library 'swiftCompatibilityDynamicReplacements'
ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
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 'swiftsimd'
ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftMetal'
Undefined symbols for architecture x86_64:
  "value witness table for Builtin.Int64", referenced from:
      full type metadata for __C.PHAuthorizationStatus in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "__swift_FORCE_LOAD_$_swiftCompatibility51", referenced from:
      __swift_FORCE_LOAD_$_swiftCompatibility51_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibility51_$_gallery_saver)
  "__swift_FORCE_LOAD_$_swiftCoreLocation", referenced from:
      __swift_FORCE_LOAD_$_swiftCoreLocation_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreLocation_$_gallery_saver)
  "__swift_FORCE_LOAD_$_swiftCoreMIDI", referenced from:
      __swift_FORCE_LOAD_$_swiftCoreMIDI_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreMIDI_$_gallery_saver)
  "__swift_FORCE_LOAD_$_swiftsimd", referenced from:
      __swift_FORCE_LOAD_$_swiftsimd_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftsimd_$_gallery_saver)
  "__swift_FORCE_LOAD_$_swiftCoreAudio", referenced from:
      __swift_FORCE_LOAD_$_swiftCoreAudio_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreAudio_$_gallery_saver)
  "__swift_FORCE_LOAD_$_swiftAVFoundation", referenced from:
      __swift_FORCE_LOAD_$_swiftAVFoundation_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftAVFoundation_$_gallery_saver)
  "__swift_FORCE_LOAD_$_swiftDarwin", referenced from:
      __swift_FORCE_LOAD_$_swiftDarwin_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftDarwin_$_gallery_saver)
  "__swift_FORCE_LOAD_$_swiftFoundation", referenced from:
      __swift_FORCE_LOAD_$_swiftFoundation_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftFoundation_$_gallery_saver)
  "nominal type descriptor for Foundation.URL", referenced from:
      _symbolic _____ 10Foundation3URLV in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "nominal type descriptor for Dispatch.DispatchWorkItemFlags", referenced from:
      _symbolic Say_____G 8Dispatch0A13WorkItemFlagsV in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "protocol descriptor for Swift.RawRepresentable", referenced from:
      protocol conformance descriptor for gallery_saver.MediaType : Swift.RawRepresentable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      protocol conformance descriptor for __C.PHAuthorizationStatus : Swift.RawRepresentable in __C_Synthesized in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "__swift_FORCE_LOAD_$_swiftMetal", referenced from:
      __swift_FORCE_LOAD_$_swiftMetal_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftMetal_$_gallery_saver)
  "associated type descriptor for Swift.RawRepresentable.RawValue", referenced from:
      protocol conformance descriptor for gallery_saver.MediaType : Swift.RawRepresentable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      protocol conformance descriptor for __C.PHAuthorizationStatus : Swift.RawRepresentable in __C_Synthesized in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "protocol descriptor for Swift.CVarArg", referenced from:
      _symbolic ______p s7CVarArgP in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "method descriptor for Swift.RawRepresentable.init(rawValue: A.RawValue) -> A?", referenced from:
      protocol conformance descriptor for gallery_saver.MediaType : Swift.RawRepresentable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      protocol conformance descriptor for __C.PHAuthorizationStatus : Swift.RawRepresentable in __C_Synthesized in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "method descriptor for Swift.RawRepresentable.rawValue.getter : A.RawValue", referenced from:
      protocol conformance descriptor for gallery_saver.MediaType : Swift.RawRepresentable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      protocol conformance descriptor for __C.PHAuthorizationStatus : Swift.RawRepresentable in __C_Synthesized in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "base conformance descriptor for Swift.Hashable: Swift.Equatable", referenced from:
      protocol conformance descriptor for gallery_saver.MediaType : Swift.Hashable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "method descriptor for Swift.Hashable.hash(into: inout Swift.Hasher) -> ()", referenced from:
      protocol conformance descriptor for gallery_saver.MediaType : Swift.Hashable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "method descriptor for Swift.Hashable._rawHashValue(seed: Swift.Int) -> Swift.Int", referenced from:
      protocol conformance descriptor for gallery_saver.MediaType : Swift.Hashable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "protocol descriptor for Swift.Equatable", referenced from:
      protocol conformance descriptor for gallery_saver.MediaType : Swift.Equatable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "protocol conformance descriptor for Swift.String : Swift.CVarArg in Foundation", referenced from:
      lazy protocol witness table accessor for type Swift.String and conformance Swift.String : Swift.CVarArg in Foundation in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "__swift_FORCE_LOAD_$_swiftCoreGraphics", referenced from:
      __swift_FORCE_LOAD_$_swiftCoreGraphics_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreGraphics_$_gallery_saver)
  "type metadata accessor for Swift.Array", referenced from:
      type metadata accessor for [Dispatch.DispatchWorkItemFlags] in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "__swift_FORCE_LOAD_$_swiftCoreImage", referenced from:
      __swift_FORCE_LOAD_$_swiftCoreImage_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreImage_$_gallery_saver)
  "__swift_FORCE_LOAD_$_swiftDispatch", referenced from:
      __swift_FORCE_LOAD_$_swiftDispatch_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftDispatch_$_gallery_saver)
  "__swiftEmptyArrayStorage", referenced from:
      generic specialization <serialized, Dispatch.DispatchWorkItemFlags> of static Swift.Array._allocateUninitialized(Swift.Int) -> ([A], Swift.UnsafeMutablePointer<A>) in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "dispatch thunk of Swift.SetAlgebra.init<A where A1: Swift.Sequence, A.Element == A1.Element>(__owned A1) -> A", referenced from:
      default argument 2 of (extension in Dispatch):__C.OS_dispatch_queue.async(group: __C.OS_dispatch_group?, qos: Dispatch.DispatchQoS, flags: Dispatch.DispatchWorkItemFlags, execute: @convention(block) () -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "method descriptor for Swift.Hashable.hashValue.getter : Swift.Int", referenced from:
      protocol conformance descriptor for gallery_saver.MediaType : Swift.Hashable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "static Dispatch.DispatchQoS.unspecified.getter : Dispatch.DispatchQoS", referenced from:
      default argument 1 of (extension in Dispatch):__C.OS_dispatch_queue.async(group: __C.OS_dispatch_group?, qos: Dispatch.DispatchQoS, flags: Dispatch.DispatchWorkItemFlags, execute: @convention(block) () -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "__swift_FORCE_LOAD_$_swiftQuartzCore", referenced from:
      __swift_FORCE_LOAD_$_swiftQuartzCore_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftQuartzCore_$_gallery_saver)
  "__swift_FORCE_LOAD_$_swiftCoreMedia", referenced from:
      __swift_FORCE_LOAD_$_swiftCoreMedia_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreMedia_$_gallery_saver)
  "type metadata accessor for Dispatch.DispatchQoS", referenced from:
      closure #2 (Swift.Bool, Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(createAppPhotosAlbum in _472640176A1BB789AA9F8B055AA3F103)(albumName: Swift.String, completion: (Swift.Error?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "__swift_FORCE_LOAD_$_swiftObjectiveC", referenced from:
      __swift_FORCE_LOAD_$_swiftObjectiveC_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftObjectiveC_$_gallery_saver)
  "_swift_endAccess", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "(extension in Dispatch):__C.OS_dispatch_queue.async(group: __C.OS_dispatch_group?, qos: Dispatch.DispatchQoS, flags: Dispatch.DispatchWorkItemFlags, execute: @convention(block) () -> ()) -> ()", referenced from:
      closure #2 (Swift.Bool, Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(createAppPhotosAlbum in _472640176A1BB789AA9F8B055AA3F103)(albumName: Swift.String, completion: (Swift.Error?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: default argument 0 of (extension in Dispatch):__C.OS_dispatch_queue.async(group: __C.OS_dispatch_group?, qos: Dispatch.DispatchQoS, flags: Dispatch.DispatchWorkItemFlags, execute: @convention(block) () -> ()) -> (), default argument 2 of (extension in Dispatch):__C.OS_dispatch_queue.async(group: __C.OS_dispatch_group?, qos: Dispatch.DispatchQoS, flags: Dispatch.DispatchWorkItemFlags, execute: @convention(block) () -> ()) -> () , default argument 1 of (extension in Dispatch):__C.OS_dispatch_queue.async(group: __C.OS_dispatch_group?, qos: Dispatch.DispatchQoS, flags: Dispatch.DispatchWorkItemFlags, execute: @convention(block) () -> ()) -> () )
  "method descriptor for static Swift.Equatable.== infix(A, A) -> Swift.Bool", referenced from:
      protocol conformance descriptor for gallery_saver.MediaType : Swift.Equatable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_getTypeByMangledNameInContext", referenced from:
      ___swift_instantiateConcreteTypeFromMangledName in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "(extension in Foundation):Swift.Array._bridgeToObjectiveC() -> __C.NSArray", referenced from:
      @nonobjc __C.NSArray.init(array: [Any]) -> __C.NSArray in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "static Swift.Array._allocateBufferUninitialized(minimumCapacity: Swift.Int) -> Swift._ArrayBuffer<A>", referenced from:
      generic specialization <serialized, Dispatch.DispatchWorkItemFlags> of static Swift.Array._allocateUninitialized(Swift.Int) -> ([A], Swift.UnsafeMutablePointer<A>) in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "Swift.== infix<A where A: Swift.RawRepresentable, A.RawValue: Swift.Equatable>(A, A) -> Swift.Bool", referenced from:
      protocol witness for static Swift.Equatable.== infix(A, A) -> Swift.Bool in conformance gallery_saver.MediaType : Swift.Equatable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 (__C.PHAuthorizationStatus) -> () in gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 () -> () in gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "Swift._allocateUninitializedArray<A>(Builtin.Word) -> ([A], Builtin.RawPointer)", referenced from:
      closure #1 () -> () in gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(fetchAssetCollectionForAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String) -> __C.PHAssetCollection? in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "Foundation.URL.init(fileURLWithPath: __shared Swift.String) -> Foundation.URL", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_isaMask", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_getWitnessTable", referenced from:
      lazy protocol witness table accessor for type __C.PHAuthorizationStatus and conformance __C.PHAuthorizationStatus : Swift.RawRepresentable in __C_Synthesized in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      lazy protocol witness table accessor for type gallery_saver.MediaType and conformance gallery_saver.MediaType : Swift.Equatable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      lazy protocol witness table accessor for type Dispatch.DispatchWorkItemFlags and conformance Dispatch.DispatchWorkItemFlags : Swift.SetAlgebra in Dispatch in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      lazy protocol witness table accessor for type [Dispatch.DispatchWorkItemFlags] and conformance [A] : Swift.Sequence in Swift in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      lazy protocol witness table accessor for type Swift.String and conformance Swift.String : Swift.CVarArg in Foundation in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      lazy protocol witness table accessor for type gallery_saver.MediaType and conformance gallery_saver.MediaType : Swift.RawRepresentable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_getForeignTypeMetadata", referenced from:
      type metadata accessor for __C.PHAuthorizationStatus in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "type metadata accessor for Foundation.URL", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 () -> () in gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      l_objectdestroy.24 in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      partial apply forwarder for closure #1 () -> () in gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "Swift._bridgeAnyObjectToAny(Swift.AnyObject?) -> Any", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "__swift_FORCE_LOAD_$_swiftUIKit", referenced from:
      __swift_FORCE_LOAD_$_swiftUIKit_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftUIKit_$_gallery_saver)
  "Swift._assertionFailure(_: Swift.StaticString, _: Swift.StaticString, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(_saveMediaToAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, Swift.String?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 (Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(_saveMediaToAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, Swift.String?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 () -> () in gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "protocol conformance descriptor for [A] : Swift.Sequence in Swift", referenced from:
      lazy protocol witness table accessor for type [Dispatch.DispatchWorkItemFlags] and conformance [A] : Swift.Sequence in Swift in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "protocol witness table for Swift.String : Swift.Hashable in Swift", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_dynamicCast", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "__swift_FORCE_LOAD_$_swiftPhotos", referenced from:
      __swift_FORCE_LOAD_$_swiftPhotos_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftPhotos_$_gallery_saver)
  "type metadata for Swift.Bool", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 (__C.PHAuthorizationStatus) -> () in gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 (Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(_saveMediaToAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, Swift.String?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #2 (Swift.Bool, Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "__swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers", referenced from:
      __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_gallery_saver)
  "type metadata for Any", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 () -> () in gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      @nonobjc __C.NSArray.init(array: [Any]) -> __C.NSArray in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "Swift._bridgeAnythingToObjectiveC<A>(A) -> Swift.AnyObject", referenced from:
      reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> () to @escaping @callee_guaranteed (@in_guaranteed Any?) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_errorRelease", referenced from:
      closure #1 (Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(_saveMediaToAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, Swift.String?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      reabstraction thunk helper from @escaping @callee_guaranteed (@unowned Swift.Bool, @guaranteed Swift.Error?) -> () to @escaping @callee_unowned @convention(block) (@unowned Swift.Bool, @unowned __C.NSError?) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      l_objectdestroy.18 in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "static (extension in Foundation):Swift.String._unconditionallyBridgeFromObjectiveC(__C.NSString?) -> Swift.String", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "static Swift.String.== infix(Swift.String, Swift.String) -> Swift.Bool", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_allocObject", referenced from:
      @objc gallery_saver.SwiftGallerySaverPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(_saveMediaToAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, Swift.String?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(createAppPhotosAlbum in _472640176A1BB789AA9F8B055AA3F103)(albumName: Swift.String, completion: (Swift.Error?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #2 (Swift.Bool, Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(createAppPhotosAlbum in _472640176A1BB789AA9F8B055AA3F103)(albumName: Swift.String, completion: (Swift.Error?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_retain", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 (__C.PHAuthorizationStatus) -> () in gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      reabstraction thunk helper from @escaping @callee_guaranteed (@unowned __C.PHAuthorizationStatus) -> () to @escaping @callee_unowned @convention(block) (@unowned __C.PHAuthorizationStatus) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(_saveMediaToAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, Swift.String?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      _block_copy_helper in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 (Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(_saveMediaToAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, Swift.String?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      ...
  "protocol conformance descriptor for Dispatch.DispatchWorkItemFlags : Swift.SetAlgebra in Dispatch", referenced from:
      lazy protocol witness table accessor for type Dispatch.DispatchWorkItemFlags and conformance Dispatch.DispatchWorkItemFlags : Swift.SetAlgebra in Dispatch in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "Swift.Dictionary.subscript.getter : (A) -> B?", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "(extension in Foundation):__C.NSPredicate.init(format: __shared Swift.String, _: Swift.CVarArg...) -> __C.NSPredicate", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.(fetchAssetCollectionForAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String) -> __C.PHAssetCollection? in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_unknownObjectRetain", referenced from:
      @objc static gallery_saver.SwiftGallerySaverPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "protocol descriptor for Swift.Hashable", referenced from:
      protocol conformance descriptor for gallery_saver.MediaType : Swift.Hashable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "(extension in Foundation):Swift.String._bridgeToObjectiveC() -> __C.NSString", referenced from:
      @nonobjc __C.FlutterMethodChannel.__allocating_init(name: Swift.String, binaryMessenger: __C.FlutterBinaryMessenger) -> __C.FlutterMethodChannel in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 () -> () in gallery_saver.SwiftGallerySaverPlugin.(createAppPhotosAlbum in _472640176A1BB789AA9F8B055AA3F103)(albumName: Swift.String, completion: (Swift.Error?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_getObjCClassMetadata", referenced from:
      type metadata accessor for __C.FlutterMethodChannel in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      @objc static gallery_saver.SwiftGallerySaverPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      type metadata accessor for __C.NSObject in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      type metadata accessor for __C.OS_dispatch_queue in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      type metadata accessor for __C.PHFetchOptions in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      type metadata accessor for __C.NSPredicate in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      type metadata accessor for __C.PHAssetCollectionChangeRequest in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      ...
  "static (extension in Dispatch):__C.OS_dispatch_queue.main.getter : __C.OS_dispatch_queue", referenced from:
      closure #2 (Swift.Bool, Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(createAppPhotosAlbum in _472640176A1BB789AA9F8B055AA3F103)(albumName: Swift.String, completion: (Swift.Error?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_getObjCClassFromMetadata", referenced from:
      @nonobjc __C.FlutterMethodChannel.__allocating_init(name: Swift.String, binaryMessenger: __C.FlutterBinaryMessenger) -> __C.FlutterMethodChannel in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      @nonobjc __C.PHAssetCollectionChangeRequest.__allocating_init(for: __C.PHAssetCollection) -> __C.PHAssetCollectionChangeRequest? in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      __C.NSArray.__allocating_init(array: [Any]) -> __C.NSArray in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      __C.PHFetchOptions.__allocating_init() -> __C.PHFetchOptions in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_getInitializedObjCClass", referenced from:
      type metadata accessor for __C.FlutterMethodChannel in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      type metadata accessor for gallery_saver.SwiftGallerySaverPlugin in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      type metadata accessor for __C.NSObject in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 () -> () in gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(fetchAssetCollectionForAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String) -> __C.PHAssetCollection? in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      ...
  "protocol descriptor for Swift.Error", referenced from:
      _symbolic ______pSgIegg_ s5ErrorP in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      _symbolic ______pSg s5ErrorP in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "type metadata for Swift.String", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(fetchAssetCollectionForAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String) -> __C.PHAssetCollection? in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      lazy protocol witness table accessor for type Swift.String and conformance Swift.String : Swift.CVarArg in Foundation in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_beginAccess", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "protocol witness table for Swift.Int : Swift.Hashable in Swift", referenced from:
      protocol witness for Swift.Hashable.hashValue.getter : Swift.Int in conformance gallery_saver.MediaType : Swift.Hashable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      protocol witness for Swift.Hashable.hash(into: inout Swift.Hasher) -> () in conformance gallery_saver.MediaType : Swift.Hashable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      protocol witness for Swift.Hashable._rawHashValue(seed: Swift.Int) -> Swift.Int in conformance gallery_saver.MediaType : Swift.Hashable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_bridgeObjectRelease", referenced from:
      @nonobjc __C.FlutterMethodChannel.__allocating_init(name: Swift.String, binaryMessenger: __C.FlutterBinaryMessenger) -> __C.FlutterMethodChannel in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      outlined destroy of Swift.String in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(_saveMediaToAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, Swift.String?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      l_objectdestroy.2 in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 (Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(_saveMediaToAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, Swift.String?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      ...
  "_swift_errorRetain", referenced from:
      closure #2 (Swift.Bool, Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(createAppPhotosAlbum in _472640176A1BB789AA9F8B055AA3F103)(albumName: Swift.String, completion: (Swift.Error?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      outlined init with copy of Swift.Error? in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_getObjectType", referenced from:
      static gallery_saver.SwiftGallerySaverPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_release", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      ___swift_destroy_boxed_opaque_existential_0 in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      @objc gallery_saver.SwiftGallerySaverPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 (__C.PHAuthorizationStatus) -> () in gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      reabstraction thunk helper from @escaping @callee_guaranteed (@unowned __C.PHAuthorizationStatus) -> () to @escaping @callee_unowned @convention(block) (@unowned __C.PHAuthorizationStatus) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(_saveMediaToAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, Swift.String?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      ...
  "(extension in Swift):Swift.RawRepresentable< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>.hash(into: inout Swift.Hasher) -> ()", referenced from:
      protocol witness for Swift.Hashable.hash(into: inout Swift.Hasher) -> () in conformance gallery_saver.MediaType : Swift.Hashable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "value witness table for Builtin.UnknownObject", referenced from:
      full type metadata for gallery_saver.SwiftGallerySaverPlugin in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "_swift_unknownObjectRelease", referenced from:
      static gallery_saver.SwiftGallerySaverPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      @nonobjc __C.FlutterMethodChannel.__allocating_init(name: Swift.String, binaryMessenger: __C.FlutterBinaryMessenger) -> __C.FlutterMethodChannel in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      @objc static gallery_saver.SwiftGallerySaverPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> () to @escaping @callee_guaranteed (@in_guaranteed Any?) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 () -> () in gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(fetchAssetCollectionForAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String) -> __C.PHAssetCollection? in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      ...
  "(extension in Swift):Swift.RawRepresentable< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>.hashValue.getter : Swift.Int", referenced from:
      protocol witness for Swift.Hashable.hashValue.getter : Swift.Int in conformance gallery_saver.MediaType : Swift.Hashable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "__swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements", referenced from:
      __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_gallery_saver)
  "__swift_FORCE_LOAD_$_swiftCompatibility50", referenced from:
      __swift_FORCE_LOAD_$_swiftCompatibility50_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibility50_$_gallery_saver)
  "_swift_bridgeObjectRetain", referenced from:
      gallery_saver.SwiftGallerySaverPlugin.path.getter : Swift.String in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.albumName.getter : Swift.String in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(_saveMediaToAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, Swift.String?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 (Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(_saveMediaToAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, Swift.String?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(fetchAssetCollectionForAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String) -> __C.PHAssetCollection? in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(createAppPhotosAlbum in _472640176A1BB789AA9F8B055AA3F103)(albumName: Swift.String, completion: (Swift.Error?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      ...
  "_swift_deallocObject", referenced from:
      l_objectdestroy in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      l_objectdestroy.2 in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      l_objectdestroy.6 in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      l_objectdestroy.12 in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      l_objectdestroy.18 in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      l_objectdestroy.24 in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      l_objectdestroy.30 in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      ...
  "__swift_FORCE_LOAD_$_swiftCoreFoundation", referenced from:
      __swift_FORCE_LOAD_$_swiftCoreFoundation_$_gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreFoundation_$_gallery_saver)
  "Swift.String.init(_builtinStringLiteral: Builtin.RawPointer, utf8CodeUnitCount: Builtin.Word, isASCII: Builtin.Int1) -> Swift.String", referenced from:
      variable initialization expression of gallery_saver.SwiftGallerySaverPlugin.path : Swift.String in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      variable initialization expression of gallery_saver.SwiftGallerySaverPlugin.albumName : Swift.String in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      static gallery_saver.SwiftGallerySaverPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.handle(_: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.(fetchAssetCollectionForAlbum in _472640176A1BB789AA9F8B055AA3F103)(Swift.String) -> __C.PHAssetCollection? in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.init() -> gallery_saver.SwiftGallerySaverPlugin in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "type metadata accessor for Dispatch.DispatchWorkItemFlags", referenced from:
      closure #2 (Swift.Bool, Swift.Error?) -> () in gallery_saver.SwiftGallerySaverPlugin.(createAppPhotosAlbum in _472640176A1BB789AA9F8B055AA3F103)(albumName: Swift.String, completion: (Swift.Error?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      default argument 2 of (extension in Dispatch):__C.OS_dispatch_queue.async(group: __C.OS_dispatch_group?, qos: Dispatch.DispatchQoS, flags: Dispatch.DispatchWorkItemFlags, execute: @convention(block) () -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      generic specialization <serialized, Dispatch.DispatchWorkItemFlags> of static Swift.Array._allocateUninitialized(Swift.Int) -> ([A], Swift.UnsafeMutablePointer<A>) in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      lazy protocol witness table accessor for type Dispatch.DispatchWorkItemFlags and conformance Dispatch.DispatchWorkItemFlags : Swift.SetAlgebra in Dispatch in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      type metadata accessor for [Dispatch.DispatchWorkItemFlags] in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "Foundation.URL._bridgeToObjectiveC() -> __C.NSURL", referenced from:
      closure #1 () -> () in gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "(extension in Swift):Swift.RawRepresentable< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>._rawHashValue(seed: Swift.Int) -> Swift.Int", referenced from:
      protocol witness for Swift.Hashable._rawHashValue(seed: Swift.Int) -> Swift.Int in conformance gallery_saver.MediaType : Swift.Hashable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
  "protocol witness table for Swift.Int : Swift.Equatable in Swift", referenced from:
      protocol witness for static Swift.Equatable.== infix(A, A) -> Swift.Bool in conformance gallery_saver.MediaType : Swift.Equatable in gallery_saver in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 (__C.PHAuthorizationStatus) -> () in gallery_saver.SwiftGallerySaverPlugin.saveMedia(__C.FlutterMethodCall, gallery_saver.MediaType, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
      closure #1 () -> () in gallery_saver.SwiftGallerySaverPlugin.(saveFile in _472640176A1BB789AA9F8B055AA3F103)(Swift.String, gallery_saver.MediaType, __C.PHAssetCollection?, (Any?) -> ()) -> () in libgallery_saver.a(SwiftGallerySaverPlugin.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
zaidas1m commented 3 years ago

I'm having the same problem. Any idea how to fix this?

zaidas1m commented 3 years ago

Just in case. I resolved it removing ios folder and creating it again with flutter create --project-name=app_name .

novas1r1 commented 3 years ago

Hi @zaidas1m, tried this and a lot of other stuff but didnt fix it :(