Awesome. Thanks @shazron!
Every day theres something else,
I now have to do about 10 different hacks to get the system running and even then it only kind of works.
The way things stand now Ionic and ios is one huge hack, I’m trying to keep my cool, but I have never seen a more horrible contraption for a developer.
Life saver. Thanks guys!
Great!!! Many thanks
It is possible to set via command line as well. I’m triggering the xcodebuild command from a shell script, where you can do:
xcodebuild HEADER_SEARCH_PATHS="\$(TARGET_BUILD_DIR)/usr/local/lib/include \$(OBJROOT)/UninstalledProducts/include \$(OBJROOT)/UninstalledProducts/\$(PLATFORM_NAME)/include \$(BUILT_PRODUCTS_DIR)"
Notice that I had to escape $
The paths I’ve taken from the latest in
Thanks @Sikavica! For anyone running xcodebuild through gulp, be sure to double escape the dollar signs:
I’m using gradle to build my app and my build.gradle produces this issue now that I upgraded to 7.1. I run an
ionic build ios followed by the
xcodebuild HEADER_SEARCH_PATHS="\$(TARGET_BUILD_DIR)/usr/local/lib/include \$(OBJROO... command line fix listed above. I still receive the CDVViewController.h file not found. It seems like setting the HEADER_SEARCH_PATH param does not stick when done via command line. Do I need to set the headers inside the
ionic build ios call somehow?
It works!! Thanks a lot!!
Worked for me
Hey guys ! You don’t have to do it anymore with email@example.com
I have it firstname.lastname@example.org and got the error, shazron answer fix it too!
Lifesaver thank you! It works
Thank you. This worked for me too. I really appreciate your help.
Thanks so much for this, I added to the same line with a space in between and that did the trick!
Cool man that works for me too.you are a life saver .Thanks a lott:smile:
I have the stable version of Xcode 7.1.1 and this problem still occurs even after I added
$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include in the Build Settings.
Thank a lot… This is working in xCode 7.1 Stable version
Updating Xcode to 7.2 and Updating Cordova fixed this issue for me.
None of the above worked for me, but I found a way eventually:
Xcode 7.1.1 (7B1005)
- Run this in your terminal: cordova platform update ios
- Open your project in Xcode
- Go to Preference -> Locations -> Advanced
- Choose “Unique” as the option for Build Location
- Product -> Clean
- Product -> Build
For good karma, I also added “$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include” to the header search paths but that alone didn’t fix the issue.
Thank you it work fine!