起因
在新建我的项目后,应用 pod
装置一些组件,后果呈现了如下谬误
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
[!] The `bestWhiteNoise [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-bestWhiteNoise/Pods-bestWhiteNoise.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `bestWhiteNoise [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-bestWhiteNoise/Pods-bestWhiteNoise.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `bestWhiteNoiseUITests [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-bestWhiteNoise-bestWhiteNoiseUITests/Pods-bestWhiteNoise-bestWhiteNoiseUITests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The `bestWhiteNoiseUITests [Release]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-bestWhiteNoise-bestWhiteNoiseUITests/Pods-bestWhiteNoise-bestWhiteNoiseUITests.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
查问了一些文档后,发现是咱们我的项目中的设置 和 Pods
中的设置不统一,并且显示的是正告,实际上是谬误,可能会导致你的第三方组件装置不胜利等问题
解决方案
看了很多文章,都是搜寻 ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
设置成 $(inherited)
,然而没有细说须要设置哪几个中央,可能对于我这种老手来说就是一个坑,实际上咱们须要设置每一个 TARGETS
中的 ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
为 $(inherited)
如图:
保留,而后 TARGETS
中的每一个,比方我图片中的三个,那么这三个我都须要设置
设置完后,再次运行 pod install
就好了