1

I have an application using Facebook Framework and it works fine. I wrote a unit test and when I run it, I get this error:

Lexical or Preprocessor Issue - FacebookSDK/FacebookSDK.h file not found ProjectName-Prefix.pch

Why does this occur in testing but not in run/build/archive?

Update: 1) Tried always use user...path

2)Cleaned the workspace

None of them worked

1 Answer 1

6

I solved my problem. I didn't set the Framework Search Paths for MyProjectTest Target. In MyProject Target was set so that why it was failing only in tests

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.