Xcode 10 Lexical or preprocessor issue .h file not found Xcode 10 Lexical or preprocessor issue .h file not found xcode xcode

Xcode 10 Lexical or preprocessor issue .h file not found


I ended up fixing this issue. What I ended up doing was going to target -> Build settings and changing the Framework search path to an absolute path.

Before my change it was ~/Documents/FrameworkRootFoldernow it is /Users/$(USER)/Documents/FrameworkRootFolder and I set it to recursive. Seems to build fine now.

I also had another issue with multiple apps produce .app error and fixed it with this:In case someone is still struggling with this after updating cocoapods and reinstalling pods:

Open Build Phases of the target which gives you problemsOpen Copy Pods Resources phase.Make sure the Output Files is empty. In my case I had a strange entry ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}. I removed it and the build was successful

Xcode 10 Error: Multiple commands produce for 'app' and 'appex'