sean7512 / RestEssentials

Lightweight REST and JSON library for Swift.
MIT License
37 stars 12 forks source link

'raw' is inaccessible due to 'private' protection level in JSON.swift #18

Closed mabdullah2010 closed 6 years ago

mabdullah2010 commented 6 years ago

When trying to build a project including RestEssentials, I receive the following error in JSON.swift:

'raw' is inaccessible due to 'private' protection level

The makeData() function inside of the internal extension for the JSON struct is trying to access a private variable 'raw'. If the variable is changed to be fileprivate instead, it compiles successfully. Do you believe anything else needs to be changed to address this?

Thanks

sean7512 commented 6 years ago

You are not using Swift 4. See this already closed issue: https://github.com/sean7512/RestEssentials/issues/14

mabdullah2010 commented 6 years ago

@sean7512 Thank you for your quick response and my apologies for not noticing that you had already addressed this question in a previous issue. This can be marked as resolved. Thanks!

sean7512 commented 6 years ago

I'll leave it open until I get clarification that solution works for you as well...please let me know if that solves your issue.

mabdullah2010 commented 6 years ago

I just tried building the project again and the solution indeed works for me. Thank you!

sean7512 commented 6 years ago

Ok, great! Thanks for the confirmation...closing now.