所以我在我的xCode项目中使用了pod deintegrate
,然后当我随后执行pod install
时,我收到以下Buildtime错误。
我不知道为什么会发生这种情况,它在我解体之前就已经开始了。 Apple Mach-O链接器错误组
我已经尝试清理项目并删除并重新添加ViewController,这是在其他答案中提出的。没用。
"type metadata accessor for Alamofire.Result", referenced from:
"Alamofire.(request (Alamofire.URLConvertible, method : Alamofire.HTTPMethod, parameters : [Swift.String : Any]?, encoding : Alamofire.ParameterEncoding, headers : [Swift.String : Swift.String]?) -> Alamofire.DataRequest).(default argument 1)", referenced from:
"Alamofire.(request (Alamofire.URLConvertible, method : Alamofire.HTTPMethod, parameters : [Swift.String : Any]?, encoding : Alamofire.ParameterEncoding, headers : [Swift.String : Swift.String]?) -> Alamofire.DataRequest).(default argument 2)", referenced from:
"SwiftyJSON.JSON.init (Any) -> SwiftyJSON.JSON", referenced from:
"protocol witness table for Swift.Int : SwiftyJSON.JSONSubscriptType in SwiftyJSON", referenced from:
"SwiftyJSON.JSON.subscript.getter : ([SwiftyJSON.JSONSubscriptType]...) -> SwiftyJSON.JSON", referenced from:
"Alamofire.Result.value.getter : A?", referenced from:
"protocol witness table for Swift.String : Alamofire.URLConvertible in Alamofire", referenced from:
"protocol descriptor for SwiftyJSON.JSONSubscriptType", referenced from:
"protocol witness table for Alamofire.JSONEncoding : Alamofire.ParameterEncoding in Alamofire", referenced from:
"SwiftyJSON.JSON.arrayValue.getter : [SwiftyJSON.JSON]", referenced from:
"static Alamofire.JSONEncoding.default.getter : Alamofire.JSONEncoding", referenced from:
"Alamofire.(request (Alamofire.URLConvertible, method : Alamofire.HTTPMethod, parameters : [Swift.String : Any]?, encoding : Alamofire.ParameterEncoding, headers : [Swift.String : Swift.String]?) -> Alamofire.DataRequest).(default argument 3)", referenced from:
"type metadata for Alamofire.JSONEncoding", referenced from:
"static SwiftyJSON.JSON.null.getter : SwiftyJSON.JSON", referenced from:
"Alamofire.(request (Alamofire.URLConvertible, method : Alamofire.HTTPMethod, parameters : [Swift.String : Any]?, encoding : Alamofire.ParameterEncoding, headers : [Swift.String : Swift.String]?) -> Alamofire.DataRequest).(default argument 4)", referenced from:
"Alamofire.request (Alamofire.URLConvertible, method : Alamofire.HTTPMethod, parameters : [Swift.String : Any]?, encoding : Alamofire.ParameterEncoding, headers : [Swift.String : Swift.String]?) -> Alamofire.DataRequest", referenced from:
"type metadata for SwiftyJSON.JSON", referenced from:
"Alamofire.DataRequest.(responseJSON (queue : __ObjC.DispatchQueue?, options : __ObjC.JSONSerialization.ReadingOptions, completionHandler : (Alamofire.DataResponse<Any>) -> ()) -> Self).(default argument 0)", referenced from:
"protocol witness table for Swift.String : SwiftyJSON.JSONSubscriptType in SwiftyJSON", referenced from:
"Alamofire.DataRequest.(responseJSON (queue : __ObjC.DispatchQueue?, options : __ObjC.JSONSerialization.ReadingOptions, completionHandler : (Alamofire.DataResponse<Any>) -> ()) -> Self).(default argument 1)", referenced from:
"Alamofire.DataRequest.responseJSON (queue : __ObjC.DispatchQueue?, options : __ObjC.JSONSerialization.ReadingOptions, completionHandler : (Alamofire.DataResponse<Any>) -> ()) -> Self", referenced from:
clang: error: linker command failed with exit code 1 (use -v to see invocation)`
答案 0 :(得分:1)
正如它所发生的那样,here发布的答案对我有用了!
打开Xcode中的产品菜单下拉并按住Option,“Clean”变为“Clean Build Folder”