Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 4 Archiving Error: one or more PCH files were found, but they were invalid

Tags:

xcode

archive

pch

Documenting an odd XCode 4 Error here for future reference:

"one or more PCH files were found, but they were invalid"

Cleaning does not fix the issue, you need to clean the Build Folder by holding down ALT and selecting Product from the menu. The "Clean" entry will now have changed to "Clean Build Folder" which will wipe the bad PCH duplicates and compile without errors.

like image 334
The Rat Avatar asked May 19 '11 18:05

The Rat


1 Answers

I had to read this a few times to get what was going on. The original poster answered his own question. To fix:

Clean the Build Folder by holding down ALT and selecting Product from the menu. The "Clean" entry will now have changed to "Clean Build Folder" which will wipe the bad PCH duplicates and compile without errors.

like image 195
dnstevenson Avatar answered Oct 21 '22 15:10

dnstevenson