Skip to content
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

[Pods] Only include files in source_files that can be compiled #86

Merged
merged 2 commits into from
May 4, 2018
Merged

[Pods] Only include files in source_files that can be compiled #86

merged 2 commits into from
May 4, 2018

Conversation

njdehoog
Copy link
Contributor

These warnings are thrown by the compiler when including Down as a cocoapod:

screen shot 2018-04-25 at 11 52 23

By excluding files that should not be compiled from spec.source_files, we can prevent those warnings.

@coveralls
Copy link

coveralls commented Apr 25, 2018

Coverage Status

Coverage remained the same at 47.923% when pulling f1ea78c on njdehoog:fix_spec into 4082c8d on iwasrobbed:master.

@iwasrobbed
Copy link
Collaborator

Hi @njdehoog 👋 Unfortunately we cannot merge this change, but there is a fix you can apply here as well as more information: #26

@iwasrobbed iwasrobbed closed this Apr 25, 2018
@njdehoog
Copy link
Contributor Author

njdehoog commented Apr 25, 2018

hi @iwasrobbed, thanks for your response! I've read through the thread you linked to but I don't fully understand the reasoning. These are valid warnings that Xcode is throwing, so why not fix them in the podspec? I've tested this with my fork and it compiles/runs fine. We could add the COPYING file to preserve_paths if this is about licensing.

@iwasrobbed
Copy link
Collaborator

Sorry for the delayed reply! If you can get all files to still be included, it compile fine and integrate fine into an example project as well as get pod lib lint passing, I'm happy to have another look!

@njdehoog
Copy link
Contributor Author

njdehoog commented May 1, 2018

Sure thing. I'm having some trouble getting pod lib lint to pass, even on master, but I will look into it when I have some more time. Could you reopen the PR so the changes become visible?

@iwasrobbed
Copy link
Collaborator

iwasrobbed commented May 1, 2018

Try pod spec lint or pod spec lint --allow-warnings (if it's a C code warning) as well; for some reason one of them works and the other never has

@iwasrobbed iwasrobbed reopened this May 1, 2018
@njdehoog
Copy link
Contributor Author

njdehoog commented May 1, 2018

Thanks for the advice. I made a change to preserve all the files, and I verified that pod spec lint succeeds and that I can include the pod in a sample project. pod spec lint still throws 1 warning, but that was a pre-existing one.

@iwasrobbed
Copy link
Collaborator

Thanks again @njdehoog ! I'll have a quick look in the morning and merge if all looks 👍

@iwasrobbed
Copy link
Collaborator

Just ran a quick integration test and this looks great. Thanks again @njdehoog !

@iwasrobbed iwasrobbed changed the title Only include files in source_files that can be compiled [Pods] Only include files in source_files that can be compiled May 4, 2018
@iwasrobbed iwasrobbed merged commit c5c5714 into johnxnguyen:master May 4, 2018
@iwasrobbed iwasrobbed mentioned this pull request May 5, 2018
1 task
@iwasrobbed
Copy link
Collaborator

Released to v0.5.2 here: #87

Thanks again!

@njdehoog
Copy link
Contributor Author

njdehoog commented May 6, 2018

You're welcome. Thanks for getting this released!

@njdehoog njdehoog deleted the fix_spec branch May 6, 2018 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants