在实际设备iphone5s上运行的Xcode6-beta5的Touch ID构建错误

时间:2022-12-11 20:54:10

I am using Xcode6-beta5 to integrate touch ID authentication into my own application.Running on real device iphone5s(iOS8-beta5), using the following code. Already #import .

我正在使用Xcode6-beta5将touch ID身份验证集成到我自己的应用程序中。使用以下代码在真实设备iphone5s(iOS8-beta5)上运行。#已经导入。

LAContext *myContext = [[LAContext alloc] init];
NSError *authError = nil;
NSString *myLocalizedReasonString = @"use touch id to unlock app";

if ([myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) {
     [myContext evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics
               localizedReason:myLocalizedReasonString
                         reply:^(BOOL success, NSError *error) {
                            if (success) {
                               UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"success" message:@"pass auth" delegate:self cancelButtonTitle:NSLocalizedString(@"OK", @"OK button") otherButtonTitles:nil];

                               [alert show];
                               [alert release];

                               // User authenticated successfully, take appropriate action
                            } else {
                               UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"fail" message:@"fail auth" delegate:self cancelButtonTitle:NSLocalizedString(@"OK", @"OK button") otherButtonTitles:nil];

                               [alert show];
                               [alert release];
                               // User did not authenticate successfully, look at error and take appropriate action
                            }
                         }];
  } else {
     // Could not evaluate policy; look at authError and present an appropriate message to user
  }

But when I compile and run it shows build failed:

但是,当我编译并运行时,显示构建失败:

Ld build/HWC.build/Debug-iphoneos/HWC.build/Objects-normal/armv7/HWC normal armv7 cd /Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow export IPHONEOS_DEPLOYMENT_TARGET=8.0 export PATH="/Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode6-Beta5.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode6-Beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow/build/Debug-iphoneos -F/Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow/build/Debug-iphoneos -filelist /Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow/build/HWC.build/Debug-iphoneos/HWC.build/Objects-normal/armv7/HWC.LinkFileList -Xlinker -map -Xlinker /Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow/build/HWC.build/Debug-iphoneos/HWC.build/HWC-LinkMap-normal-armv7.txt -dead_strip -all_load ../../../Pioneer/MOClients/iPhone/build/Debug-iphoneos/libMO.a ../../../Pioneer/Robie/Device/iPhone/Datavault/build/Debug-iphoneos/libDatavault.a ../../../TPTools/iOS/afaria/libs/Debug-iphoneos/libAfariaSLL.a ../../../TPTools/PhoneGap/iOS/CordovaLib/build/Debug-iphoneos/libCordova.a ../../../TPTools/iOS/ClientUtil/Libraries/Debug-iphoneos/libsupClientUtil.a ../../../TPTools/iOS/ClientUtil/Libraries/Debug-iphoneos/libSUPSupportability.a ../../../TPTools/iOS/ClientUtil/Libraries/Debug-iphoneos/libPerformanceLib.a ../../../Pioneer/Robie/Device/iPhone/Widgets/HWCLib/build/Debug-iphoneos/libHWC.a ../../../TPTools/OpenSSL/iOS/Debug-iphoneos/libcrypto.a -fobjc-link-runtime -miphoneos-version-min=8.0 -lstdc++.6.0.9 -framework CoreTelephony -lz.1.2.5 -lstdc++ -framework CoreGraphics -framework CFNetwork -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework Security -framework UIKit -licucore.A -framework AddressBook -framework CoreMedia -framework AudioToolbox -framework AVFoundation -framework CoreLocation -framework AddressBookUI -framework SystemConfiguration -Xlinker -dependency_info -Xlinker /Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow/build/HWC.build/Debug-iphoneos/HWC.build/Objects-normal/armv7/HWC_dependency_info.dat -o /Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow/build/HWC.build/Debug-iphoneos/HWC.build/Objects-normal/armv7/HWC

