btmanikandan
btmanikandan

Reputation: 1931

Error in running Xcode program

When I compiled the existing code it was working fine, but when I create a new code and compile, it is showing following error:

'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h' has been modified since the precompiled header '/Users/arun/Library/Developer/Xcode/DerivedData/ModuleCache/3OQQ9G3BB8KEO/Foundation.pcm'

Please help me fix this error.

Upvotes: 1

Views: 440

Answers (6)

Pravin Kamble
Pravin Kamble

Reputation: 853

if by mistake you changed NSString.h file then there is no need to reinstall Xcode. just you need to copy and replace NSString.h file from another same xcode version which currently you used and clean your project and run the application it works perfectly fine.

Upvotes: 2

Sujal
Sujal

Reputation: 1205

You need to replace NSString.hfile from another Xcode on path :/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h`

This works for me! I hope it helps you.

Upvotes: 0

Sunny Shah
Sunny Shah

Reputation: 13020

Go to ~/Library/Developer/Xcode/DerivedData/ and delete all subfolder then Build the project

Upvotes: 4

codercat
codercat

Reputation: 23271

Just select clean from the project menu. That should force a complete rebuild and solve the your problem.

enter image description here

Upvotes: 2

Tapas Pal
Tapas Pal

Reputation: 7207

I had also faced the same problem. I just clean the project and rebuild and it work. Hopefully it'll also worked for you.

Upvotes: 0

Mani
Mani

Reputation: 17585

I had faced same issue in my project also. This issue arise Because you have visited NSString.h(Jump to definition or contrl+click on NSString property) and modified something in that file. Just visit again in NSString.h and undo what you have done.

Note: Try to close and reopen your project. seems to be funny but work sometime.

Upvotes: 0

Related Questions