Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode5 xcodebuild failed when the precompile header includes Pods-environment.h and execute pod install before xcodebuild

Simplified version of build script is:

# change Podfild here 
pod install
xcodebuild

It works with Xcode 4.6, but with Xcode5-DP5 it failed.

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
like image 218
hiroshi Avatar asked Jun 06 '26 13:06

hiroshi


1 Answers

It succeeded after changed buildactions like this.

# change Podfild here 
pod install
xcodebuild clean build

I guess Xcode5 won't re-precompile the precompile header only the default build buildaciton, need to do clean first.

like image 111
hiroshi Avatar answered Jun 10 '26 09:06

hiroshi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!