"There is no such LocalAuthentication module when trying to import into Xcode 6 using Swift

I wanted to create a simple demo application using the new LocalAuthentication and Swift framework. I created a new Single View project and added one line to the top of the ViewController.swift file:

import LocalAuthentication 

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

+4
source share
2 answers

The same problem occurs when using Objective-C code. This seems to be a beta 1 issue. If you run your project on an iOS 8 device (tested on iPhone 5s), it will work. But this is not with a simulator (Framework cannot be found).

+3
source

Yes, the same problem occurs in Xcode 6. But it worked fine when I use the iPhone device, change the "Deployment Goal" in the settings of iOS 7.0, create and run on the Iphone device.

But touch ID is not supported on my device and iPod simulator. It only works on the iPhone 5s Device.

0
source

Source: https://habr.com/ru/post/970259/


All Articles