Run pod install
, tried to compile my project with Xcode 11 beta 4
The project compiles successfully
I got a swift compilation error
<unknown>:0: error: unknown argument: '-w'
<unknown>:0: error: unknown argument: '-Xanalyzer'
<unknown>:0: error: unknown argument: '-analyzer-disable-all-checks'
Command CompileSwiftSources failed with a nonzero exit code
Podfile option inhibit_all_warnings!
seems to be causing this, when applied to Swift files.
TODO: Create sample project. Should be easy: include pod Pulley with inhibit_all_warnings!
and try to build.
Search for "-w -Xanalyzer -analyzer-disable-all-checks" (currently showing up in pod_target_installer.rb
in my code base, but it could be outdated) for a clue as to where a fix needs to be worked in. These need to be skipped for Swift files. Potentially another solution for ignoring warnings in Swift code will need to be applied.
Whats the way to inhibit warnings for Swift files? Definitely something we can fix.
Set this on the target:
SWIFT_SUPPRESS_WARNINGS = YES;
Has this been the case for Xcode 10? Sorry I do not know from the top of my head.
Hmmm we are already removing .swift
files here https://github.com/CocoaPods/CocoaPods/blob/master/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb#L282-L296
Was reading it wrong. We do not remove .swift
files there.
PR is out.
Cool, thanks for the quick turnaround!
Shipped with 1.7.5.
Please upload sample app that demonstrates the issue.
Shipped with 1.7.5.
Thank u. It works! Just use Cocoapods 1.7.5, then run pod install
.
Same thing here with XCode11 beta 4. I'm sure is fairly replicable. Offending pods in my case are alamofire, kingfisher and hero.
Most helpful comment
Shipped with 1.7.5.