NativeScript / canvas

Apache License 2.0
87 stars 18 forks source link

v2 (beta) breaks my iOS HEADER_SEARCH_PATHS #121

Open chris-praxis opened 1 month ago

chris-praxis commented 1 month ago

ENVIRONMENT macOS Sonoma (14.4.1) Xcode 15.3 NS 8.7.0 @nativescript/ios 8.7.1 @nativescript/canvas 2.0.0-beta.21 @nativescript/canvas-three 2.0.0-beta.21

PROBLEM In "App_Resources/iOS/build.xcconfig" I set HEADER_SEARCH_PATHS (including $(inherited)), which is necessary for my native code. @nativescript/canvas also sets HEADER_SEARCH_PATHS (including $(inherited)) in "node_modules/@nativescript/canvas/platforms/ios/build.xcconfig". I'm guessing this is what causes the problem...

fatal error: 
      'include_path/some_header.hpp' file not found

My native code longer compiles until I manually add headers search paths in Xcode. Setting HEADER_SEARCH_PATHS in "App_Resources/iOS/build.xcconfig" no longer works.

triniwiz commented 1 month ago

Thank you for reporting, if possible can you submit a small app which reproduces the issue.