Moh*_*ain 47 ios cocoapods swift3 xcode8
安装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
Run Code Online (Sandbox Code Playgroud)
Fog*_*ter 93
在构建设置中转到此处...
然后突出显示"Always embed ..."行并点击删除.这将改变它以使用继承的属性.
Mar*_*uiz 28
我能够通过执行以下操作来解决此问题(一步一步):
我建议按照消息中的建议在安装后设置所有 pod:
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
Run Code Online (Sandbox Code Playgroud)
公认的解决方案有效,但是现在您必须确保所有队友都在执行它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
Run Code Online (Sandbox Code Playgroud)
此处提供更多信息:https : //www.devsbedevin.net/cocoapods-always-embed-swift-standard-libraries/
| 归档时间: |
|
| 查看次数: |
19443 次 |
| 最近记录: |