This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Xcode10.1 upgraded to 10.2, there are some errors in my project

My project is Obj-C ,  and “ pod 'iOSDFULibrary' ”  in my Podfile.

It worked fine until I upgraded Xcode to 10.2. There are some errors(about 100) occurred during project compilation.

please help :)

thanks a lot!

Note: This not work for me https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library/blob/master/README_OBJC.md

error example:

:-1: Undefined symbol: _swift_initStructMetadata

:-1: Undefined symbol: Swift.Array.append<A where A == A1.Element, A1: Swift.Sequence>(contentsOf: __owned A1) -> ()

:-1: Undefined symbol: method descriptor for static Swift._ObjectiveCBridgeable._unconditionallyBridgeFromObjectiveC(A._ObjectiveCType?) -> A

:-1: Undefined symbol: method descriptor for static Swift._ObjectiveCBridgeable._conditionallyBridgeFromObjectiveC(_: A._ObjectiveCType, result: inout A?) -> Swift.Bool

:-1: Undefined symbol: method descriptor for static Swift._ObjectiveCBridgeable._forceBridgeFromObjectiveC(_: A._ObjectiveCType, result: inout A?) -> ()

:-1: Undefined symbol: associated type descriptor for _ObjectiveCType

:-1: Undefined symbol: base conformance descriptor for Swift._SwiftNewtypeWrapper: Swift._HasCustomAnyHashableRepresentation

:-1: Undefined symbol: base conformance descriptor for Swift._SwiftNewtypeWrapper: Swift.RawRepresentable

:-1: Undefined symbol: protocol descriptor for Swift._SwiftNewtypeWrapper

:-1: Undefined symbol: protocol conformance descriptor for Swift.String : Swift._ObjectiveCBridgeable in Foundation

:-1: Undefined symbol: (extension in Swift):Swift._SwiftNewtypeWrapper< where A: Swift.Hashable, A.RawValue: Swift.Hashable>._toCustomAnyHashable() -> Swift.AnyHashable?

:-1: Undefined symbol: static (extension in Swift):Swift._SwiftNewtypeWrapper< where A.RawValue: Swift._ObjectiveCBridgeable>._unconditionallyBridgeFromObjectiveC(A.RawValue._ObjectiveCType?) -> A

:-1: Undefined symbol: static (extension in Swift):Swift._SwiftNewtypeWrapper< where A.RawValue: Swift._ObjectiveCBridgeable>._forceBridgeFromObjectiveC(_: A.RawValue._ObjectiveCType, result: inout A?) -> ()

:-1: Undefined symbol: (extension in Swift):Swift._SwiftNewtypeWrapper< where A.RawValue: Swift._ObjectiveCBridgeable>._bridgeToObjectiveC() -> A.RawValue._ObjectiveCType

:-1: Undefined symbol: generic specialization <Swift.String> of Swift.Array.init(arrayLiteral: A...) -> [A]

:-1: Undefined symbol: Swift.Set.contains(A) -> Swift.Bool

:-1: Undefined symbol: (extension in Swift):Swift._SwiftNewtypeWrapper< where A: Swift.Hashable, A.RawValue: Swift.Hashable>.hashValue.getter : Swift.Int

:-1: Undefined symbol: Swift.Set.remove(A) -> A?

:-1: Undefined symbol: type metadata accessor for Swift.Set

:-1: Undefined symbol: protocol conformance descriptor for Foundation.Calendar.Component : Swift.Hashable in Foundation

:-1: Undefined symbol: type metadata accessor for Foundation.DateComponents

:-1: Undefined symbol: ObjectiveC.ObjCBool.boolValue.getter : Swift.Bool

:-1: Undefined symbol: static Foundation.Calendar.current.getter : Foundation.Calendar

:-1: Undefined symbol: enum case for Foundation.Calendar.Component.day(Foundation.Calendar.Component.Type) -> Foundation.Calendar.Component

:-1: Undefined symbol: enum case for Foundation.Calendar.Component.second(Foundation.Calendar.Component.Type) -> Foundation.Calendar.Component

:-1: Undefined symbol: protocol conformance descriptor for Swift.UInt16 : Swift.FixedWidthInteger in Swift

:-1: Undefined symbol: Foundation.DateComponents.hour.getter : Swift.Int?

:-1: Undefined symbol: associated type descriptor for Code

:-1: Undefined symbol: Foundation.DateComponents.year.getter : Swift.Int?

:-1: Undefined symbol: method descriptor for Swift.SetAlgebra.insert(__owned A.Element) -> (inserted: Swift.Bool, memberAfterInsert: A.Element)

:-1: Undefined symbol: protocol conformance descriptor for Swift._ArrayBuffer<A> : Swift.Sequence in Swift

:-1: Undefined symbol: protocol conformance descriptor for Swift.UInt : Swift.UnsignedInteger in Swift

:-1: Undefined symbol: type metadata accessor for Swift._ArrayBuffer

:-1: Undefined symbol: protocol conformance descriptor for Swift.UInt64 : Swift.FixedWidthInteger in Swift

:-1: Undefined symbol: protocol conformance descriptor for Swift.UInt64 : Swift.UnsignedInteger in Swift

:-1: Undefined symbol: protocol conformance descriptor for Swift.Int32 : Swift.BinaryInteger in Swift

:-1: Undefined symbol: protocol conformance descriptor for Swift.UInt : Swift.BinaryInteger in Swift

:-1: Undefined symbol: generic specialization <Swift.UInt8> of Swift.Array.init(repeating: A, count: Swift.Int) -> [A]

:-1: Undefined symbol: __swift_FORCE_LOAD_$_swiftObjectiveC

:-1: Undefined symbol: type metadata for Swift.UnsafeRawPointer

:-1: Undefined symbol: static (extension in Foundation):Swift.String.Encoding.ascii.getter : (extension in Foundation):Swift.String.Encoding

:-1: Undefined symbol: generic specialization <Swift.Int8> of Swift.Array.startIndex.getter : Swift.Int

:-1: Undefined symbol: Foundation.DateComponents.month.getter : Swift.Int?

:-1: Undefined symbol: generic specialization <Swift.Int8> of Swift._ContiguousArrayBuffer.firstElementAddress.getter : Swift.UnsafeMutablePointer<A>

:-1: Undefined symbol: Swift.String.init(cString: Swift.UnsafePointer<Swift.Int8>) -> Swift.String

:-1: Undefined symbol: type metadata for Swift.Int8

:-1: Undefined symbol: protocol witness table for Swift.Int8 : Swift.Equatable in Swift

:-1: Undefined symbol: (extension in Foundation):Swift.StringProtocol.rangeOfCharacter(from: Foundation.CharacterSet, options: __C.NSStringCompareOptions, range: Swift.Range<Swift.String.Index>?) -> Swift.Range<Swift.String.Index>?

:-1: Undefined symbol: (extension in Foundation):Swift.StringProtocol.replacingOccurrences<A, B where A1: Swift.StringProtocol, B1: Swift.StringProtocol>(of: A1, with: B1, options: __C.NSStringCompareOptions, range: Swift.Range<Swift.String.Index>?) -> Swift.String

:-1: Undefined symbol: Foundation.URL.path.getter : Swift.String

:-1: Undefined symbol: __swift_isClassOrObjCExistentialType

:-1: Undefined symbol: Dispatch.+ infix(Dispatch.DispatchTime, Dispatch.DispatchTimeInterval) -> Dispatch.DispatchTime

:-1: Undefined symbol: Swift.Dictionary.init(dictionaryLiteral: (A, B)...) -> [A : B]

:-1: Undefined symbol: _swift_release

Parents Reply Children
Related