après avoir installé les cocoapods et ajouté pod "SwiftCarousel"
au fichier pod et annulé le commentaire de la plate-forme: ios, '9.0'
ALWAYS_EMBED_Swift_STANDARD_LIBRARIES
et que dois-je faire?
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
J'ai pu résoudre ce problème en procédant comme suit (étape par étape):
Je suggère de définir tous les pods après l'installation comme suggéré dans le message:
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
La solution acceptée fonctionne, mais vous devez maintenant vous assurer que tous vos coéquipiers l'exécutent chaque pod install
.
Et nous savons tous qu'ils ne le feront pas.
Vous pourriez faire en sorte que CococaPod le fasse automatiquement, en ajoutant ceci au bas de votre 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
Plus d'infos ici: https://www.devsbedevin.com/cocoapods-always-embed-Swift-standard-libraries/