title: Convert iOS app to Android using Apportable - various reference and definition errors when building
body: <p>I am trying to convert an iOS app using <code>Apportable</code>.</p>
  
  <p>Unfortunately i am facing some errors when building using the command <code>apportable build</code>. I have tried to Google and search on StackOverflow for solutions on the problem. Found out that adding "add_params" in the configuration.json could help but that doesn't work and i don't exactly know what to add there.
  The build output:</p>
  
  <pre><code>Packaging resources.
  scons: *** [assets/ResourceRules.plist] Source `/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ResourceRules.plist' not found, needed by target `assets/ResourceRules.plist'.
  Build/android-armeabi-debug/Cromian.CHASER/Chaser/libChaser.a(ChooseShoppingLocationViewController.m.o):/Users/Anders/Documents/Xcode/iOS_code/Cromian/Chaser/chaser_app/Chaser/ChooseShoppingLocationViewController.m:function L_OBJC_CLASSLIST_REFERENCES_$_54: error: undefined reference to 'OBJC_CLASS_$_MKPointAnnotation'
  Build/android-armeabi-debug/Cromian.CHASER/Chaser/libChaser.a(ChooseShoppingLocationViewController.m.o):/Users/Anders/Documents/Xcode/iOS_code/Cromian/Chaser/chaser_app/Chaser/ChooseShoppingLocationViewController.m:function L_OBJC_CLASSLIST_REFERENCES_$_94: error: undefined reference to 'OBJC_CLASS_$_MKUserLocation'
  Build/android-armeabi-debug/Cromian.CHASER/Chaser/libChaser.a(ChooseShoppingLocationViewController.m.o):/Users/Anders/Documents/Xcode/iOS_code/Cromian/Chaser/chaser_app/Chaser/ChooseShoppingLocationViewController.m:function L_OBJC_CLASSLIST_REFERENCES_$_99: error: undefined reference to 'OBJC_CLASS_$_MKPinAnnotationView'
  scons: *** [Build/android-armeabi-debug/Chaser/apk/lib/armeabi/libverde.so] Error 1
  scons: building terminated because of errors.
  Anders-Friis-MacBook-Pro:chaser_app Anders$ 
  </code></pre>
  
  <p>I still have problems with <code>MKPointAnnotation</code>, <code>MKUserLocation</code> and <code>MKPinAnnotationView</code>.
  They are used in the following class: </p>
  
  <p>ChooseShoppingLocationViewController.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import &lt;MapKit/MapKit.h&gt;
  #import "NotificationController.h"
  
  @interface ChooseShoppingLocationViewController : UIViewController &lt;MKMapViewDelegate&gt;
  @property (strong, nonatomic) CLLocation *shoppingLocation;
  @end
  </code></pre>
  
  <p>ChooseShoppingLocationViewController.m</p>
  
  <pre><code>@interface ChooseShoppingLocationViewController ()
  @property (strong, nonatomic) IBOutlet MKMapView *mapView;
  @property (strong, nonatomic) MKPointAnnotation *shoppingLocationAnnotation;
  @end
  
  ...
  
  - (MKPointAnnotation *)getNewShoppingLocationAnnotation
  {
      MKPointAnnotation *annotation = [[MKPointAnnotation alloc] init];
      annotation.title = YOUR_SHOPPING_AREA_TEXT;
      return annotation;
  }
  
  ...
  
  - (void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation
  {
      userLocation.title = @"";
      CLLocationCoordinate2D location = [userLocation coordinate];
      MKCoordinateRegion region = MKCoordinateRegionMakeWithDistance(location, DISTANCE_SPAN, DISTANCE_SPAN);
  
      if (self.isFirstUserLocation) {
          dispatch_queue_t animateQueue = dispatch_queue_create("show user location", NULL);
          dispatch_async(animateQueue, ^{
              sleep(1.0);
              dispatch_async(dispatch_get_main_queue(), ^{
                  [self.mapView setRegion:region animated:YES];
                  [self.mapView selectAnnotation:self.shoppingLocationAnnotation animated:YES];
              });
          });
          self.isFirstUserLocation = NO;
      }
  }
  
  - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id &lt; MKAnnotation &gt;)annotation {
      if ([annotation isKindOfClass:[MKUserLocation class]]) {
          return nil;
      }
  
      MKPinAnnotationView *pinView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"DETAILPIN_ID"];
      [pinView setAnimatesDrop:YES];
      [pinView setCanShowCallout:YES];
      [pinView setSelected:YES];
      return pinView;
  }
  </code></pre>
  
  <p>Is it now allowed to use these classes with <code>Apportable</code>?</p>
  
  <p>Btw if i try to remove the use of these classes i am still getting the error:</p>
  
  <pre><code>scons: *** [assets/ResourceRules.plist] Source `/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ResourceRules.plist' not found, needed by target `assets/ResourceRules.plist'.
  scons: building terminated because of errors.
  </code></pre>