nstack-io / nstack-ios-sdk

MIT License
5 stars 10 forks source link

Nstack does not have support in Xcode 14.3 via cocoapods, can not configure Nstack. #109

Closed istiakmorsalinmlbd closed 1 year ago

istiakmorsalinmlbd commented 1 year ago

I tried to set up Nstack with cocoapods on Xcode 14.3 on the M2 apple silicon. My cocoapods version 1.12.0 Here is how I tried to integrate in the podfile pod 'NStackSDK', '~> 5.1.4'

I am trying to configure nstack like this below:

import NStackSDK
class NStackConfigurator: AppConfigurationProtocol {

    func setup(withApplication application: UIApplication, launchOptions: [UIApplication.LaunchOptionsKey : Any]?) {

        var nStackConfig = Configuration(plistName: "NStack",
                                         environment: .production,
                                         localizationClass: Localizations.self)
        nStackConfig.updateOptions = [.onDidBecomeActive]
        NStack.start(configuration: nStackConfig, launchOptions: launchOptions)
        NStack.sharedInstance.localizationManager?.updateLocalizations()   
    }
}

But getting the following error. Please check the screenshot:

Screenshot 2023-04-16 at 12 15 06 AM

Under the above circumstances, what could be the possible way to use nstack in Xcode 14.3? I have tried with carthage but that is also not working. Please help me here.

Istiakmorsalin commented 1 year ago

Using Nstack version 5.1.7 was enough to fix the issue.

mariusc commented 1 year ago

Glad to hear it works now. In this case, I'm closing this issue