So here's my procedure. I create a new Podfile
in the project directory, then I added the following
platform :ios, '9.0'
use_frameworks!
target 'CPod' do
pod 'AFNetworking', '~> 2.5'
pod 'ORStackView', '~> 2.0'
pod 'SwiftyJSON', '~> 2.1'
end
I fire off pod install
, and everything goes well, open up the xcworkspace
. I then go over to ViewController.swift
and if I try to import a pod I get No such module 'SwiftyJSON'
, if I were to do import SwiftyJSON
. Any ideas?
EDIT: SwiftyJSON is a Swift based module, not Obj-C
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…