nachdem ich cocoapods installiert und pod "SwiftCarousel"
zur pod-datei hinzugefügt und die plattform auskommentiert habe: ios, '9.0', bekam ich diesen fehler
ALWAYS_EMBED_Swift_STANDARD_LIBRARIES
und was soll ich machen?
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
Ich konnte dieses Problem folgendermaßen beheben (Schritt für Schritt):
Ich schlage vor, alle Pods nach der Installation wie in der Nachricht vorgeschlagen einzustellen:
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
Die akzeptierte Lösung funktioniert, aber jetzt müssen Sie sicherstellen, dass alle Ihre Teamkollegen sie jeweils pod install
ausführen.
Und wir alle wissen, dass sie es nicht tun werden.
Sie könnten CococaPods dazu bringen, dies automatisch durchzuführen, indem Sie dies unten in Ihre Podfile
einfügen:
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
Mehr Infos hier: https://www.devsbedevin.com/cocoapods-always-embed-Swift-standard-bibliotheken/