Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/121.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios cocoapods 0.37.1-更新Podfile时,框架不再链接_Ios_Xcode_Swift_Parse Platform_Cocoapods - Fatal编程技术网

Ios cocoapods 0.37.1-更新Podfile时,框架不再链接

Ios cocoapods 0.37.1-更新Podfile时,框架不再链接,ios,xcode,swift,parse-platform,cocoapods,Ios,Xcode,Swift,Parse Platform,Cocoapods,我已经断断续续地为此挣扎了几天,我需要一些指导 以下是我的原始播客文件的内容: pod 'Parse', '~> 1.7.1' pod 'ParseUI', '~> 1.1.3' pod 'ParseCrashReporting' 直到前几天我决定再加一些豆荚,一切都很顺利。下面是我的播客文件现在的样子: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks! po

我已经断断续续地为此挣扎了几天,我需要一些指导

以下是我的原始播客文件的内容:

pod 'Parse', '~> 1.7.1'
pod 'ParseUI', '~> 1.1.3'
pod 'ParseCrashReporting'
直到前几天我决定再加一些豆荚,一切都很顺利。下面是我的播客文件现在的样子:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!


pod 'Parse', '~> 1.7.1'
pod 'ParseUI', '~> 1.1.3'
pod 'ParseCrashReporting'
pod 'Alamofire', '~> 1.2'
正如你所看到的,我正在尝试添加Alamofire。当我做一个


$pod更新
$pod安装

看起来一切都正常。然而,当我在Xcode中打开我的项目,它完成索引时,所有的麻烦都散开了(好吧,不是真的)

似乎Parse不再链接到我的项目,因为我有50多个错误:

使用未声明的类型“PFLogInViewController”

我对Ruby/Gemfiles或命令行一点也不陌生,但对Xcode和Cocoapods却相当陌生

任何帮助都将不胜感激。多谢各位

编辑:下面是我的桥接标题

// Objective-C Bridging File
#import <Foundation/Foundation.h>
#import <Parse/Parse.h>
#import <ParseCrashReporting/ParseCrashReporting.h>
#import <ParseUI/ParseUI.h>
#import <Bolts/Bolts.h>

只有在将CoCoapod构建到静态库时,才需要桥接标头。切换到框架后,您应该在源文件中使用
import ParseUI

安装
pod
对我来说解决了这个问题。有时与团队合作时,可以安装其他吊舱

1)删除pod文件后,我再次尝试安装
pod

2) 我还是犯了错误

3) 再次尝试安装
pod

4) 然后我进行了pod回购更新


它成功了。

您如何将
ParseUI
导入到您的代码中?你能举个例子吗?我用桥接头的代码更新了我的问题。我也面临同样的问题。成功了吗?在修改我的pod文件后,我进行了
pod更新和&pod安装
,然后添加了
import LibraryName
(如下所示)到相关的视图控制器。我现在收到以下错误:
错误:无法从“目标支持文件/Pods Parse/Pods Parse.modulemap”读取模块映射内容:错误域=NSCocoaErrorDomain code=260“文件”Pods Parse.modulemap“无法打开,因为没有这样的文件。”UserInfo=0x7fc988cd4920{NSFilePath=/Volumes/BigMan/Code/Swift/ProjectName/Pods/Target Support Files/Pods Parse/Pods-Parse.modulemap,NSUnderlyingError=0x7fc98ac96850“操作无法完成。没有这样的文件或目录”}
您是否尝试通过
pod install
重新安装pod?解析pod中的文件似乎丢失了。是的,我已经尝试了多次。在这里我真的不知所措。我从未遇到过这个错误-我建议您将此错误添加到问题中或打开一个新的问题。@damianesteban NSFilePath之后的路径正确吗?我遇到了这个问题,但是Xcode使用了错误的项目路径。为了修复它,我清除了Xcode的首选项。
Error: unable to read module map contents from 'Target Support Files/Pods-Parse/Pods-Parse.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “Pods-Parse.modulemap” couldn’t be opened because there is no such file." UserInfo=0x7fc988cd4920 {NSFilePath=/Volumes/BigMan/Code/Swift/ProjectName/Pods/Target Support Files/Pods-Parse/Pods-Parse.modulemap, NSUnderlyingError=0x7fc98ac96850 "The operation couldn’t be completed. No such file or directory"}