-
Notifications
You must be signed in to change notification settings - Fork 43
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
'BinanceAllPricesRequest' initializer is inaccessible due to 'internal' protection level #3
Comments
Which version of Swift are you using? I released this library when Swift 4.0 was the latest and greatest. Swift minor version increments are not source compatible with previous versions so I suspect there's an issue related to Swift 4.1 or 4.2 |
Fixed with 1.0.0! Please see if it works now on your end. I should make a CI config for this but it's been a late night. |
|
Like AlexeyGorbunov wrote, It ask for a designated init. However If I test with an empty init() then the compiler error goes away but then we get "'elements' is inaccessible due to 'internal' protection level". So this means a full init(...) for each struct. |
BTW, I couldn't compile it using the shell with adding the github dpyro/binance-api in the garthage file. I did compile the two libraries by using the shell separately and the Binance-Api lib using xcode. Otherwise I did get a segment error and xcode crashes. Please also give us a working release setup, because I did get problems there too. |
Hello! I want to use BinanceApi for the macOS application.
I'll try the examples that are given in README.md, when I use the code from the example (I get the latest price for all symbols), I get an error when I initialize the class
let request = BinanceAllPricesRequest ()
The text was updated successfully, but these errors were encountered: