Closed standevo closed 4 years ago
It's native library related error. You can open issue in native library repo
@jibon57, Thx the author of native library comes here with a fix. There is a way to force the Swift version with the plugin directly? Or it should be done inside native library?
@Stanteq thank you. Will you please try to follow this article: https://medium.com/@championswimmer/setting-swift-version-in-nativescript-6ece09112a46
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '5.0'
end
end
end
I think it's better to set DKImagePickerController
for swift 5
only.
pre_install do |installer|
installer.analysis_result.specifications.each do |s|
if s.name == 'DKImagePickerController'
s.swift_version = '5.0'
end
end
end
@jibon57, thank you for the guidance.
This sets the desired version for all pods (but in my case breaks other ones which are required a different version)
post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '5.0' end end end
This has no effect. The swift version remains unchanged
pre_install do |installer| installer.analysis_result.specifications.each do |s| if s.name == 'DKImagePickerController' s.swift_version = '5.0' end end end
I combined these two solutions and the working one is this:
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'DKImagePickerController'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '5.0'
end
end
end
end
Hi, I have a problem with a IOS when I try to build my application after updating the Xcode to the version 11.3 and now 11.4. It's related to DKImagePickerController, bunch of Swift compiler errors.
For example: