Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Core Image face detection broken on 64 bit iOS?

So, I have an app that uses the face detection feature of Core Image ( https://itunes.apple.com/us/app/ace-freakyface-cartoon-mask/id454513332?mt=8 ) and I just got the new iPhone 5s and the app no longer detects a face. I'm also receiving an error in the console while debugging:

/System/Library/PrivateFrameworks/FaceCore.framework/fcl-fc-3.dat: mach-o, but wrong architecture 2013-09-25 20:17:22.861 faceMaker[474:a16b] Face detection finding face error: Error Domain=FCRFaceDetectorErrorDomain Code=2 "dlopen(/System/Library/PrivateFrameworks/FaceCore.framework/fcl-fc-3.dat, 2): no suitable image found. Did find:

I've update my iPhone 4s(non-64 bit) with iOS 7 and the app works as it should. I think I need to update the valid architectures but when I do that I break the AdMob library. there may be a way around this but not that I'm aware of. Anyway I'm going to keep trying stuff but was wondering if anyone else had similar problems. I also downloaded what looked to be other apps in the app store using the face detector api and the same result, i.e. no joy on 64 bit.

Thanks,

Nick

like image 363
nickthedude Avatar asked Sep 26 '13 03:09

nickthedude


1 Answers

I also had this issue with our face morphing app. I wrote a stand alone testing program, that only does face recognition software. If I compiled it as a 64 bit app and ran it on the iPhone 5S with iOS 7, it worked. If I compiled it as a 32 bit app ran it on the iPhone 5S with iOS 7, it failed. I received similar log. It appears when in 32 bit mode, a private library named FaceCore is not available. A 64 bit version of the library is available. We need to have more people complain to Apple about this, since it sounds like a OS bug!

like image 152
Steve Sheets Avatar answered Sep 17 '22 11:09

Steve Sheets