“No such module 'LocalAuthentication'” whe

2019-02-23 09:20发布

问题:

I wanted to build a simple demo app using the new LocalAuthentication framework and Swift. I made a new Single View project, and added one line to the top of the ViewController.swift file:

import LocalAuthentication

Whereupon Xcode tells me there is no such module. Obviously very new to Swift, what am I doing wrong?

回答1:

Same problem occurs with Objective-C code. Seems like it is an issue of beta 1. If you run your project on an iOS 8 device (tested on a 5s iPhone), it will work. But it doesn't with the Simulator (Framework can't be found).



回答2:

Yes,Same Problem Occurs in Xcode 6. But It worked fine when I use an iPhone Device, change "Deployment target" on settings to iOS 7.0, build and run in Iphone device.

But Touch ID not Supported in my ipod Device and Simulator.. Its works only in iPhone 5s Device.