简体   繁体   中英

Appirater not available in AppDelegate

I have installed Appirater with Cocoapods however I can't see the class in AppDelegate for some reason. `

import UIKit
import CoreData
import UserNotifications

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

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

    // set up Appirater
    Appirater.setAppId("...") //DOES NOT RECOGNISE APPIRATER
}

pod file looks like

platform :ios, '8.0'
target 'myapp' do
   use_frameworks!
pod 'Appirater'
end

I have used use_frameworks in pod file so I don't think I need a bridging header file. Any help to get this working much appreciated!

您正在使用框架,这意味着需要像导入其他任何框架一样导入该框架:

import Appirater

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM