Open Parth15Ordex opened 3 years ago
By building you mean archiving ? or this happens during development too ?
The following build commands failed: CompileSwift normal x86_64 CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler CompileSwift normal arm64 CompileSwift normal x86_64 /Users/parth/Desktop/Demo/demomobile/Demo/node_modules/react-native-geolocation-service/ios/RNFusedLocation.swift
This is not the actual error message. You have to look further up in the log to find the actual error.
Seeing a similar (the same?) issue.
"react": "16.13.1", "react-native": "0.63.4", "react-native-geolocation-service": "^5.3.0-beta.1" Xcode: 12.5
Added the module and ran pod install.
Run an Xcode build and seeing a lot of linking issues (there are too many to show them all):
Undefined symbol: method descriptor for Foundation._BridgedStoredNSError.init(_nsError: __C.NSError) -> A
Undefined symbol: base conformance descriptor for Foundation._BridgedStoredNSError: Foundation.CustomNSError
Undefined symbol: associated type descriptor for Foundation._ErrorCodeProtocol._ErrorType
Undefined symbol: associated conformance descriptor for Foundation._BridgedStoredNSError.Foundation._BridgedStoredNSError.Code: Foundation._ErrorCodeProtocol
Undefined symbol: base conformance descriptor for Foundation._ErrorCodeProtocol: Swift.Equatable
Undefined symbol: method descriptor for static Foundation.CustomNSError.errorDomain.getter : Swift.String
Undefined symbol: base conformance descriptor for Foundation.CustomNSError: Swift.Error
Undefined symbol: protocol descriptor for Foundation.CustomNSError
Undefined symbol: method descriptor for Foundation._ObjectiveCBridgeableError.init(_bridgedNSError: shared C.NSError) -> A?
Undefined symbol: base conformance descriptor for Foundation._BridgedStoredNSError: Foundation._ObjectiveCBridgeableError
Undefined symbol: protocol descriptor for Foundation._ObjectiveCBridgeableError
Undefined symbol: method descriptor for Swift.Error._getEmbeddedNSError() -> Swift.AnyObject?
Undefined symbol: method descriptor for Swift.Error._code.getter : Swift.Int
Undefined symbol: method descriptor for Swift.RawRepresentable.rawValue.getter : A.RawValue
Undefined symbol: associated type descriptor for Swift.RawRepresentable.RawValue
Undefined symbol: base conformance descriptor for Foundation._ObjectiveCBridgeableError: Swift.Error
Undefined symbol: method descriptor for Swift.Hashable._rawHashValue(seed: Swift.Int) -> Swift.Int
Undefined symbol: method descriptor for Swift.Hashable.hashValue.getter : Swift.Int
Undefined symbol: base conformance descriptor for Swift.Hashable: Swift.Equatable
Undefined symbol: method descriptor for static Swift.Equatable.== infix(A, A) -> Swift.Bool
Undefined symbol: protocol descriptor for Swift.Equatable
Undefined symbol: value witness table for Builtin.Int32
Undefined symbol: _swift_deallocObject
Undefined symbol: value witness table for Builtin.Int64
Undefined symbol: __swift_FORCELOAD$_swiftDarwin
Undefined symbol: __swift_FORCELOAD$_swiftFoundation
Undefined symbol: __swift_FORCELOAD$_swiftCoreLocation
Undefined symbol: __swift_FORCELOAD$_swiftCompatibilityDynamicReplacements
Undefined symbol: static (extension in Foundation):Foundation._BridgedStoredNSError.== infix(A, A) -> Swift.Bool
Undefined symbol: dispatch thunk of Foundation._BridgedStoredNSError._nsError.getter : __C.NSError
Undefined symbol: __swift_FORCELOAD$_swiftDispatch
Undefined symbol: (extension in Foundation):Swift.Error< where A: Foundation.CustomNSError>._domain.getter : Swift.String
Undefined symbol: __swift_FORCELOAD$_swiftCompatibility51
Undefined symbol: (extension in ObjectiveC):__C.NSObject.hashValue.getter : Swift.Int
Undefined symbol: (extension in Foundation):Foundation._BridgedStoredNSError.init(_bridgedNSError: __C.NSError) -> A?
Undefined symbol: __swift_FORCELOAD$_swiftCoreImage
Undefined symbol: (extension in Foundation):Foundation._BridgedStoredNSError.code.getter : A.Code
Undefined symbol: associated conformance descriptor for Foundation._BridgedStoredNSError.Foundation._BridgedStoredNSError.Code.Swift.RawRepresentable.RawValue: Swift.FixedWidthInteger
Undefined symbol: _swift_getForeignTypeMetadata
Undefined symbol: method descriptor for Swift.Hashable.hash(into: inout Swift.Hasher) -> ()
Undefined symbol: protocol witness table for Swift.Int32 : Swift.Equatable in Swift
Undefined symbol: protocol witness table for Swift.Int : Swift.Equatable in Swift
Undefined symbol: (extension in Foundation):Swift.Error< where A: Foundation.CustomNSError>._code.getter : Swift.Int
Undefined symbol: ObjectiveC._convertBoolToObjCBool(Swift.Bool) -> ObjectiveC.ObjCBool
Undefined symbol: type metadata for Any
Undefined symbol: type metadata for Swift.Int
Undefined symbol: (extension in Swift):Swift.Sequence< where A.Element: Swift.Equatable>.contains(A.Element) -> Swift.Bool
Undefined symbol: Swift._bridgeAnyObjectToAny(Swift.AnyObject?) -> Any
Undefined symbol: protocol conformance descriptor for Swift.Int : Swift.FixedWidthInteger in Swift
Undefined symbol: (extension in Foundation):Foundation._BridgedStoredNSError.errorCode.getter : Swift.Int
Undefined symbol: Swift._stdlib_isOSVersionAtLeast(Builtin.Word, Builtin.Word, Builtin.Word) -> Builtin.Int1
Undefined symbol: static (extension in Foundation):Swift.Dictionary._unconditionallyBridgeFromObjectiveC(__C.NSDictionary?) -> [A : B]
Undefined symbol: protocol descriptor for Foundation._ErrorCodeProtocol
Undefined symbol: __swift_FORCELOAD$_swiftCoreGraphics
Undefined symbol: _swift_errorRelease
Undefined symbol: type metadata accessor for Swift.Array
Undefined symbol: type metadata accessor for Foundation.Date
Undefined symbol: Swift.Dictionary.isEmpty.getter : Swift.Bool
Undefined symbol: static (extension in Foundation):Swift.Array._unconditionallyBridgeFromObjectiveC(__C.NSArray?) -> [A]
Undefined symbol: Foundation.Date.timeIntervalSince1970.getter : Swift.Double
Undefined symbol: __swift_FORCELOAD$_swiftUIKit
Undefined symbol: (extension in Foundation):Foundation._BridgedStoredNSError._getEmbeddedNSError() -> Swift.AnyObject?
Undefined symbol: Swift.assertionFailure(: Swift.StaticString, _: Swift.StaticString, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never
Undefined symbol: associated conformance descriptor for Foundation._BridgedStoredNSError.Foundation._BridgedStoredNSError.Code: Swift.RawRepresentable
Undefined symbol: _swift_dynamicCast
Undefined symbol: type metadata for Swift.Double
Undefined symbol: (extension in Foundation):Foundation._BridgedStoredNSError.hash(into: inout Swift.Hasher) -> ()
Undefined symbol: method descriptor for Swift.RawRepresentable.init(rawValue: A.RawValue) -> A?
Undefined symbol: (extension in Swift):Swift.BidirectionalCollection.last.getter : A.Element?
Undefined symbol: _swift_errorRetain
Undefined symbol: method descriptor for Foundation.CustomNSError.errorUserInfo.getter : [Swift.String : Any]
Undefined symbol: Foundation._convertErrorToNSError(Swift.Error) -> __C.NSError
Undefined symbol: protocol descriptor for Foundation._BridgedStoredNSError
Undefined symbol: static (extension in Foundation):Swift.String._unconditionallyBridgeFromObjectiveC(__C.NSString?) -> Swift.String
Undefined symbol: Swift._allocateUninitializedArray(Builtin.Word) -> ([A], Builtin.RawPointer)
Undefined symbol: protocol witness table for Swift.String : Swift.Hashable in Swift
Undefined symbol: _swift_retain
Undefined symbol: static Swift.String.== infix(Swift.String, Swift.String) -> Swift.Bool
Undefined symbol: _swift_release
Undefined symbol: value witness table for Builtin.UnknownObject
Undefined symbol: _swift_unknownObjectRelease
Undefined symbol: method descriptor for Swift.Error._domain.getter : Swift.String
Undefined symbol: protocol descriptor for Swift.RawRepresentable
Undefined symbol: Foundation.Date.init() -> Foundation.Date
Undefined symbol: __swift_FORCELOAD$_swiftCompatibility50
Undefined symbol: method descriptor for Foundation.CustomNSError.errorCode.getter : Swift.Int
Undefined symbol: _swift_bridgeObjectRetain
Undefined symbol: (extension in Foundation):Swift.Array._bridgeToObjectiveC() -> __C.NSArray
Undefined symbol: _swift_getTypeByMangledNameInContext
Undefined symbol: Swift.Dictionary.subscript.getter : (A) -> B?
Undefined symbol: base conformance descriptor for Foundation._BridgedStoredNSError: Swift.Hashable
Undefined symbol: _swift_endAccess
Undefined symbol: __swift_FORCELOAD$_swiftMetal
Undefined symbol: static Foundation.Date._unconditionallyBridgeFromObjectiveC(__C.NSDate?) -> Foundation.Date
Undefined symbol: associated conformance descriptor for Foundation._ErrorCodeProtocol.Foundation._ErrorCodeProtocol._ErrorType: Foundation._BridgedStoredNSError
Undefined symbol: static Swift.Double.infinity.getter : Swift.Double
Undefined symbol: (extension in Swift):Swift.RawRepresentable< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>.hash(into: inout Swift.Hasher) -> ()
Undefined symbol: (extension in Swift):Swift.RawRepresentable< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>.hashValue.getter : Swift.Int
Undefined symbol: __swift_FORCELOAD$_swiftObjectiveC
Undefined symbol: associated type descriptor for Foundation._BridgedStoredNSError.Code
Seeing a similar (the same?) issue.
"react": "16.13.1", "react-native": "0.63.4", "react-native-geolocation-service": "^5.3.0-beta.1" Xcode: 12.5
Added the module and ran pod install.
Run an Xcode build and seeing a lot of linking issues (there are too many to show them all):
Xcode is not able to compile swift code, so your installation is not correct. Please make sure the library is properly setup.
I'm getting the same error for,
"react": "17.0.1"
"react-native": "0.64.2"
"react-native-geolocation-service": "^5.3.0-beta.1"
Xcode: Version 12.3 (12C33)
Showing Recent Issues
Undefined symbol: method descriptor for Foundation._BridgedStoredNSError.init(_nsError: __C.NSError) -> A
Undefined symbol: base conformance descriptor for Foundation._BridgedStoredNSError: Foundation.CustomNSError
Undefined symbol: associated type descriptor for Foundation._ErrorCodeProtocol._ErrorType
Undefined symbol: associated conformance descriptor for Foundation._BridgedStoredNSError.Foundation._BridgedStoredNSError.Code: Foundation._ErrorCodeProtocol
Undefined symbol: base conformance descriptor for Foundation._ErrorCodeProtocol: Swift.Equatable
Undefined symbol: method descriptor for static Foundation.CustomNSError.errorDomain.getter : Swift.String
Undefined symbol: base conformance descriptor for Foundation.CustomNSError: Swift.Error
Undefined symbol: protocol descriptor for Foundation.CustomNSError
Undefined symbol: method descriptor for Foundation._ObjectiveCBridgeableError.init(_bridgedNSError: __shared __C.NSError) -> A?
Undefined symbol: base conformance descriptor for Foundation._BridgedStoredNSError: Foundation._ObjectiveCBridgeableError
Undefined symbol: protocol descriptor for Foundation._ObjectiveCBridgeableError
Undefined symbol: method descriptor for Swift.Error._getEmbeddedNSError() -> Swift.AnyObject?
Undefined symbol: method descriptor for Swift.Error._code.getter : Swift.Int
Undefined symbol: method descriptor for Swift.RawRepresentable.rawValue.getter : A.RawValue
Undefined symbol: associated type descriptor for Swift.RawRepresentable.RawValue
Undefined symbol: base conformance descriptor for Foundation._ObjectiveCBridgeableError: Swift.Error
Undefined symbol: method descriptor for Swift.Hashable._rawHashValue(seed: Swift.Int) -> Swift.Int
Undefined symbol: method descriptor for Swift.Hashable.hashValue.getter : Swift.Int
Undefined symbol: base conformance descriptor for Swift.Hashable: Swift.Equatable
Undefined symbol: method descriptor for static Swift.Equatable.== infix(A, A) -> Swift.Bool
Undefined symbol: protocol descriptor for Swift.Equatable
Undefined symbol: value witness table for Builtin.Int32
Undefined symbol: __swift_FORCE_LOAD_$_swiftCoreImage
Undefined symbol: __swift_FORCE_LOAD_$_swiftUIKit
Undefined symbol: nominal type descriptor for Swift.UInt64
Undefined symbol: protocol conformance descriptor for Swift.UInt : Swift.BinaryInteger in Swift
Undefined symbol: associated conformance descriptor for Foundation._BridgedStoredNSError.Foundation._BridgedStoredNSError.Code.Swift.RawRepresentable.RawValue: Swift.FixedWidthInteger
Undefined symbol: _swift_getForeignTypeMetadata
Undefined symbol: __swift_FORCE_LOAD_$_swiftCoreLocation
Undefined symbol: protocol conformance descriptor for Swift.UInt32 : Swift.FixedWidthInteger in Swift
Undefined symbol: static (extension in Foundation):Foundation._BridgedStoredNSError.== infix(A, A) -> Swift.Bool
Undefined symbol: __swift_FORCE_LOAD_$_swiftDispatch
Undefined symbol: dispatch thunk of Foundation._BridgedStoredNSError._nsError.getter : __C.NSError
Undefined symbol: (extension in Foundation):Swift.Error< where A: Foundation.CustomNSError>._domain.getter : Swift.String
Undefined symbol: Swift.Dictionary.isEmpty.getter : Swift.Bool
Undefined symbol: _swift_getTypeByMangledNameInContextInMetadataState
Undefined symbol: (extension in ObjectiveC):__C.NSObject.hashValue.getter : Swift.Int
Undefined symbol: (extension in Foundation):Foundation._BridgedStoredNSError.init(_bridgedNSError: __C.NSError) -> A?
Undefined symbol: method descriptor for Swift.Hashable.hash(into: inout Swift.Hasher) -> ()
Undefined symbol: protocol witness table for Swift.Int32 : Swift.Equatable in Swift
Undefined symbol: protocol witness table for Swift.Int : Swift.Equatable in Swift
Undefined symbol: (extension in Foundation):Swift.Error< where A: Foundation.CustomNSError>._code.getter : Swift.Int
Undefined symbol: ObjectiveC._convertBoolToObjCBool(Swift.Bool) -> ObjectiveC.ObjCBool
Undefined symbol: method descriptor for Foundation._BridgedStoredNSError._nsError.getter : __C.NSError
Undefined symbol: (extension in Foundation):Foundation._BridgedStoredNSError.errorUserInfo.getter : [Swift.String : Any]
Undefined symbol: method descriptor for Swift.RawRepresentable.init(rawValue: A.RawValue) -> A?
Undefined symbol: _swift_errorRetain
Undefined symbol: (extension in Swift):Swift.BidirectionalCollection.last.getter : A.Element?
Undefined symbol: type metadata for Swift.UInt32
Undefined symbol: Swift.Unicode.Scalar.init(Swift.UInt32) -> Swift.Unicode.Scalar?
Undefined symbol: value witness table for Builtin.UnknownObject
Undefined symbol: static Swift.Unicode.UTF8.encode(_: Swift.Unicode.Scalar, into: (Swift.UInt8) -> ()) -> ()
Undefined symbol: (extension in Swift):Swift.Hashable._rawHashValue(seed: Swift.Int) -> Swift.Int
Undefined symbol: type metadata for Swift.Bool
Undefined symbol: Swift.UnsafeBufferPointer.init(start: Swift.UnsafePointer<A>?, count: Swift.Int) -> Swift.UnsafeBufferPointer<A>
Undefined symbol: type metadata for Any
Undefined symbol: type metadata for Swift.Int
Undefined symbol: (extension in Swift):Swift.Sequence< where A.Element: Swift.Equatable>.contains(A.Element) -> Swift.Bool
Undefined symbol: value witness table for Builtin.Int64
Undefined symbol: _swift_deallocObject
Undefined symbol: Swift._bridgeAnyObjectToAny(Swift.AnyObject?) -> Any
Undefined symbol: protocol conformance descriptor for Swift.Int : Swift.FixedWidthInteger in Swift
Undefined symbol: (extension in Foundation):Foundation._BridgedStoredNSError.errorCode.getter : Swift.Int
Undefined symbol: Swift._stdlib_isOSVersionAtLeast(Builtin.Word, Builtin.Word, Builtin.Word) -> Builtin.Int1
Undefined symbol: static (extension in Foundation):Swift.Dictionary._unconditionallyBridgeFromObjectiveC(__C.NSDictionary?) -> [A : B]
Undefined symbol: type metadata for Swift.Double
Undefined symbol: static (extension in Foundation):Swift.Array._unconditionallyBridgeFromObjectiveC(__C.NSArray?) -> [A]
Undefined symbol: Foundation.Date.timeIntervalSince1970.getter : Swift.Double
Undefined symbol: (extension in Foundation):Foundation._BridgedStoredNSError._getEmbeddedNSError() -> Swift.AnyObject?
Undefined symbol: Swift._assertionFailure(_: Swift.StaticString, _: Swift.StaticString, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never
Undefined symbol: associated conformance descriptor for Foundation._BridgedStoredNSError.Foundation._BridgedStoredNSError.Code: Swift.RawRepresentable
Undefined symbol: _swift_dynamicCast
Undefined symbol: _swift_getWitnessTable
Undefined symbol: __swift_FORCE_LOAD_$_swiftQuartzCore
Undefined symbol: nominal type descriptor for Swift.Int32
Undefined symbol: (extension in Foundation):Swift.Dictionary._bridgeToObjectiveC() -> __C.NSDictionary
Undefined symbol: (extension in Foundation):Foundation._BridgedStoredNSError.hash(into: inout Swift.Hasher) -> ()
Undefined symbol: type metadata accessor for Foundation.Date
Undefined symbol: protocol conformance descriptor for Swift.UInt32 : Swift.UnsignedInteger in Swift
Undefined symbol: method descriptor for Foundation.CustomNSError.errorUserInfo.getter : [Swift.String : Any]
Undefined symbol: Foundation._convertErrorToNSError(Swift.Error) -> __C.NSError
Undefined symbol: _swift_errorRelease
Undefined symbol: protocol descriptor for Foundation._BridgedStoredNSError
Undefined symbol: type metadata for Swift.UInt
Undefined symbol: static (extension in Foundation):Swift.String._unconditionallyBridgeFromObjectiveC(__C.NSString?) -> Swift.String
Undefined symbol: Swift._allocateUninitializedArray<A>(Builtin.Word) -> ([A], Builtin.RawPointer)
Undefined symbol: protocol witness table for Swift.String : Swift.Hashable in Swift
Undefined symbol: _swift_retain
Undefined symbol: static Swift.String.== infix(Swift.String, Swift.String) -> Swift.Bool
Undefined symbol: _swift_unknownObjectRelease
Undefined symbol: method descriptor for Foundation.CustomNSError.errorCode.getter : Swift.Int
Undefined symbol: _swift_bridgeObjectRetain
Undefined symbol: (extension in Foundation):Swift.Array._bridgeToObjectiveC() -> __C.NSArray
Undefined symbol: _swift_getTypeByMangledNameInContext
Undefined symbol: protocol witness table for Swift.Int : Swift.Hashable in Swift
Undefined symbol: _swift_beginAccess
Undefined symbol: (extension in Swift):Swift.UnsignedInteger< where A: Swift.FixedWidthInteger>.init<A where A1: Swift.BinaryInteger>(A1) -> A
Undefined symbol: _swift_allocObject
Undefined symbol: associated type descriptor for Foundation._BridgedStoredNSError.Code
Undefined symbol: protocol conformance descriptor for [A] : Swift.BidirectionalCollection in Swift
@Agontuk @luijar @Parth15Ordex any update on this?
For now, I've downgraded this to 4.0.2
. Really appreciate your kind help on this.
@malithjkmt For me (I'm on an M1 mac) I had to enable Swift support and also remove library search paths for the project.
![Uploading wecom-temp-47e62e51299c081aabe121615987797b.png…]() this my question
targets——build phases——link binary with libraries (search add libSwiftWebKit)
vision-llz solution didn't solve it for me, hope someone help with this.
@Agontuk I am using Xcode 12.4 and also using latest version of react-native-geolocation-service (^5.3.0-beta.1). Also I have followed exact steps which are mentioned in documentation. While building iOS I am getting below error
And I got stuck here while building iOS.
Can you help me here to get out of this?
Also attaching here my pod file screenshot: