Xcode issues

Hi,

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?

Cheers,
Julien Rinaldini

https://reviews.llvm.org/rL275905

It probably landed after the 3.9 branch and unfortunately wasn’t backported.

CC Tstellar for 3.9.1

>
> Hi,
>
> 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.

rG4cf27c4d6f15

It probably landed after the 3.9 branch and unfortunately wasn’t backported.

CC Tstellar for 3.9.1

I created a bug to track this request: 30555 – Merge r275905 into 3.9 branch

-Tom

Hi,

Thanks, I backported the patch to my version and it worked fine!

Cheers,
Julien Rinaldini

Hi,

I managed to fix my second problem with the header not found. I had to modify my wrapper but it works well.

Cheers,
Julien Rinaldini