Ld构建/ HWC.build / Debug-iphoneos /中国。构建/对象-正常/armv7/HWC常规armv7 cd /用户/i307466/下载/一桥/主干/应用/iPhone/工作流导出IPHONEOS_DEPLOYMENT_TARGET=8.0导出路径="/应用/Xcode6-Beta5.app/内容/开发者/平台/开发者/开发者/开发者应用程序/内容/开发/ usr / bin:/ usr / bin:/ bin:/ usr / sbin / sbin”/应用程序/ Xcode6-Beta5.app /内容/开发/工具链/ XcodeDefault。xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode6-Beta5.app/ content /Developer/ platform/ iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0sdk -L/用户/i307466/下载/一网桥/主干/应用/iPhone/工作流/构建/构建/调试-iphoneos -F/用户/i307466/下载/一网桥/主干/应用/iPhone/工作流/构建/构建/应用/文件列表/用户/i307466/下载LinkFileList -Xlinker -map -Xlinker /Users/i307466/下载/OneBridge/trunk/Apps/iPhone/WorkFlow/build/HWC.build/Debug-iphoneos/HWC.build/HWC-LinkMap-normal-armv7。txt -dead_strip -all_load . . / . . / . . /先锋/ MOClients / iPhone /构建/ Debug-iphoneos / libMO。. . / . . / . . /先锋/ Robie /设备/ iPhone / Datavault /构建/ Debug-iphoneos / libDatavault。. . / . . / . . / TPTools / iOS / afaria / libs / Debug-iphoneos / libAfariaSLL。. . / . . / . . / TPTools / PhoneGap / iOS / CordovaLib /构建/ Debug-iphoneos / libCordova。. . / . . / . . / TPTools / iOS / ClientUtil /图书馆/ Debug-iphoneos / libsupClientUtil。. . / . . / . . / TPTools / iOS / ClientUtil /图书馆/ Debug-iphoneos / libSUPSupportability。. . / . . / . . / TPTools / iOS / ClientUtil /图书馆/ Debug-iphoneos / libPerformanceLib。. . / . . / . . /先锋/ Robie /设备/ iPhone / widget / HWCLib /构建/ Debug-iphoneos / libHWC。. . / . . / . . / TPTools OpenSSL / iOS / Debug-iphoneos / libcrypto。-fobjc-link-runtime -miphoneos-version-min=8.0 -lstdc+ .6.0.9 -框架coret象-lz.1.2.5 -lstdc+框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架-框架。框架地址库框架地址库框架地址库框架地址库框架结构系统配置xlinker依赖信息-Xlinker /用户/i307466/下载/一网桥/主干/应用/iPhone/工作流/构建/构建/构建/依赖dat - o /用户/ i307466 /下载/ OneBridge /箱子/应用程序/ iPhone /工作流/构建/ HWC.build / Debug-iphoneos / HWC.build / Objects-normal / v7 /中国

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_LAContext", referenced from: objc-class-ref in HWCAppDelegate.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

架构armv7的未定义符号:“_OBJC_CLASS_$_LAContext”,引用自HWCAppDelegate中的:objc-class-ref。没有为架构armv7找到的符号:错误:退出代码1的链接器命令失败(使用-v查看调用)

Ld build/HWC.build/Debug-iphoneos/HWC.build/Objects-normal/arm64/HWC normal arm64 cd /Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow export IPHONEOS_DEPLOYMENT_TARGET=8.0 export PATH="/Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode6-Beta5.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode6-Beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow/build/Debug-iphoneos -F/Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow/build/Debug-iphoneos -filelist /Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow/build/HWC.build/Debug-iphoneos/HWC.build/Objects-normal/arm64/HWC.LinkFileList -Xlinker -map -Xlinker /Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow/build/HWC.build/Debug-iphoneos/HWC.build/HWC-LinkMap-normal-arm64.txt -dead_strip -all_load ../../../Pioneer/MOClients/iPhone/build/Debug-iphoneos/libMO.a ../../../Pioneer/Robie/Device/iPhone/Datavault/build/Debug-iphoneos/libDatavault.a ../../../TPTools/iOS/afaria/libs/Debug-iphoneos/libAfariaSLL.a ../../../TPTools/PhoneGap/iOS/CordovaLib/build/Debug-iphoneos/libCordova.a ../../../TPTools/iOS/ClientUtil/Libraries/Debug-iphoneos/libsupClientUtil.a ../../../TPTools/iOS/ClientUtil/Libraries/Debug-iphoneos/libSUPSupportability.a ../../../TPTools/iOS/ClientUtil/Libraries/Debug-iphoneos/libPerformanceLib.a ../../../Pioneer/Robie/Device/iPhone/Widgets/HWCLib/build/Debug-iphoneos/libHWC.a ../../../TPTools/OpenSSL/iOS/Debug-iphoneos/libcrypto.a -fobjc-link-runtime -miphoneos-version-min=8.0 -lstdc++.6.0.9 -framework CoreTelephony -lz.1.2.5 -lstdc++ -framework CoreGraphics -framework CFNetwork -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework Security -framework UIKit -licucore.A -framework AddressBook -framework CoreMedia -framework AudioToolbox -framework AVFoundation -framework CoreLocation -framework AddressBookUI -framework SystemConfiguration -Xlinker -dependency_info -Xlinker /Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow/build/HWC.build/Debug-iphoneos/HWC.build/Objects-normal/arm64/HWC_dependency_info.dat -o /Users/i307466/Downloads/OneBridge/trunk/Apps/iPhone/WorkFlow/build/HWC.build/Debug-iphoneos/HWC.build/Objects-normal/arm64/HWC

