[英]Unable to add Parse using CocoaPods
Following are the steps I did to add Parse
using CocoaPods
but still getting unresolved error. 以下是我使用
CocoaPods
添加Parse
的步骤,但仍然出现未解决的错误。
Added Pods File: 添加的Pod文件:
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
pod 'Parse'
target 'GroomCal' do
end
target 'GroomCalTests' do
end
target 'GroomCalUITests' do
end
After that I did pod install
. 之后,我进行了
pod install
。 Parse and Bolts frameworks got installed (I can see them in XCode). 已安装Parse和Bolts框架(我可以在XCode中看到它们)。
I then added -Bridging-Header.h and added #import <Parse/Parse.h>
to it. 然后,我添加了-Bridging-Header.h并添加了
#import <Parse/Parse.h>
。
When I try to import Parse
in AppDelegate.swift
file, I still get No such Module Parse
error message. 当我尝试在
AppDelegate.swift
文件中import Parse
时,仍然收到No such Module Parse
错误消息。 What am I missing here. 我在这里想念什么。
I did use the *.xcworkspace
file to open the project too. 我确实也使用
*.xcworkspace
文件打开了项目。
To use cocoapods with swift you need to add the flag use_frameworks!
要快速使用cocoapods,您需要添加标记
use_frameworks!
to the podfile as swift doesn't allow to add static libraries. 到podfile中,因为swift不允许添加静态库。
source Cocoapods blog 来源Cocoapods博客
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.