Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on iOS build #3

Closed
yostrokon opened this issue Apr 11, 2019 · 8 comments
Closed

Error on iOS build #3

yostrokon opened this issue Apr 11, 2019 · 8 comments

Comments

@yostrokon
Copy link

[!] Unable to determine Swift version for the following pods:

- `native_pdf_renderer` does not specify a Swift version and none of the targets (`Runner`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.

what should i do?

@SergeShkurko
Copy link
Member

@yostrokon you need set swift version to 5 by instruction

@SergeShkurko
Copy link
Member

If the error does not disappear, try this instruction as well

@SergeShkurko
Copy link
Member

@yostrokon problem solved? If not, contact me with a name here, I will reopen the issue.

@yostrokon
Copy link
Author

@SergeShkurko tried to copy the Podfile from your sample adding
config.build_settings['SWIFT_VERSION'] = '5' # required
config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = '$(inherited)'
config.build_settings['ENABLE_BITCODE'] = 'NO'
and build using codemagic, but no success, same response, may be missing something somewhere else

@yostrokon
Copy link
Author

@SergeShkurko

  • Running pre install hooks
    [!] Unable to determine Swift version for the following pods:

    • native_pdf_renderer does not specify a Swift version and none of the targets (Runner) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.

@yostrokon
Copy link
Author

@SergeShkurko added swift 5, but now surprised by
Xcode's output:

                data = UIImagePNGRepresentation(image) as Data?
                       ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
                       image.pngData            
UIKit.UIImagePNGRepresentation:2:13: note: 'UIImagePNGRepresentation' was obsoleted in Swift 3

@SergeShkurko
Copy link
Member

SergeShkurko commented Apr 15, 2019

@yostrokon, what version of native_pdf_renderer are you using?

@SergeShkurko SergeShkurko reopened this Apr 15, 2019
@yostrokon
Copy link
Author

@SergeShkurko
update to the newer version fixed all things, thanks for support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants