构建脚本的简化版本是:
# 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
答案 0 :(得分:5)
在改变buildactions
之后成功了。
# change Podfild here
pod install
xcodebuild clean build
我猜Xcode5不会重新预编译预编译头只有默认的build
buildaciton,需要先clean
。