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

'unarchiveTopLevelObjectWithData' is unavailable #20

Closed
Isuru-Nanayakkara opened this issue Sep 19, 2017 · 2 comments
Closed

'unarchiveTopLevelObjectWithData' is unavailable #20

Isuru-Nanayakkara opened this issue Sep 19, 2017 · 2 comments

Comments

@Isuru-Nanayakkara
Copy link

Isuru-Nanayakkara commented Sep 19, 2017

Hi,

I installed the library on a Xcode 9 (beta 4) project via CocoaPods.

platform :ios, '9.0'

target 'DekoterDemo' do
  use_frameworks!

  pod 'Dekoter'

end

It installed the v0.3.0 of Dekoter. Then I built the project and I get the following compile error in the NSKeyedUnarchiver+Dekoter.swift file inside the de_unarchiveObject method.

'unarchiveTopLevelObjectWithData' is unavailable

@artemstepanenko
Copy link
Owner

artemstepanenko commented Sep 19, 2017

Hello, @Isuru-Nanayakkara . Thanks for this issue!
Looks like the problem is that the unarchiveTopLevelObjectWithData method has a different name in swift 4 (which is introduced in your brand new Xcode 9). I plan to convert the pod to swift 4 a little later when a final version of Xcode 9 is released. As a temporary solution please check this question/answer.

P.S. Please let me know whether it helps.

@Isuru-Nanayakkara
Copy link
Author

Thanks, @artemstepanenko for the prompt reply!

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