使用 Xcode12.2 在 iOS11 上安装/更新 pod

问题描述 投票:0回答:1

在 macOs11.0 上更新 xcode12.2 后尝试安装 pod 时,出现以下错误。

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

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

我搜索了错误并得到了一些结果,根据指定的链接更改了值,

堆栈溢出问题

但仍然遇到相同的错误,并且我的 pod 框架未更新

error-handling cocoapods ios11 xcode12
1个回答
0
投票

尝试使用:

  • 项目目标->构建设置->ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES,->值类型为Boolean,点击另一个,将值改为$(inherited)
  • pod 安装/pod 更新。

它会起作用的..:)

© www.soinside.com 2019 - 2024. All rights reserved.