<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic iOS5 Integration - Compile Time Errors in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/iOS5-Integration-Compile-Time-Errors/m-p/25753#M13725</link>
    <description>&lt;P&gt;I've been trying to get the iOS SDK working in a new app. The app targets iOS 5.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HOW I GOT TO THIS POINT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initially I simply added the SDK as a library (dragged all the files into my project) and received 30+ compiler errors (Xcode stopped counting shortly after 30). Most errors were related to my app's usage of Automated Reference Counting. After digging around I determined that the best approach (please feel free to correct me if this is wrong) was to build the SDK as a static library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After mucking around with the build.config and build.sh files to revise them from 4.3 to 5.1, I was able to successfully build it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added all of the .h files and the newly created libANMobilePaymentLib.a.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added &lt;FONT face="courier new,courier"&gt;#import "AuthNet.h&lt;/FONT&gt;" to the top of the class I want to call it from (specifically, ViewController.h).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, so good. No errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE I HIT A WALL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In ViewController.m, I added the following line to my init:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[AuthNet authNetWithEnvironment:ENV_TEST];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This produced 2 errors. Here is the print out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ld /Users/marioparise/Library/Developer/Xcode/DerivedData/smr-eethymwozobssbdumgpocjynucke/Build/Products/Debug-iphoneos/smr.app/smr normal armv7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cd /Users/marioparise/Desktop/Xcode/smr&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setenv IPHONEOS_DEPLOYMENT_TARGET 5.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -L/Users/marioparise/Library/Developer/Xcode/DerivedData/smr-eethymwozobssbdumgpocjynucke/Build/Products/Debug-iphoneos -F/Users/marioparise/Library/Developer/Xcode/DerivedData/smr-eethymwozobssbdumgpocjynucke/Build/Products/Debug-iphoneos -F/Users/marioparise/Desktop/Xcode/smr -F/Users/marioparise/Desktop/Xcode/smr/smr -filelist /Users/marioparise/Library/Developer/Xcode/DerivedData/smr-eethymwozobssbdumgpocjynucke/Build/Intermediates/smr.build/Debug-iphoneos/smr.build/Objects-normal/armv7/smr.LinkFileList -dead_strip -lxml2 -fobjc-arc -miphoneos-version-min=5.1 -framework SystemConfiguration -framework UIKit -framework Foundation -framework CoreGraphics -framework MapKit -framework CoreLocation -o /Users/marioparise/Library/Developer/Xcode/DerivedData/smr-eethymwozobssbdumgpocjynucke/Build/Products/Debug-iphoneos/smr.app/smr&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Undefined symbols for architecture armv7:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "_OBJC_CLASS_$_AuthNet", referenced from:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objc-class-ref in ViewController.o&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ld: symbol(s) not found for architecture armv7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;clang: error: linker command failed with exit code 1 (use -v to see invocation)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on what I'm doing wrong? Is my whole approach off?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!!!&lt;/P&gt;</description>
    <pubDate>Thu, 19 Apr 2012 18:50:30 GMT</pubDate>
    <dc:creator>marioparise</dc:creator>
    <dc:date>2012-04-19T18:50:30Z</dc:date>
    <item>
      <title>iOS5 Integration - Compile Time Errors</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/iOS5-Integration-Compile-Time-Errors/m-p/25753#M13725</link>
      <description>&lt;P&gt;I've been trying to get the iOS SDK working in a new app. The app targets iOS 5.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HOW I GOT TO THIS POINT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initially I simply added the SDK as a library (dragged all the files into my project) and received 30+ compiler errors (Xcode stopped counting shortly after 30). Most errors were related to my app's usage of Automated Reference Counting. After digging around I determined that the best approach (please feel free to correct me if this is wrong) was to build the SDK as a static library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After mucking around with the build.config and build.sh files to revise them from 4.3 to 5.1, I was able to successfully build it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added all of the .h files and the newly created libANMobilePaymentLib.a.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added &lt;FONT face="courier new,courier"&gt;#import "AuthNet.h&lt;/FONT&gt;" to the top of the class I want to call it from (specifically, ViewController.h).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, so good. No errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE I HIT A WALL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In ViewController.m, I added the following line to my init:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[AuthNet authNetWithEnvironment:ENV_TEST];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This produced 2 errors. Here is the print out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Ld /Users/marioparise/Library/Developer/Xcode/DerivedData/smr-eethymwozobssbdumgpocjynucke/Build/Products/Debug-iphoneos/smr.app/smr normal armv7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cd /Users/marioparise/Desktop/Xcode/smr&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setenv IPHONEOS_DEPLOYMENT_TARGET 5.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -L/Users/marioparise/Library/Developer/Xcode/DerivedData/smr-eethymwozobssbdumgpocjynucke/Build/Products/Debug-iphoneos -F/Users/marioparise/Library/Developer/Xcode/DerivedData/smr-eethymwozobssbdumgpocjynucke/Build/Products/Debug-iphoneos -F/Users/marioparise/Desktop/Xcode/smr -F/Users/marioparise/Desktop/Xcode/smr/smr -filelist /Users/marioparise/Library/Developer/Xcode/DerivedData/smr-eethymwozobssbdumgpocjynucke/Build/Intermediates/smr.build/Debug-iphoneos/smr.build/Objects-normal/armv7/smr.LinkFileList -dead_strip -lxml2 -fobjc-arc -miphoneos-version-min=5.1 -framework SystemConfiguration -framework UIKit -framework Foundation -framework CoreGraphics -framework MapKit -framework CoreLocation -o /Users/marioparise/Library/Developer/Xcode/DerivedData/smr-eethymwozobssbdumgpocjynucke/Build/Products/Debug-iphoneos/smr.app/smr&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Undefined symbols for architecture armv7:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; "_OBJC_CLASS_$_AuthNet", referenced from:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objc-class-ref in ViewController.o&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ld: symbol(s) not found for architecture armv7&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;clang: error: linker command failed with exit code 1 (use -v to see invocation)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on what I'm doing wrong? Is my whole approach off?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!!!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 18:50:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/iOS5-Integration-Compile-Time-Errors/m-p/25753#M13725</guid>
      <dc:creator>marioparise</dc:creator>
      <dc:date>2012-04-19T18:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: iOS5 Integration - Compile Time Errors</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/iOS5-Integration-Compile-Time-Errors/m-p/26075#M13881</link>
      <description>&lt;P&gt;This is something that I wasn't able to answer myself, so I talked to one of our iOS developers about the issue.&amp;nbsp; It sounds like the most likely problem is that the library is not being correctly linked.&amp;nbsp; You'll want to make sure that your project file that you've added the library as a selected target.&amp;nbsp; You'll also need to make sure that libANMobilePaymentRelease.a is present as a binary link in the project build phases.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2012 20:30:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/iOS5-Integration-Compile-Time-Errors/m-p/26075#M13881</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2012-04-27T20:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: iOS5 Integration - Compile Time Errors</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/iOS5-Integration-Compile-Time-Errors/m-p/30976#M16181</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;Can you tell me what changes to did to the build.config and biuld.sh to make it work. I have been struggling a lot but I am getting all kinds of error. When I run the build.sh I get the error libxml2/tree.h not found. How do I get around this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any kind of help is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2012 21:36:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/iOS5-Integration-Compile-Time-Errors/m-p/30976#M16181</guid>
      <dc:creator>vikram</dc:creator>
      <dc:date>2012-10-30T21:36:57Z</dc:date>
    </item>
  </channel>
</rss>