Ld构建/ HWC.build / Debug-iphoneos /中国。构建/对象-正常/arm64/HWC常规arm64 cd /用户/i307466/下载/一桥/主干/应用/iPhone/工作流导出IPHONEOS_DEPLOYMENT_TARGET= "/应用/Xcode6-Beta5.app/内容/开发者/平台/开发者/开发者/usr:/应用/ x6 - beta5。应用程序/内容/开发/ usr / bin:/ usr / bin:/ bin:/ usr / sbin / sbin”/应用程序/ Xcode6-Beta5.app /内容/开发/工具链/ XcodeDefault。xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode6-Beta5.app/ content /Developer/ Developer/ platform/Developer/ Developer/SDKs/iPhoneOS8.0sdk / l/用户/i307466/下载/一网桥/主干/应用/iPhone/工作流/构建/构建/调试-iphoneos -F/用户/i307466/下载/一网桥/主干/应用/iPhone/工作流/构建/构建/应用/文件列表/用户/i307466/下载LinkFileList -Xlinker -map -Xlinker /用户/i307466/下载/OneBridge/trunk/Apps/iPhone/工作流/构建/HWC.build/Debug-iphoneos/HWC.build/HWC-LinkMap-normal-arm64。txt -dead_strip -all_load . . / . . / . . /先锋/ MOClients / iPhone /构建/ Debug-iphoneos / libMO。. . / . . / . . /先锋/ Robie /设备/ iPhone / Datavault /构建/ Debug-iphoneos / libDatavault。. . / . . / . . / TPTools / iOS / afaria / libs / Debug-iphoneos / libAfariaSLL。. . / . . / . . / TPTools / PhoneGap / iOS / CordovaLib /构建/ Debug-iphoneos / libCordova。. . / . . / . . / TPTools / iOS / ClientUtil /图书馆/ Debug-iphoneos / libsupClientUtil。. . / . . / . . / TPTools / iOS / ClientUtil /图书馆/ Debug-iphoneos / libSUPSupportability。. . / . . / . . / TPTools / iOS / ClientUtil /图书馆/ Debug-iphoneos / libPerformanceLib。. . / . . / . . /先锋/ Robie /设备/ iPhone / widget / HWCLib /构建/ Debug-iphoneos / libHWC。. . / . . / . . / TPTools OpenSSL / iOS / Debug-iphoneos / libcrypto。-fobjc-link-runtime -miphoneos-version-min=8.0 -lstdc+ .6.0.9 -framework coretelephant -lz.1.2.5 -lstdc+ -framework CoreGraphics -framework CoreGraphics -framework CFNetwork -framework Foundation -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework Security -framework Security -framework UIKit -framework Security -framework Security -framework Security -framework UIKit -framework Security -framework service。框架地址簿-framework AudioToolbox -framework AVFoundation -framework CoreLocation -framework AddressBookUI -framework SystemConfiguration -Xlinker - dependencydencyker - info -Xlinker /Users/i307466/Downloads/OneBridge/trunk/Apps/ Apps/ Apps/iPhone/WorkFlow/build/ depend_hwc .build/常规性dat - o /用户/ i307466 /下载/ OneBridge /箱子/应用程序/ iPhone /工作流/构建/ HWC.build / Debug-iphoneos / HWC.build / Objects-normal / arm64 /中国

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_LAContext", referenced from: objc-class-ref in HWCAppDelegate.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

架构arm64的未定义符号:“_OBJC_CLASS_$_LAContext”,引用自HWCAppDelegate中的:objc-class-ref。o ld:架构arm64没有找到的符号clang: error: linker命令退出码1失败(使用-v查看调用)

1 个解决方案

#1


12  

It doesn't appear that you're linking LocalAuthentication.framework. Add it to your app's target in Xcode (General->Linked Frameworks and Libraries->+->LocalAuthentication.framework).

看起来您并没有链接localauthentic.net .framework。在Xcode中将它添加到应用程序的目标(通用->链接框架和库->+-> localauthentic.net .framework)中。

#1


12  

It doesn't appear that you're linking LocalAuthentication.framework. Add it to your app's target in Xcode (General->Linked Frameworks and Libraries->+->LocalAuthentication.framework).

看起来您并没有链接localauthentic.net .framework。在Xcode中将它添加到应用程序的目标(通用->链接框架和库->+-> localauthentic.net .framework)中。