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

dam*_*ban 6 xcode ios cocoapods parse-platform swift

我现在一直在努力奋斗这几天,我可以使用一些指导.

以下是我原始Podfile的内容:

pod 'Parse', '~> 1.7.1'
pod 'ParseUI', '~> 1.1.3'
pod 'ParseCrashReporting'
Run Code Online (Sandbox Code Playgroud)

一切都工作正常,直到有一天我决定添加一些豆荚.这是我的Podfile现在的样子:

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'
Run Code Online (Sandbox Code Playgroud)

如您所见,我正在尝试添加Alamofire.当我做的时候

$ pod update $ pod install

好像一切都安装好了.然而,当我在Xcode中打开我的项目并完成索引时,所有地狱都已经崩溃了(好吧,不是真的).

似乎Parse不再与我的项目相关联,因为我有50多个错误:

Use of undeclared type '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>
Run Code Online (Sandbox Code Playgroud)

编辑:

我做了以下后出现以下错误pod install:

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"}
Run Code Online (Sandbox Code Playgroud)

Jak*_*ano 6

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