gpt4 book ai didi

ios - 目标覆盖 `OTHER_SWIFT_FLAGS` build设置

转载 作者:IT王子 更新时间:2023-10-29 07:49:42 30 4
gpt4 key购买 nike

这是我的 pod 文件:

platform :ios, '8.0'
use_frameworks!

target 'TestApp' do
...
end

pod install 之后,我收到以下错误:

[!] The `TestApp [Debug]` target overrides the `OTHER_SWIFT_FLAGS` build setting defined in `Pods/Target Support Files/Pods-TestApp/Pods-TestApp.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.

[!] The `TestApp [Release]` target overrides the `OTHER_SWIFT_FLAGS` build setting defined in `Pods/Target Support Files/Pods-TestApp/Pods-TestApp.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.

我该如何解决这个问题?

最佳答案

  1. 选择您的项目

  2. 切换到项目的 Build Settings 面板。

  3. 搜索其他 Swift 标志

  4. 现在您可能会看到 Other Swift Flags 的值显示在 BOLD

(BOLD 也意味着这个值被覆盖)

enter image description here

如终端中显示的警告:

Use the $(inherited) flag, or - Remove the build settings from the target.

您可以通过以下两种方式让编译器满意:

选项 1:

双击 Other Swift Flags 值区域并将值替换为 $(inherited)

选项 2:

选择 Other Swift Flags 面板使其突出显示。然后按键盘上的删除按钮,现在字体将变为THIN,而不是BOLD

关于ios - 目标覆盖 `OTHER_SWIFT_FLAGS` build设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32683499/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com