Using hosted api/custom service with swift

I figured it out but i get a diffrent error now,
<Version is disabled or provided wrong application info (application id or secret key)>

Please make sure your pod command in the podfile looks like

pod 'Backendless', '~> 3.0'

and it should install v3.0.46

Analyzing dependencies
Downloading dependencies
Installing Backendless (3.0.46)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
 
 
 
 
 
 
Analyzing dependencies
 
Downloading dependencies 
 
Using Backendless (3.0.46) 
 
Generating Pods project 
 
Integrating client project 
 
Sending stats 
 
Pod installation complete! There is 1 dependency from the Podfile and 1 total 
 
pod installed.


I just get a diffrent error now

So you updated to 3.0.46 and now getting a ‘Version is disabled’ error message?
If so, please provide your code which does the initApp call.

 let BACKENDLESS_HOST = "[url=https://api.backendless.com]https://api.backendless.com"[/url];; 
 let SERVICE_NAME = "EpilepsyService"; 
 let SERVICE_VERSION_NUMBER = "1.0.0"; 
 let APP_VERSION = "dev"; 
 let APP_ID = "CE6DAFE1-FEAB-9A8E-FFA9-BA98F212A300"//CE6DAFE1-FEAB-9A8E-FFA9-BA98F212A300 
 let SECRET_KEY = "REMOVED FOR POST" 
 let VERSION_NUM = "v1" 
 
 
 
 
 
 
 
 
 
 
 
 var backendless = Backendless.sharedInstance() 







 
 
 
 
 
 
  func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {


        backendless?.hostURL = BACKENDLESS_HOST
        backendless?.initApp(APP_ID, secret:SECRET_KEY, version:VERSION_NUM)
        // If you plan to use Backendless Media Service, uncomment the following line (iOS ONLY!)
        // backendless.mediaService = MediaService()
        
        return true






















    }
 




You use version ‘v1’ while your app doesn’t have such.

when i download the custom sdk it comes with a sample that has that. If you know what’s suppose to go there then can you let me know

Depending on the version of your application you want to use, you’ll need to have one of the following:

let VERSION_NUM = "dev"

or

let VERSION_NUM = "pre"

or

let VERSION_NUM = "prod"

Everything works now