[llvm-dev] Xcode issues

Rinaldini Julien via llvm-dev llvm-dev at lists.llvm.org
Wed Sep 28 11:00:06 PDT 2016


I’m using llvm+clang (+ a wrapper for swift that allow me to use my clang to compile swift files) inside Xcode and I have encountered two issues with the new clang 3.9 and Xcode 8:

1) when compiling with the deployment target set to 10.0, I got this error: clang-3.9: error: invalid version number in '-miphoneos-version-min=10.0’. If I set back the deployment target to 9.3 it works fine.

2) when compiling a mixed project with both swift and objective-c source code, the compiler fail to find the “bridge” include: 

SOMEFILE.m:15:9: fatal error: 'Sparkasse-Swift.h' file not found
#import <SOMETHING-Swift.h>
1 error generated.
Command /usr/localt/bin/clang failed with exit code 1

I guess I can add a -I/path/to/SOMETHING-Swift.h to the flags but I have a lot of those.

Does anyone encountered those issues? Do you have any pointer on how I can fix those issues?

Julien Rinaldini

More information about the llvm-dev mailing list