Reply
Highlighted
Member
Posts: 6
Registered: ‎11-13-2013

where is ANMobilePaymentLib in autherize sdk

[ Edited ]

In my project i need to implement payment gateway so that i tried to implement through Authorize.Net iOS SDK .

By googling i have followed some steps as in below

1)Downloaded Authorize.Net iOS SDK from https://developer.authorize.net/integration/fifteenminutes/ios/

2) Goto MyProject -> Targets -> Build Settings.

1.Header Search Paths :

${SDK_DIR}/usr/include/libxml2

Mark the Recursive checkbox as checked

$(SRCROOT)/anet_ios_sdk-1.1.1/ANMobilePaymentLib

Library Search Paths : $(SRCROOT)/anet_ios_sdk-1.1.1/ANMobilePaymentLib

Other Linker Flags : -lxml2

3) Imported SystemConfiguration.framework

4) Imported libxml2.2.dylib and libxml2dylib

3) Drag and drop the ANMobilePaymentLib.xcodeproj file from Authorize.Net SDK folder into Xcode under MyProject.

Error : (while compiling)

'MobileDeviceLoginRequest.h' file not found

// Here i can't access the header folder

4 ) So that i have tried to add the sdk into my project like a framework , then i got different error

Error : (while compiling)

ld: warning: directory not found for option '-L/Users/sathish/Documents/CompanyApps/TestApps/PaymentGateway/anet_ios_sdk-1.1.1/ANMobilePaymentLib'

// Here i can't find the ANMobilePaymentLib in Authorize.Net iOS SDK and where i can download LibANMobilePaymentLib.a

pls guide me to resolve this issue.

Highlighted
Member
Posts: 6
Registered: ‎11-13-2013

mobileDeviceLoginSucceeded not called

    MobileDeviceLoginRequest *mobileDeviceLoginRequest =
    [MobileDeviceLoginRequest mobileDeviceLoginRequest];
    mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.name = @"";
    mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.password = @"";
    
    
    NSLog(@"UIDevice =%@",[[[UIDevice currentDevice] identifierForVendor] UUIDString]);
    
    mobileDeviceLoginRequest.anetApiRequest.merchantAuthentication.mobileDeviceId =
    [[[UIDevice currentDevice] identifierForVendor] UUIDString];
    
    AuthNet *an = [AuthNet getInstance];
    [an setDelegate:self];
    [an mobileDeviceLoginRequest: mobileDeviceLoginRequest];

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: mobileDeviceLoginSucceeded not called

Set your Library Search Paths with the path that contains the "Authorize.Net SDK" library. (ex. "$(SRCROOT)/ANMobilePaymentLib").

 

sound like you didn't change directory so it probably

 

$(SRCROOT)/anet_ios_sdk-1.1.1

Highlighted
Administrator Administrator
Administrator
Posts: 563
Registered: ‎08-03-2011

Re: mobileDeviceLoginSucceeded not called

 

Hi sathishskd,

 

There is no need to set path for the ANMobilePaymentLib folder. You can remove this from the header search paths completely. The SDK has required header and implementation files. That should be enough. I suggest that you remove path for the “ANMobilePaymentLib” under Library Search path which is found on general project settings.

 

Thanks,

Joy

Highlighted
Member
Posts: 6
Registered: ‎11-13-2013

Re: mobileDeviceLoginSucceeded not called

Hi RaynorC1emen7

I have followed your idea but i get following error ,

 

ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit' for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

Highlighted
Administrator Administrator
Administrator
Posts: 563
Registered: ‎08-03-2011

Re: mobileDeviceLoginSucceeded not called

 

Hi,
 
The unit testing classes aren't required for the build, so go ahead and remove sentestingkit references and any other unit test class that is blocking your build.
 
Thanks,
Joy
Highlighted
Member
Posts: 2
Registered: ‎06-04-2014

Re: mobileDeviceLoginSucceeded not called

[ Edited ]

Does anyone figure out how to get this SDK working?

I followed all the steps that there are on the web (starting with turning off ARC for all the .m files included in the library).

After figuring that out, I happen to have the same exact error in this post and I haven't found a way to get it working.

I'm also following this project: https://github.com/sibahota059/AuthorizeNetPaymentTest/tree/master that I managed to get it working; however, when I want to replicate the solution, I just can't.

The working example doesn't get rid of the unit test and doesn't include sentestingkit, btw.

And yes, I have tried to delete those files but the error keep appearing.

 

Using: Xcode 5. Please, HELP!

 

 

ld: warning: directory not found for option '-L/Users/ernestobarron/Developer/Kinektr/iOS/Authorize.NetEBarron/Black011/anet_ios_sdk-1.1.1/ANMobilePaymentLib'

Undefined symbols for architecture i386:

  "_OBJC_CLASS_$_SenTestCase", referenced from:

      _OBJC_CLASS_$_AuthNetUnitTests in AuthNetUnitTests.o

  "_OBJC_METACLASS_$_SenTestCase", referenced from:

      _OBJC_METACLASS_$_AuthNetUnitTests in AuthNetUnitTests.o

  "_STComposeString", referenced from:

      -[AuthNetUnitTests doMobileRegistrationAndLoginToGetSessionToken] in AuthNetUnitTests.o

      -[AuthNetUnitTests doMobileRegistrationAndLoginToGetCPSessionToken] in AuthNetUnitTests.o

      -[AuthNetUnitTests testAuthNetSingletonCreationWithEnv] in AuthNetUnitTests.o

      -[AuthNetUnitTests testMobileDeviceRegistrationAndLoginRequest] in AuthNetUnitTests.o

      -[AuthNetUnitTests testMobileDeviceLoginRequest] in AuthNetUnitTests.o

      -[AuthNetUnitTests testSimpleAuthNetPurchase] in AuthNetUnitTests.o

      -[AuthNetUnitTests testCardPresentAuthNetPurchaseWithTrack1And2] in AuthNetUnitTests.o

      ...

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

 

 

This is the error that appear when getting rid of Unit Tests Folder:

 

clang: error: no such file or directory: '/Users/ernestobarron/Developer/Kinektr/iOS/Authorize.NetEBarron/Black011/anet_ios_sdk-1.1.1/AuthNetUnitTests.m'

clang: error: no input files

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Highlighted
Member
Posts: 3
Registered: ‎06-03-2014

Re: mobileDeviceLoginSucceeded not called

Same problem

can any one provide the authorzi.net integration Sample App

Highlighted
Member
Posts: 1
Registered: ‎07-04-2014

Re: Mach -O Linker Error & Dsymutil Error

[ Edited ]

Hi Team,

 

I have integrate the anet_ios_sdk-1.1.1 in a sample project , its work fine as given in example.

 

but when i integrate it into my Live app with same steps , getting clag Error and Dsymutil error.

 

How to fix this issue. 

 

 

(Sample App get from URL : https://github.com/sibahota059/AuthorizeNetPaymentTest/tree/master)

 

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

Re: Mach -O Linker Error & Dsymutil Error

Have you tried using the latest iOS SDK from Authorize.Net? 

 

https://github.com/AuthorizeNet/sdk-mpos-ios

 

Richard