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
<unknown>:0: error: 'init' is inaccessible due to 'private' protection level #162
Comments
Some questions that might help narrow things down:
|
Same error here:
|
Judging from Google... this is happening to others too: Carthage/Carthage#2587 I think this may be is an issue in both @i-schuetz's and @aasatt's code, but the reporting of the issue is incorrect due to a known Swift bug: https://bugs.swift.org/browse/SR-7644 Folks who are seeing this issue: are you trying to initialize a |
I'm creating it with an id and accessibility. I'm not referencing the
|
Okay so changed nothing except added Looks like that might have made the initializer inaccessible. I'm getting |
Oh!! Yeah, okay. I should have seen this earlier: you're using an initializer that is I think the #166 fix helps make that a bit more clear since we're no longer causing the build log to be spammed with spurious errors, so I'll merge it once it gets reviewed. |
Ohh wow got it. Yeah I was reusing some code from an older project and didn't realize this was changed from So your branch definitely helps to keep things safe. Confirmed that Thanks @dfed |
I can reproduce this issue on
Glad we have a solution! Thank you @aasatt for the prompt responses today. |
@dfed |
@falcon283: the error message was telling me something that was obviously incorrect, but the error message mentioned a private initializer, which we had (in an NSObject subclass). So I made a speculative fix to make our overridden method match the access-level of the class definition. Basically, trust the error message, but not the location. |
thanks @dfed I appreciated your response. |
When I upgrade Valet to 3.2.2 (happens with 3.0.1 as well), getting this:
Any ideas? I checked the initializers of the listed classes but they're are all public and I also don't understand why this is affected by upgrading Valet.
The text was updated successfully, but these errors were encountered: