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

DocumentReadingOptionKey Error via pod #80

Closed
1 task
sarankumar291 opened this issue Feb 28, 2018 · 7 comments
Closed
1 task

DocumentReadingOptionKey Error via pod #80

sarankumar291 opened this issue Feb 28, 2018 · 7 comments

Comments

@sarankumar291
Copy link

Please help prevent duplicate issues before submitting a new one:

  • I've searched other open/closed issues for duplicates before opening up this new issue.

Report

What did you do?

ℹ Please replace this with what you did.

What did you expect to happen?

ℹ Please replace this with what you expected to happen.

What happened instead?

ℹ Please replace this with what happened instead (e.g. the issue).

While installing pod file getting error "DocumentReadingOptionKey is unavailable in Swift"

@krummler
Copy link

krummler commented Feb 28, 2018

Hi there, this seems to be the same issue as: #63

I'm having the same problem

@iwasrobbed iwasrobbed changed the title Error DocumentReadingOptionKey Error Feb 28, 2018
@iwasrobbed
Copy link
Collaborator

Hi there 👋 Can you please provide a bit more information. E.g. what version of Swift? what version of Xcode? Can you reproduce this in a minimal project (i.e. create a new project and only install the Down pod)

I'm afraid I can't do much unless you give more hints or help pinpoint it.

@iwasrobbed iwasrobbed changed the title DocumentReadingOptionKey Error DocumentReadingOptionKey Error during pod install Feb 28, 2018
@iwasrobbed
Copy link
Collaborator

Just an fyi: I tried reproducing this in a clean project on Xcode 9 and Xcode 9.2 using Swift 4 and cannot repro.

platform :ios, '10.0'

# ignore all warnings from all pods
inhibit_all_warnings!

# use frameworks for Swift
use_frameworks!

project 'Down-Integration'

target 'Down-Integration' do
  pod 'Down'
end

screen shot 2018-02-28 at 9 43 15 am

screen shot 2018-02-28 at 9 43 50 am

@krummler
Copy link

For me this happened during pod install, but while trying to build the app.

It ended up being because my project was still swift 3.2, while Down is expecting Swift 4?

I think you can get around by downgrading down (0.3.3), migrating to swift 4, then updating to down 0.5.0 again.

@iwasrobbed iwasrobbed changed the title DocumentReadingOptionKey Error during pod install DocumentReadingOptionKey Error via pod Mar 1, 2018
@iwasrobbed
Copy link
Collaborator

iwasrobbed commented Mar 1, 2018

@krummler Yes, Down is written in Swift 4 but should be capable of being used in Swift 3 projects as long as the Swift versions are set correctly in the build settings and Podfile. What version of Xcode are you using?

Examples here and here

@sarankumar291
Copy link
Author

sarankumar291 commented Mar 1, 2018

After changed swift Version 3.2 to 4 it started working Thanks

@idsky2
Copy link

idsky2 commented Jan 24, 2019

I got this now, with XCode 9.4.1, Swift 4.1
I'd bumped project target up to iOS9 for this library but podfile was still on 8.
setting podfile to 9 fixed it.

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

No branches or pull requests

4 participants