I am trying to add Realm to my application written quickly. I followed the tutorial, and I can’t get it to work. The biggest problem is that when I try to import Realm, I get No such module 'Realm'I don’t know what else to try. You can see my efforts below.
Here you can see the instructions: http://realm.io/docs/cocoa/0.85.0/#swft
I also copied the following instructions:
Due to the lack of proper infrastructure for managing Swift dependency, using Realm in your project requires the following steps:
- Add Realm as a submodule by opening the terminal, cd-ing in the top-level project directory and issuing the git subodule add git @ github.com command: realm / realm- cocoa.git
- Open the realm-cocoa folder and drag Realm.xcodeproj into the file navigator of your Xcode project.
- In Xcode, go to the target configuration window by clicking the blue project icon and selecting the target application program in the "Targets" section of the sidebar.
- In the tab bar at the top of this window, open the Build Phases panel.
- Expand the Goal Dependencies gorup and add the iOS Realms infrastructure.
- Expand the "Link Binary with Libraries" group and add the iOS Realms infrastructure as well as libC ++. dylib.
- Click the + button in the upper left corner of the panel and select "New phase of copy files." Rename this new step to Copy Frames, set the Assignment to Frames, and add Realm.framework.
- realm- cocoa/Realm/Swift/RLMSupport.swift Xcode, " , ".
, :




