inperson-sdk-ios icon indicating copy to clipboard operation
inperson-sdk-ios copied to clipboard

AuthNet Error Conflicts with Swift Error Definiton

Open mdewolfe opened this issue 4 years ago • 0 comments

The Authorize.NET definition of Error conflicts with the Error protocol defined In Foundation.

Foundation Error (Found in Swift->Misc):

public protocol Error {
}
// AuthNetSDK->Error.h
@interface Error : NSObject {

	NSString *errorCode;
	NSString *errorText;
}

This has appeared in the past and it seems not enough care has been taken to avoid the naming collisions, see https://github.com/AuthorizeNet/inperson-sdk-ios/issues/24

This is a critical conflict since it conflicts with a Foundation protocol.

Using SDK v4.2, Targeting iOS 12, using Swift 5.

mdewolfe avatar Jul 17 '20 20:07 mdewolfe