When using the new Xcode 10 build system under File -> Workspace Settings -> New Build System (Default) my app will not compile because it cannot find a .h file for an embedded .framework that I am using in my project. Once I set the build system to use the legacy build system the project builds perfectly fine. How can I use the new build system and fix this issue where it cannot find the .framework .h file? The project builds perfectly fine in Xcode 9.4.1 without issues or when using the legacy build system on Xcode 10.
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/FrameworkRootFolder now 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 problems Open 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'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With