当预编译头包含Pods-environment.h并在xcodebuild之前执行pod install时,Xcode5 xcodebuild失败

时间:2013-08-26 03:38:04

标签: cocoapods xcode5

构建脚本的简化版本是:

# change Podfild here 
pod install
xcodebuild

它适用于Xcode 4.6,但使用Xcode5-DP5则失败了。

fatal error: file '/path/to/myproject/Pods/Pods-environment.h' has been modified
  since the precompiled header
  '/Users/hiroshi/Library/Developer/Xcode/DerivedData/MyProject-gfmuvpipjscewkdnqacgumhfarrd/Build/Intermediates/PrecompiledHeaders/MyProject-Prefix-dwjpvcnrlaydzmegejmcvrtcfkpf/MyProject-Prefix.pch.pch'
  was built

1 个答案:

答案 0 :(得分:5)

在改变buildactions之后成功了。

# change Podfild here 
pod install
xcodebuild clean build

我猜Xcode5不会重新预编译预编译头只有默认的build buildaciton,需要先clean