Reply
Highlighted
Member
Posts: 5
Registered: ‎08-26-2013

Not able to #import Authorize.Net header file

I followed the instruction on this site http://developer.authorize.net/integration/fifteenminutes/ios/ and dragged and dropped the XCode project file of the SDK but still am not able to reference the Header files in the xcode project. I am trying to do a #import for AuthNet.h but not able to load it even though the project is in my Project. I also tried to put it in the workspace and still cannot import.

 

I am using XCode 5 DP6 using iOS7 SDK and developing for iOS6 and iOS7.

 

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

Re: Not able to #import Authorize.Net header file

Hello ankurmytime,

 

Our mobile team has some information that may help.

 

Because we're unsure how you are setting up your project, the easiest way for the might be to copy the Header and implementation files into their project directly. (Without ANetSDK as a dependent project.)

 

Right Click on the project and add the folder which contains the header and implementation files. Although, this way lead to some compile time errors because our SDK is not ARC compliant. (Which can be remedied by turning off ARC explicitly for these files in the project settings.)

 

Please note: Our SDK is not currently ARC compliant nor does support XCode 5 inherently.

 

Richard