Reputation:
I trying to use FolioReaderKit
in my project. At first I download FolioReaderKit
example project and install pod like this:
platform :ios, '9.0'
use_frameworks!
inhibit_all_warnings!
def shared_pods
pod 'FolioReaderKit', path: '../'
end
def testing_pods
pod 'Quick', '1.3.2'
pod 'Nimble', '7.3.1'
end
target 'Example' do
shared_pods
end
target 'Storyboard-Example' do
shared_pods
end
target 'MultipleInstance-Example' do
shared_pods
end
target 'FolioReaderTests' do
shared_pods
testing_pods
end
After that I open project and build app. All works fine. Now I trying to add FolioReaderKit
in my project. I read how to use Cocoapods
in GitHub
on FolioReaderKit
page. And my podfile look like this:
platform :ios, '9.0'
use_frameworks!
target 'myProject' do
pod 'FolioReaderKit'
end
But when I use this pod in my app I get next error: Primary key property 'name' does not exist on object 'RealmSwiftClassPermission'
. Why this happens and how to fix this error?
Upvotes: 2
Views: 440
Reputation: 76
FolioReader
cache by using pod cache clean FolioReaderKit --all
. This will make sure you are installing the fresh version of the pod on the next install.
pod deintegrate
then pod install
. To make sure you are installing the newest version, simply add pod 'FolioReaderKit', '~> 1.4.0'
xcworkspace
in your project instead of xcodeproj
.Upvotes: 0
Reputation: 1101
there is a similiar error like yours. Find it here -> Github discussion
Like iShox said already ...
pod 'FolioReaderKit', '~> 1.4.0'
$ pod install
$ pod update
For the future - when you have any errors on your pods, take a look at the version. You can find it on the github repo and mostly at the beginning of the readme :-)
Upvotes: 0
Reputation: 2315
Replace pod 'FolioReaderKit', path: '../'
with
pod 'FolioReaderKit', '~> 1.4.0'
Then try to use pod repo update
and pod install
if doesn't work then check Ravi Panchal's Answer
if Ravi's answer doesn't work check the answer too
Upvotes: 2
Reputation: 369
Try this, Open project's pod file
pod 'FolioReaderKit', '~> 1.4.0'
After that
pod repo update
pod install
Upvotes: 2