您好,在使用swift時出現了以下問題。
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_ABBeaconManager", referenced from:
type metadata accessor for __ObjC.ABBeaconManager in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我在AppDelegate.swift中試圖初始化ABBeaconManager()就出現錯誤了,
想請問是何原因?
有我用bridging-header.h來import你們的SDK了
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, ABBeaconManagerDelegate {
var window: UIWindow?
let beaconManager = ABBeaconManager()
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
// self.beaconManager.delegate = self
// self.beaconManager.requestAlwaysAuthorization()
// self.beaconManager.startMonitoringForRegion(ABBeaconRegion(
// proximityUUID: NSUUID(UUIDString: "E2C56DB5-DFFB-48D2-B060-D0F5A71096E0")!,
// major: 100, minor: 101, identifier: "monitored region"))
return true
}
....
...
謝謝~