title: Use of unresolved identifier 'Realm'
body: <p>I am new to both Realm and iOS development and I am stuck due to this error. I downloaded the latest version of Realm i.e. 0.98.0 and followed the steps mentioned in the Getting Started section</p>
  
  <ol>
  <li>Download the latest release of Realm and extract the zip.</li>
  <li>Go to your Xcode project’s “General” settings. Drag RealmSwift.framework and Realm.framework from the ios/swift-2.1.1/, watchos/, tvos/ or osx/swift-2.1.1/ directory to the “Embedded Binaries” section. Make sure Copy items if needed is selected and click Finish.</li>
  <li>In your unit test target’s “Build Settings”, add the parent path to RealmSwift.framework in the “Framework Search Paths” section.</li>
  <li><p>If using Realm in an iOS, watchOS or tvOS project, create a new “Run Script Phase” in your app’s target’s “Build Phases” and paste the following snippet in the script text field:</p>
  
  <p>bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh"</p></li>
  </ol>
  
  <p>As mentioned in the answer to the following question I added <strong>$(PROJECT_DIR)</strong> in the Framework Search Paths</p>
  
  <p><a href="https://stackoverflow.com/questions/31896667/how-to-add-the-parent-path-to-realmswift-framework-in-the-framework-search-path">How to add the parent path to RealmSwift.framework in the “Framework Search Paths” section?</a></p>
  
  <p>After that I created a class called Dog and added the following code in AppDelegate.swift</p>
  
  <pre><code>let myDog = Dog()
  myDog.name = "Rex"
  myDog.age = 1
  print("name of dog: \(myDog.name)")
  
  // Get the default Realm
  let realm = try! Realm()
  
  // Persist your data easily
  try! realm.write {
    realm.add(myDog)
  }
  </code></pre>
  
  <p>When I try to build the project I get an error "Use of unresolved identifier 'Realm'" on the following line :</p>
  
  <pre><code>let realm = try! Realm()
  </code></pre>
  
  <p>I have tried creating new projects and carefully following the above steps but I still get the error. For Step 2 I tried added the framework with both the "Create groups" and "Create folder references" options while keeping "Copy items if needed" checkbox ticked.</p>
  
  <p>I am using XCode 7.2.1, OS 10.11.13 and Swift 2.1.1. I do not have Cocoapods installed at the moment</p>
  
  <p>Am I missing some step somewhere? Any help would be really appreciated.</p>