2

以下是我添加Parse使用CocoaPods但仍然出现未解决错误的步骤。

添加了 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

之后我做到了pod install。Parse 和 Bolts 框架已安装(我可以在 XCode 中看到它们)。

然后我添加了 -Bridging-Header.h 并添加#import <Parse/Parse.h>到它。

在此处输入图像描述

当我尝试import Parse输入AppDelegate.swift文件时,我仍然收到No such Module Parse错误消息。我在这里想念什么。

在此处输入图像描述

我也确实使用该*.xcworkspace文件打开了项目。

4

1 回答 1

3

要将 cocoapods 与 swift 一起使用,您需要将标志添加 use_frameworks!到 podfile 中,因为 swift 不允许添加静态库。

来源Cocoapods 博客

于 2015-09-26T16:43:48.263 回答