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

Scope errors with cocoapod #2

Closed
bryanbartow opened this issue Feb 7, 2017 · 5 comments
Closed

Scope errors with cocoapod #2

bryanbartow opened this issue Feb 7, 2017 · 5 comments

Comments

@bryanbartow
Copy link

I'm using Cocoapods 1.2 and Xcode 8.2.1. I get the following error when trying to use the library:
'font' is inaccessible due to 'internal' protection level
I'm getting this error whether I attempt to set the values through in init closure or set them separately on an existing instance.

Based on my own experience creating libraries with Cocoapods, all properties and methods have to be explicitly marked public even if the parent class/struct is public. Although the NSParagraphStyle related methods in the extension seem to all be marked public, only the init methods in the base class are public.

@Nirma
Copy link
Owner

Nirma commented Feb 8, 2017

@bryanbartow Thanks so much for pointing this out!
I opened this PR #3 to address the issue and after it passes CI Im going to merge into master and
create a release quickly.

@bryanbartow
Copy link
Author

Nice. Thanks. Do you plan on updating the pod or should I point at master for now?

@Nirma
Copy link
Owner

Nirma commented Feb 8, 2017

@bryanbartow I just went ahead and pushed the updated pod spec.
If you do a pod update how does it look now?

https://cocoapods.org/pods/AttributedLib

@bryanbartow
Copy link
Author

@Nirma Everything is working as expected.

@Nirma
Copy link
Owner

Nirma commented Feb 9, 2017

@bryanbartow Thanks so much!

@Nirma Nirma closed this as completed Feb 9, 2017
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