Search code examples
iosxcodeaccelerate-framework

Xcode 6 - Could not build module 'Accelerate'


I'm using Xcode 6 beta 2 (6A216f) and everything was okay, but when I build to any device other than the 5s I get 111 errors. The problem occurs because I'm using the FXBlurView and it imports the Accelerate framework.

I've searched a lot and could not find any solution. This is the error:

It's too long so I uploaded to pastebin.

PS: I don't know which part you need so I uploaded everything.

Also if I remove #import "FXBlurView.h" from the Bridging-Header I get no errors

EDIT: So I "solved" my problem. The error says that the compiler doesn't know what vFloat was, so I checked vecLibTypes.h and saw that vFloat was defined in this piece of code:

#elif defined(__i386__) || defined(__x86_64__)
#ifdef __SSE__
#if defined(__GNUC__)
#include <xmmintrin.h>
typedef float                   vFloat          __attribute__ ((__vector_size__ (16)));
#else /* not __GNUC__ */
#include <xmmintrin.h>
typedef __m128                          vFloat;
#endif /* __GNUC__ */
#endif  /* defined(__SSE__) */

and If I remove the first #elif I get no errors...

EDIT2: The correct solution was found by @Nick


Solution

  • If you move the Accelerate import statement inside the implementation file it works. I forked the project to make the change and have submitted a pull request.

    https://github.com/nrbrook/fxblurview