Cristian
Cristian

Reputation: 26

clang: error: no such file or directory: ...PrecompiledHeaders..../...pch

I have a project building correctly in one machine, but i am getting the following error when i try to build it in another. Both machines have the same version of OS X and XCode, and exactly the same source files.

clang: error: no such file or directory: '/Users/Cristian/Library/Developer/Xcode/DerivedData/MadGoose-alcvoermelusildxepcbneygiwbk/Build/Intermediates/PrecompiledHeaders/MadGoose_Prefix-afbukpnsoecegqeiiuwhfersynbx/MadGoose_Prefix.pch'

I have the following files on that directory

Anyone knows what could it be? Or what should i compare between the machines?

Upvotes: 0

Views: 1111

Answers (1)

Cristian
Cristian

Reputation: 26

I found the problem, i had this in the Build Settings

FRAMEWORK_SEARCH_PATHS = (
                "$(inherited)",
                "\"${FACEBOOKSDK}\"",
            );

Since we don't use Facebook on the project anymore the variable ${FACEBOOKSDK} was empty in the machine with the problem, i remove it from there and problem solved.

An extra tip for others with build problems, check the XCBuildConfigutation section of the .pbxproj directly (Everything between /* Begin XCBuildConfiguration section */ and /* End XCBuildConfiguration section */), it was easy to spot the problem there, in XCode the variables are replaced with their value unless you edit them.

Upvotes: 0

Related Questions