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
Do not pass inhibit warnings compiler flags for Swift source files. #9014
Do not pass inhibit warnings compiler flags for Swift source files. #9014
Conversation
lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb
Show resolved
Hide resolved
We also pass |
ca8cfd3
to
3b94edb
Compare
Should file a radar for this regression |
Will do but I do not expect that to be fixed anytime soon. Maybe that is my answer not to point to |
A fast release - 1.7.5 - would be awesome 👍 |
We are waiting a day or two to hear from Apple if this change was intended or a regression from their part. If people are blocked please use https://bundler.io/ and point to this branch or commit to be unblocked. We do not want to release a 1.7.5 and then release 1.7.6 again if this is a regression from Apple. |
lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb
Outdated
Show resolved
Hide resolved
3b94edb
to
5c2786d
Compare
This doesn't seem like an Xcode regression. It seems like an Xcode bugfix. I just compiled my project using Xcode 10.2.1 and checked, and it did not pass the per-file compiler flags to swift files. In Xcode 11 beta 4 it's now passing the per-file compiler flags to swift files. The fact is, these flags never worked on Swift. We just didn't notice before because Xcode wasn't passing them along. Now that it is passing them along, it's obvious that the flags shouldn't be applied to swift files. I strongly recommend publishing a 1.7.5 for this instead of waiting. |
Shipped with 1.7.5. |
@dnkoutso |
This happens because the podspec specifies We will have to re-think this through as a relatively bigger change to handle compiler flags for different source file types. |
In the short term we should probably just stop passing per-file compilation flags to Swift files. It apparently never worked before, so omitting them entirely restores the old behavior. Then we can explore adding a separate option for Swift compilation flags. |
That's not true, there are per-file complication flags for Swift that do work, the problem was CocoaPods was including Objective-C-specific flags when it shouldn't have been. There's the |
But more than that, given that compilation flags are unique to each compiler, it simply doesn't make sense for CocoaPods to have a single property that it applies to all source files. It should have a property for |
Yes that's the issue, the |
Perhaps I’m being naive, and in any event I owe you a big thanks for being so responsive. That said, I didn’t see a plan for what the fix will be, nor for when users might expect it. Is it unreasonable to ask that?
… On Jul 24, 2019, at 2:30 PM, Eric Amorde ***@***.***> wrote:
Yes that's the issue, the compiler_flags DSL was introduced before Swift was released and it was never updated. We might add a swift_compiler_flags to match but no concrete plans for that yet
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#9014?email_source=notifications&email_token=AABILZKMM5NGKBF3CSJDCQDQBDCY3A5CNFSM4IEVW2ZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2XVO2A#issuecomment-514807656>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AABILZIQCXVCQDKJINNHGGTQBDCY3ANCNFSM4IEVW2ZA>.
|
@barrypress : |
@barrypress You can also submit a PR to Down that removes that flag from the podspec as per this comment. As the comment says, this will likely introduce some warnings in the C code, but you can then handle that by adding the appropriate |
@barrypress as there wasn't much visible move on that in the past two weeks, I would suggest that you open a specific GitHub issue in order to track that Xcode 11 issue with pods requiring |
closes #9013
It will probably be for 1.7.5 release and will add a milestone.
Passing those flags in Xcode 11 Beta 4 fails to compile.