I hate warnings and sometimes I miss opportunities to make up for them

First, mask the specified warnings

Such as: Xcode **Pointer is missing a Nullability Type Specifier (_Nonnull, _Nullable, or _Null_unspecified)** Warning, Old code before OC is generally not wanted to change. If it’s third-party library code, you don’t want to change it.This time the choice shielding is the best choice.

1. Right-click the warning and choose Reveal in Log from the shortcut menu.

2. View the warning type

The warning in the figure is-Wnullability-completeness.

3. Mask the specified warning type

add -Wno-nullability-completenessDo not display this warning.

That kind of warning would disappear.

Clear the simulator deployment version warning


The iOS Simulator deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99.


This warning is usually added to the bottom of the Podfile

post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| Config. build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '8.0' end End endCopy the code

However, in the new version of Cocoapods there is a new feature called Install! ‘Cocoapods ‘, :generate_multiple_pod_projects => true, :incremental_installation => true to speed up compilation. Targets’ for nil: targets’ is not found. Use new ways

post_install do |installer| installer.pod_target_subprojects.flat_map { |p| p.targets }.each do |t| T.b uild_configurations. Each do | | c mount uild_settings [' IPHONEOS_DEPLOYMENT_TARGET] = '10.0' end end to endCopy the code

Perfect solution.

Clear validate Project Settings

Because of usinginstall! 'cocoapods', :generate_multiple_pod_projects => true, :incremental_installation => trueAfter the deployment version of each project is lower, it will appearClick the update to displaySpecifying the target version as, obviously, is not what we want. At this time onlyClick Done and the warning disappears. Recompiling will no longer prompt you.butThis warning will appear again when the third-party library version is updated.

// END wait for a new warning before continuing.