Search code examples
iosxcodegyp

gyp — how to set FRAMEWORK_SEARCH_PATH?


How do I set FRAMEWORK_SEARCH_PATH with gyp?

If I do

"libraries": [ "foo.framework", ],

that field is left blank and Xcode can't find header files.


Solution

  • After checking tests I found proper way:

    "xcode_settings": {
        'FRAMEWORK_SEARCH_PATHS': [
            '/foo/',
        ],
    },