该文档仅显示SWIFT CODE。尝试使用 Objective-C 时,我无法访问任何 Amplify 库。我是否缺少安装步骤?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
do {
try Amplify.add(plugin: AWSCognitoAuthPlugin())
try Amplify.add(plugin: AWSPinpointAnalyticsPlugin())
try Amplify.configure()
print("Amplify configured with Auth and Analytics plugins")
} catch {
print("Failed to initialize Amplify with \(error)")
}
return true
Run Code Online (Sandbox Code Playgroud)
}
如何在Objective-C中做等价的?