macOS initApp Swift

I’m migrating a macOS app from Backendless 3.

I use Cocoapod ‘Backendless-osx-SDK’
But the init call is still the old one with ‘secret’ and ‘version’.
I have changed the App ID to the one given in v4 and the API_Key seems to be the same as in v3.

However, trying to run the app with those credentials, I get this error;

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}

“Server reported an error: Optional(FAULT = ‘2002’ [Version is disabled or provided wrong application info (application id or secret key)] <Version is disabled or provided wrong application info (application id or secret key)> )”

Terminal is reporting the following for the Backendless pod;

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; color: #4d2f2d; background-color: #dfdbc3}
span.s1 {font-variant-ligatures: no-common-ligatures}

Using Backendless-osx-SDK (3.0.43)

Any idea?

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #36568a; background-color: #fffcea}

Hi Jordan

Actually no, you should use AppId and ApiKey from 4.x, and also you should use iOS SDK v4.x

this link may be helpful for you https://backendless.com/docs/ios/doc.html#migration_from_3_x_to_4_x

Regards, Vlad

I see, but it’s not iOS. It’s macOS (former OS X).

Using the Backendless pod for iOS will not work.

@mark piller

Imported mac library (see attached), but get no initializer.

Screen Shot 2017-11-26 at 10.43.35.png

@Vladimir Upirov

I’ve imported the library from Git, as suggested by Mark.
It is not taking the initApp with the correct credentials.

Onwards and upwards with the rest of the changes.

Hello Jorgen,

Please check the newest version of Backendless-osx-SDK (4.0.19), it should be ok now.

Regards, Olga

Thanks. Looking good.

Jorgen,

Is the issue solved?

Regards Anton

Solved. Thank you.

Working on the rest of the refactoring now.