合并SwiftyJSON.swiftmodule失败,错误没有这样的文件或目录

时间:2015-09-20 11:29:36

标签: objective-c swift cocoapods

我已升级到Xcode 7,我的项目升级到Swift2。我的项目是ObjC和Swift代码的混合体。我也升级到可可豆荚0.38.2。升级后,项目编译失败。具体来说,编译失败并出现以下错误:

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 

我已将此问题跟踪到以下消息:

MergeSwiftModule normal x86_64 /Users/murdockcrc/repos/HdV%20-%20iOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/SwiftyJSON.build/Objects-normal/x86_64/SwiftyJSON.swiftmodule
which fails with the following error:
<unknown>:0: error: error opening '/Users/murdockcrc/repos/HdV%20-%20iOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/SwiftyJSON.build/Objects-normal/x86_64/SwiftyJSON-Swift.h' for output: No such file or directory 

该问题仅与SwiftyJSON无关。即使我删除了这个库,我的另一个Swift依赖项也会因同样的错误而失败。

我对cocoa pod与框架和混合objc-swift项目的工作方式并不了解,但我认为伞标题有问题,并且swift编译器可以访问依赖项。

这是我的podfile

# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target 'Helden der Volksmusik' do

pod 'DateTools', '1.5.0'
pod 'UALogger', '~> 0.3'
pod 'KZPropertyMapper', '2.5.0'
pod 'AFNetworking', '2.5.4'
pod "MTJSONUtils"
pod "TTTAttributedLabel", "1.13.3"
pod 'PureLayout', '2.0.6'
pod 'Alamofire', '~> 2.0'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git', :branch => 'xcode7'
pod 'SwiftDate', :git => 'https://github.com/malcommac/SwiftDate.git', :branch => 'swift-2.0'
pod 'SwiftSpinner', '0.8.0'

end

target 'Helden der VolksmusikTests' do

pod 'DateTools', '1.5.0'
pod 'UALogger', '~> 0.3'
pod 'KZPropertyMapper', '2.5.0'
pod 'AFNetworking', '2.5.4'
pod "MTJSONUtils"
pod "TTTAttributedLabel", "1.13.3"
pod 'PureLayout', '2.0.6'
pod 'Alamofire', '~> 2.0'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git', :branch => 'xcode7'
pod 'SwiftDate', :git => 'https://github.com/malcommac/SwiftDate.git', :branch => 'swift-2.0'

end

0 个答案:

没有答案