RealmSwift import no longer works using CocoaPods

Installing CocoaPods RealmSwift Kruherson is recommended here (or also recommended from the .io page area here ) basically works - however, there is one problem that remains in my application using Swift 0.92.3:

The next import is no longer recognized!

import RealmSwift

What else do I need to do to make CocoaPods work under Swift?

Here are the contents of my subfile:

platform :ios, '8.3'
use_frameworks!

xcodeproj '/Users/XXX/.../MyApp/MyApp.xcodeproj'

target 'MyApp' do
  pod 'RealmSwift', '>= 0.92.3'
end

Here is a screenshot of my Xcode project (only part of Pods) looks after installing "pod install":

enter image description here

There are a few “red things” - maybe the problem is here or what else will I miss?

What do I need to do to work again import RealmSwift?

+4
source
1

"" ! , Xcode . , , ...

, " MyApp WatchKit". :

xcodeproj 'MyApp.xcodeproj'
workspace 'MyApp.xcworkspace'
platform :ios, '8.3'

source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'

use_frameworks!
link_with 'MyApp', 'MyApp WatchKit Extension'

def shared_pods
      pod 'RealmSwift', '>= 0.92.3'
end

target 'MyApp' do
    shared_pods
end

target 'MyAppTests' do
    shared_pods
end

target 'MyApp WatchKit Extension' do
    shared_pods
end

, , - " RealmSwift" Realm-Object, :

enter image description here

, Realm (, "MyApp" "MyApp WatchKit Extension" ), , RealmObject.swift( . ):

enter image description here

0

All Articles