title: Unity Scripting armv7 Error
body: <p>I'm attempting to write my first unity script. This is the code for a file called TestPlugin.cs that is located in Assets/Plugins:</p>
  
  <pre><code>using UnityEngine; 
  using System.Runtime.InteropServices;
  
  public class TestPlugin : MonoBehaviour 
  {
      [DllImport ("__Internal")]
      private static extern int getString ();
  
      public static void Awake () {
        print (getString ());
      }
  } 
  </code></pre>
  
  <p>This is the code for two files that I import into the generated xCode project's classes folder:</p>
  
  <p><strong>TestPlugin.h:</strong></p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  @interface TestPlugin : NSObject
  
  -(int)getString;
  
  @end
  </code></pre>
  
  <p><strong>TestPlugin.m:</strong></p>
  
  <pre><code>#import "TestPlugin.h"
  
  @implementation TestPlugin
  
  - (id)init
  {
      self = [super init];
      if (self) {
          // Initialization code here.
      }
  
      return self;
  }
  
  - (int)getString
  {
      return 7;
  }
  
  @end
  </code></pre>
  
  <p>Finally this is the javascript file that sits inside the Asset folder.</p>
  
  <p>TestPluginTest.js:</p>
  
  <pre><code>function Update () 
  {
  TestPlugin.Awake ();
  }
  </code></pre>
  
  <p>Also, please note that i'm not necessarily expecting this all to work, just to compile at this point (though extra pointers and tips are welcome)</p>
  
  <p>The error I get in xCode when trying to build onto iPhone (actual device) is this:</p>
  
  <blockquote>
    <p>Undefined symbols for architecture armv7:   "_getString", referenced
    from:
          RegisterMonoModules()     in RegisterMonoModules.o ld: symbol(s) not found for architecture armv7 collect2: ld returned 1 exit status</p>
    
    <p>"_getString", referenced from:</p>
    
    <p>RegisterMonoModules()     in RegisterMonoModules.o</p>
    
    <p>ld: symbol(s) not found for architecture armv7</p>
    
    <p>collect2: ld returned 1 exit status</p>
  </blockquote>
  
  <p>I'm stumped! Thanks in advance!</p>