Ответ 1
Перейдите сюда в настройках сборки...
Затем выделите строку "Всегда вставлять..." и нажмите "Удалить". Это изменит его, чтобы использовать унаследованное свойство.
после установки cocoapods и добавления pod "SwiftCarousel"
в файл pod и раскомментирования платформы: ios, '9.0' я получил эту ОШИБКУ
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
и что мне делать?
mohammed.elias$ pod install
Analyzing dependencies
Downloading dependencies
Installing SwiftCarousel (0.8.0)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use 'scrollView.xcworkspace' for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
[!] The 'scrollViewTests [Debug]' target overrides the 'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES' build setting defined in 'Pods/Target Support Files/Pods-scrollViewTests/Pods-scrollViewTests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the '$(inherited)' flag, or
- Remove the build settings from the target.
[!] The 'scrollViewTests [Release]' target overrides the 'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES' build setting defined in 'Pods/Target Support Files/Pods-scrollViewTests/Pods-scrollViewTests.release.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the '$(inherited)' flag, or
- Remove the build settings from the target.
[!] The 'scrollViewUITests [Debug]' target overrides the 'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES' build setting defined in 'Pods/Target Support Files/Pods-scrollViewUITests/Pods-scrollViewUITests.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the '$(inherited)' flag, or
- Remove the build settings from the target.
[!] The 'scrollViewUITests [Release]' target overrides the 'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES' build setting defined in 'Pods/Target Support Files/Pods-scrollViewUITests/Pods-scrollViewUITests.release.xcconfig'. This can lead to problems with the CocoaPods installation
Перейдите сюда в настройках сборки...
Затем выделите строку "Всегда вставлять..." и нажмите "Удалить". Это изменит его, чтобы использовать унаследованное свойство.
Я смог решить эту проблему, выполнив следующее (шаг за шагом):
Принятое решение работает, но теперь вы должны убедиться, что все ваши товарищи по команде выполняют его каждый pod install
.
И мы все знаем, что они не будут.
Вы можете заставить CococaPods делать это автоматически, добавив это в нижнюю часть Podfile
:
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if config.name == 'MyPOD'
config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'Yes'
end
end
end
end
Больше информации здесь: https://www.devsbedevin.net/cocoapods-always-embed-swift-standard-libraries/
Я предлагаю установить все модули после установки, как указано в сообщении:
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'] = '$(inherited)'
end
end
end