在pod中安装了可可豆之后,在Pods文件夹中没有解析框架

时间:2021-09-12 10:45:03

I'm trying to import Parse SDK with cocoapods (version 0.37.2). I have recentl but right after doing a pod install There is no Parse.framework in the Pod folder...

我正在尝试用cocoapods导入解析SDK(版本0.37.2)。我最近安装了一个pod,但是在pod文件夹中没有Parse.framework…

When I try to build the app, it failed because with it doesn't find the parse.h from #import <Parse/Parse.h> in the bridging header file (which is quite normal because there is no Parse Framework).

当我尝试构建应用程序时,它失败了,因为它没有找到解析。从#进口h <解析 解析。在桥接头文件中的h> (这很正常,因为没有解析框架)。

Is this possible that as I previously used Parse for another project, when my computer downloads it, it changes the name, such as Parse.framework(2) and then the system can't retrieve it...

是否有可能像我之前在另一个项目中使用的Parse那样,当我的计算机下载它时,它改变了名称,比如Parse.framework(2),然后系统就无法检索它……

Here are the messages from terminal right after the pod install (which look good):

以下是pod安装后终端的消息(看起来不错):

Analyzing dependencies

依赖关系分析

Downloading dependencies

下载附件

Installing Bolts 1.2.0 (was 1.2.0)

安装螺栓1.2.0(为1.2.0)

Installing Parse 1.7.5 (was 1.7.5)

安装Parse 1.7.5(为1.7.5)

Generating Pods project

生成豆荚项目

Integrating client project

整合客户端项目

And this is what the podfile looks like :

这就是播客的样子:

platform :ios, '8.0'

ios平台:,“8.0”

source 'https://github.com/CocoaPods/Specs.git'

源“https://github.com/CocoaPods/Specs.git”

`pod 'Parse', '~> 1.7.5'``

“pod”解析”、“~ > 1.7.5’‘

Last point: I have recently upgraded my version of rbenv (from 2.1.2 to 2.2.2) and as Cocoapods is in ruby, I am wondering there could be a link....

最后一点:我最近升级的版本rbenv 2.2.2(2.1.2)和Cocoapods在ruby中,我想会有一个链接....

Any help would be grateful !

任何帮助都将感激不尽!

Thanks

谢谢

2 个解决方案

#1


1  

What is your version of your cocoapods?

你的可可豆是什么样子的?

If you are using 0.38.0, it might be changes of CocoaPods make the spec fail. Try to replace

如果您使用的是0.38.0,那么可能是由于改变了可可粉而导致该规范失败。试图取代

pod 'Parse', '~> 1.7.5'

with

pod 'Parse', podspec: 'https://gist.githubusercontent.com/siuying/6a548f1924ed3243aeb5/raw/ccea130108b14afbaf22dbe828f75a62d750a4a0/Parse.podspec.json'

and see if it works for you.

看看它是否适合你。

#2


0  

If your "Objective-C Bridging Header" in project level it's possible to get this error. You should set this in target level! After added in your target please don't forget to remove from project level. This must solve your problem, I solve like this.

如果您在项目级别的“Objective-C桥接头”中有可能出现此错误。您应该将其设置为目标级别!在添加目标后,请不要忘记从项目级别删除。这一定能解决你的问题,我是这样解决的。

#1


1  

What is your version of your cocoapods?

你的可可豆是什么样子的?

If you are using 0.38.0, it might be changes of CocoaPods make the spec fail. Try to replace

如果您使用的是0.38.0,那么可能是由于改变了可可粉而导致该规范失败。试图取代

pod 'Parse', '~> 1.7.5'

with

pod 'Parse', podspec: 'https://gist.githubusercontent.com/siuying/6a548f1924ed3243aeb5/raw/ccea130108b14afbaf22dbe828f75a62d750a4a0/Parse.podspec.json'

and see if it works for you.

看看它是否适合你。

#2


0  

If your "Objective-C Bridging Header" in project level it's possible to get this error. You should set this in target level! After added in your target please don't forget to remove from project level. This must solve your problem, I solve like this.

如果您在项目级别的“Objective-C桥接头”中有可能出现此错误。您应该将其设置为目标级别!在添加目标后,请不要忘记从项目级别删除。这一定能解决你的问题,我是这样解决的。