简体   繁体   中英

Authorize.net linking issue in xcode 5.1.1 with SenTestingKit.Framework

I have been working on the below issue since last 14 hours but unable to find out the solution.I have searched a lot but nothing worked out for me. Currently I am using the Xcode 5.1.1 and iOS SDK 7.1

I have following this link to integrate the Authorize.net SDK into my project. But getting these errors.I think this issue is related to SentestingKit.Framework.But unable to resolve this issue.Please let me know any suggestions or ideas.Thank you for reading my post.

在此处输入图片说明

You're going to have to hack around with the collection of .h and .m files that Authorize.Net has included. These were the changes that I had to make to their SDK after I included their three folders into my project (put them into their own folder AuthNet):

  • sdk/ANet SDK
  • sdk/Headers
  • sdk/Extension

    1. Project settings: a. Set your Other Linker Flags with -lxml2 to allow for xml parsing. b. Set your Header Search Paths with the path that contains "libxml2" header files. (ex. /usr/include/libxml2 with recursive checked). c. Add libxml2.dylib in library list (like in this post: iPhone libxml2 undefined symbols (with gdata, kissxml, touchxml, etc.) )
    2. Search the folder for "test" in the filename and delete authnetunittests.h and authnetunittests.m
    3. Remove duplicate .m and .h that match filename testAccount*.h and .m
    4. If you already have Reachability in your project, delete the Reachability.h and .m that you just copied in with this sdk
    5. testaccountcaptcharesponse.h comment out @property NSString captchaView
    6. messages.m add #pragma unused(statusMember) x2
    7. transactionResponse.m in init make self.messages = [[Messages alloc] init];
    8. LineItemType.m in description function, change NSMutableString to NSString

And then this forum post is going to be helpful: http://community.developer.authorize.net/t5/Integration-and-Testing/Problems-Registering-iOS-Device-for-Testing-in-Merchant-Account/mp/45999/highlight/true#M23275

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM