This is my first IOS application and all has gone well up to this point. My code is in Swift and I need to use the Gold Raccoon FTP library, which is in Obj-C, in my application: https://github.com/albertodebortoli/GoldRaccoon
I imported the Gold Raccoon files and created the bridge header
. The main class you work with is the GRRequestsManager
, which I can successfully instantiate in a running app. I cannot however access the addRequestForUploadFileAtLocalPath
method in that class.
I initially just had the GRRequestsManager.h
import statement in the bridge file. Since that inherits GRRequestsManagerProtocol.h
that has the actual method I'm trying to use defined in it (addRequestForUploadFileAtLocalPath
), I decided to add that to my bridge header file and lo and behold all of a sudden auto suggest popped up for the method and I could put it in my code with no errors. A few minutes later I got an error message again and it won't work now no matter what. I've tried closing and reopening Xcode and cleaning/rebuilding to no avail.
Below is a combined image (can only post 1 image due to my points) showing first the bridging-header
and second (separated by the red line) the error in the code where I'm trying to call the method. You can see it recognized the class just fine.