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

hir*_*shi 3 cocoapods xcode5

构建脚本的简化版本是:

# change Podfild here 
pod install
xcodebuild
Run Code Online (Sandbox Code Playgroud)

它适用于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
Run Code Online (Sandbox Code Playgroud)

hir*_*shi 5

它改变后就成功了buildactions.

# change Podfild here 
pod install
xcodebuild clean build
Run Code Online (Sandbox Code Playgroud)

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