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

Build fails while compiling for tvOS 11 #7

Closed
gustavolessa23 opened this issue Sep 27, 2017 · 3 comments
Closed

Build fails while compiling for tvOS 11 #7

gustavolessa23 opened this issue Sep 27, 2017 · 3 comments

Comments

@gustavolessa23
Copy link

gustavolessa23 commented Sep 27, 2017

Hi,

Since my Apple TV updated itself to tvOS 11, I've been trying to make PopcornTimeTV work again.
Unfortunately, during compilation this version of TvOSMoreButton causes two errors:

  • Type 'NSAttributedStringKey' (aka 'NSString') has no member 'foregroundColor'
  • Cannot convert value of type '[NSAttributedStringKey : Any]' (aka 'Dictionary<NSString, Any>') to expected argument type '[String : Any]?'

Any idea how to fix it? I'm still trying to find something online, but it's too specific.

Thank you very much,
Gustavo

EDIT: Using the previous version it compiled just fine, but it would be nice to understand how to fix the latest version.

@cgoldsby
Copy link
Owner

Hi @gustavolessadublin, here is some information that might help:

Release 1.1.0 now requires Xcode 9 but there are a few things you may have to do depending on whether your project is running Swift 3.2 or Swift 4.

The release page and changelog have more information.

If your main project has been migrated to Swift 4, i.e. SWIFT_VERSION is 4.0 in "Build Settings", then updating your Podfile to use TvOSMoreButton 1.1.0 should work without any changes.

However, if your project has not been migrated to Swift 4 and is using Swift 3.2, then you need to update the SWIFT_VERSION to 4.0 just for the TvOSMoreButton pod (see release page for instructions.)

Hopefully, one of these steps will solve these compile issues. Let me know how things go.

@cgoldsby
Copy link
Owner

cgoldsby commented Oct 5, 2017

Hi @gustavolessadublin , did that information help? Can we close this issue?

@gustavolessa23
Copy link
Author

Thanks for your reply!
I am actually using the previous version of this pod.
I noticed that the project is still using Swift 3.2, but before that I had have already success compiling using the previous version.

Thanks again for your help!
Gustavo

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

2 participants