所以这是我的程序。我在项目目录中创建了一个新的 Podfile ,然后我添加了以下内容
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我解雇 pod install ,一切顺利,打开 xcworkspace 。然后我转到 ViewController.swift 如果我尝试导入一个pod我得到没有这样的模块'SwiftyJSON' ,如果我要做导入SwiftyJSON 。任何想法?
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?
编辑:SwiftyJSON是一个基于Swift的模块,而不是Obj-C
SwiftyJSON is a Swift based module, not Obj-C
推荐答案尝试将 Pods 框架添加到构建方案并构建框架。构建之后,构建/运行项目。
Try adding the Pods framework to your build scheme and building the framework. After you've built it, build/run your project.
步骤:
更多推荐
当我使用CocoaPods时,“没有这样的模块”
发布评论