You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== BUILD TARGET native_pdf_renderer OF PROJECT Pods WITH CONFIGURATION Release ===
/Users/escolarmanager/work/flutter_plugins_pdf/packages/native_pdf_renderer/ios/Classes/document/Page.swift:59:30: error: 'pngData()' has been renamed to
'UIImagePNGRepresentation(_:)'
data = image.pngData() as Data?
^~~~~~~
UIImagePNGRepresentation
UIKit.UIImage:58:17: note: 'pngData()' was introduced in Swift 4.2
public func pngData() -> Data?
To Reproduce
Steps to reproduce the behavior:
Create a new flutter project;
Adds native_pdf_renderer v1.3.0+1 plugin to pubspec.yaml
Run flutter build ios command
See error
Expected behavior
Successful build
Smartphone (please complete the following information):
MAC OS Mojave 10.14.5
XCODE Version 10.1 (10B61)
Swift 4.2
Additional context
I was replaced the 59 line of Page.swift file and the build works!!!
original data = image.pngData() as Data?
suggestion data = UIImagePNGRepresentation(image)
Could you please publish the correction in pub.dev?
Thanks in advance
The text was updated successfully, but these errors were encountered:
Package name
native_pdf_renderer v1.3.0+1
Describe the bug
=== BUILD TARGET native_pdf_renderer OF PROJECT Pods WITH CONFIGURATION Release ===
/Users/escolarmanager/work/flutter_plugins_pdf/packages/native_pdf_renderer/ios/Classes/document/Page.swift:59:30: error: 'pngData()' has been renamed to
'UIImagePNGRepresentation(_:)'
data = image.pngData() as Data?
^~~~~~~
UIImagePNGRepresentation
UIKit.UIImage:58:17: note: 'pngData()' was introduced in Swift 4.2
public func pngData() -> Data?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successful build
Smartphone (please complete the following information):
Additional context
I was replaced the 59 line of Page.swift file and the build works!!!
original
data = image.pngData() as Data?
suggestion
data = UIImagePNGRepresentation(image)
Could you please publish the correction in pub.dev?
Thanks in advance
The text was updated successfully, but these errors were encountered: