title: Install Realm in a Swift App
body: <p>I am trying to add Realm to my app written in swift. I have followed the tutorial and I can't seem to get it to work.  The biggest problem is that when I try to import Realm I get <code>No such module 'Realm'</code>  I don't know what else to try.  You can see my efforts below.</p>
  
  <p>You can see the instructions here: <a href="http://realm.io/docs/cocoa/0.85.0/#swft" rel="nofollow noreferrer">http://realm.io/docs/cocoa/0.85.0/#swft</a></p>
  
  <p>I have also copied the instructions below:</p>
  
  <p>Due to the current lack of proper infrastructure for Swift dependency management, using Realm in your project requires the following steps:</p>
  
  <ol>
  <li>Add Realm as a submodule by opening the Terminal, cd-ing into your top-level project directory, and entering the command git submodule add git@github.com:realm/realm-cocoa.git</li>
  <li>Open the realm-cocoa folder, and drag Realm.xcodeproj into the file navigator of your Xcode project.</li>
  <li>In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the “Targets” section in the sidebar.</li>
  <li>In the tab bar at the top of that window, open the “Build Phases” panel.</li>
  <li>Expand the “Target Dependencies” gorup, and add Realm’s iOS framework.</li>
  <li>Expand the “Link Binary with Libraries” group, and add Realm’s iOS framework as well as libc++.dylib.</li>
  <li>Click on the + button at the top left of the panel and select “New Copy Files Phase”. Rename this new phase to “Copy Frameworks”, set the “Destination” to “Frameworks”, and add Realm.framework.</li>
  <li>Drag the file at realm-cocoa/Realm/Swift/RLMSupport.swift into the file navigator of your Xcode project, unchecking the “Copy items if needed” checkbox.</li>
  </ol>
  
  <p>Below is what it looks like in my project:</p>
  
  <p><img src="https://i.stack.imgur.com/c0C74.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/c4ZUf.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/8pdAC.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/zXIlO.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/8aurh.png" alt="enter image description here"></p>