Reputation: 3593
I have an Objective-C project.
UIView
classes are written in Swift.UIViewController
subclass using Core-Plot is written in Objc.It has no problem, until...
Now, I am trying to create a new UIViewController
using Core-Plot written in Swift.
Trying to use import CorePlot
to import external framework Core-Plot as described here. But the compiler shows the error "No such module 'CorePlot'"
Here is my Podfile:
platform :ios, '8.0'
target 'Meters' do
# use_frameworks!
# Pods for Meters
pod 'PQFCustomLoaders', '~> 1.1.0'
pod 'CorePlot'
end
pod install
and 'pod update'Neither works for me. Please let me know if any other information needed.
Upvotes: 0
Views: 1021
Reputation: 27381
You have to build pods as frameworks (uncomment use_frameworks!
in the pod file) to create modules. Core Plot will work fine that way but I don't know about the other pod you're using.
Upvotes: 1