Awesome. Thanks @shazron!
Unbelievable.
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
https://github.com/apache/cordova-ios/blob/master/bin/templates/scripts/cordova/build.xcconfig
Thanks @Sikavica! For anyone running xcodebuild through gulp, be sure to double escape the dollar signs: \\$(TARGET_BUILD_DIR...
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 cordova-ios@3.9.2
I have it ios@3.9.2 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:
Version Information:
Cordova 5.4.1
Xcode 7.1.1 (7B1005)
Node 5.2.0
Ionic 1.7.11
- 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!