Cocoapods v. 1.10.0 Ошибка ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES Версия Xcode 12.0.1

#swift #xcode #cocoapods

#swift #xcode #cocoapods

Вопрос:

Я хочу использовать это пользовательское оповещение, которое я нашел в библиотеке CocoaPods. Но когда я устанавливаю библиотеку с помощью команды pod install, терминал сообщает:

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

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

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

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

Я нашел эту ссылку для настройки переутомления из файла Pods. Но не его терминал по-прежнему выдает ошибки, которые я перечислил выше.

Вот мой файл Pods:

 # Uncomment the next line to define a global platform for your project
platform :ios, '14.0'

target 'OurTeam' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for OurTeam
    pod 'Parse'
    pod 'PMAlertController'
  target 'OurTeamTests' do
    inherit! :search_paths
    # Pods for testing
  pod 'Parse'
  pod 'PMAlertController'
  end

  target 'OurTeamUITests' do
    inherit! :search_paths
    # Pods for testing
  pod 'Parse'
  pod 'PMAlertController'
  end

end


post_install do |installer_representation|
    installer_representation.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'YES'
        end
    end
end
 

Комментарии:

1. Я нашел решение по этой ссылке programmersought.com/article/56217292468

2. 1) В Xcode перейдите к Цели-> Настройки сборки-> Комбинированный (все) поиск ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES, 2) выберите опцию, нажмите клавишу удаления компьютера, чтобы немедленно вернуться в обычный режим. Когда вы сделаете это, текст «Всегда внедрять стандартные библиотеки Swift» изменится с жирного на обычный