Tag Archives: error

unzip:  cannot find zipfile directory in one of dogscats.zip

unzip:  cannot find zipfile directory in one of dogscats.zip I was going through first lesson on fast.ai. I got stuck while unzipping the file containing dataset. After trying different solutions, like using 7z, jar etc. I finally found the solution! Error ‘On running the unzip command, I was getting the following error: Archive:  dogscats.zip  End-of-central-directory signature… Read More »

cannot convert return type int to return type ()->int

cannot convert return type int to return type ()->int If you are working with nested functions and you face such error while returning a function then see if you haven’t used parentheses after function name after return.

 

switch case is in protected scope

switch case is in protected scope Try to write each case within “{” & “}” brackets and it will resolve the issue of protected scope. It will occur when you will perform some instantiation within cases.

Simulator in use error even though it is not in use

Simulator in use even though it is not in use  If you face this problem while running the app on simulator and even though you stopped it but still each time you run, it shows it’s in use then the simple and straight forward way is to Restart XCode and now run your app again.

data parameter is nil json error

Data parameter is nil json error  If you are working on iOS app with json parsing, you might fall into this error: JSON error: <error: expected ‘]’ error: 1 errors parsing expression > , ‘NSInvalidArgumentException’, reason: ‘data parameter is nil’ If you are pretty sure that the URL is okay, as well as rest of the… Read More »