我正在尝试使用AppConnect
SDK 访问 MDM,swift 1.2
但它给出了以下错误:
[AppConnect:Error] AppConnect 无法直接实例化。而是调用 +initWithDelegate:,然后调用 +sharedInstance。
代码片段:
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, AppConnectDelegate {
var window: UIWindow?
var appct = AppConnect()
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
// Initialize the AppConnect library
AppConnect.initWithDelegate(self)
self.appct = AppConnect.sharedInstance()
self.appct.startWithLaunchOptions(launchOptions)
return true
}
}
访问 MobileIron 后端配置文件的密钥时应用程序崩溃。
还有其他方法可以实现吗?