Added Apple's code KeychainItemWrapper.h &.m files into my app and can not run with an error

StackOverflow https://stackoverflow.com/questions/9994136

  •  28-05-2021
  •  | 
  •  

문제

enter image description here

I want save the username and password when user login, and I added the two Apple's file

in my app, but there is an error and build failed, maybe something about i386 cause this failed.

I using Xcode 4.3.2 and iPhone 5.1 simulator.I dont know what should I do with this error.

Help me, thanks in advance!

도움이 되었습니까?

해결책

You probably have not marked KeychainItemWrapper.m as part of the target, so it's not being compiled. Select the file in the filelist, Open the inspector (the right-hand pane), and make sure that it's assigned to the current target.

Don't forget that you will also need to link Security.framework.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top