-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails with local includes using <> and not quotes #1113
Comments
In the meantime, I've documented the fix which is to change the
Only changing the NS includes there for TNS and livesync to use |
As of now, I'm on xcode |
Informed @tdermendjiev of findings. I was running cocoapods |
I will install the same cocoapods version so I am able to reproduce the issue. Right now I can only speculate that it generates a xcworkspace with the wrong settings (probably Header search paths). What I know about the angle-bracketed includes is they should be used for adding system headers while the quotes - for local headers. That said, it seems a good idea to update them. |
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
Build fails when this plugin is added (assuming cocoapod SVGKit is doing something in platforms for itself causing the issue).
To Reproduce
Not produceable on every machine, some other users I've talked with don't have the issue and some do have the issue.
Expected behavior
Successful build
Sample project
https://github.com/bradmartin/xcode-bad-build (master has the <> in main.m causing failed build)
https://github.com/bradmartin/xcode-bad-build/tree/fix-build (has the main.m modified using
""
for local includes to fix the build)Additional context
Teodor Dermendzhiev - replied on NS Slack asking for some extra info. So internally he's at least somewhat aware of this happening on my machine.
This SO post https://stackoverflow.com/questions/1044360/import-using-angle-brackets-and-quote-marks/1044399#1044399 provides some context on using
<>
and""
quotes for includes.Output from failed build:
This only happens when the plugin is added. I've currently got a fork of the plugin https://github.com/bradmartin/nativescript-svg that I'm going to PR to the
@teammaestro
version to get that in master. However, that's not the issue as this seems to happen regardless which fork I'm using. I discovered it working on a private project, and have repro'd it on 3 projects, with xcode 10.1 and 10.2. Also with NS5.2.x
and5.3.x
The text was updated successfully, but these errors were encountered: