Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7 doesn't autocomplete if using bridging header

So, the problem is that when I import anything in the Xcode 7 using Bridging Header Xcode doesn't autocomplete my code, no matter if I import given framework, header file in my current .swift, if it's just in bridging header Xcode doesn't autocomplete.

Though things are different dependently on framework, if I import Parse framework Xcode doesn't autocomplete at all, like no NSString, no other basic stuff. When I tried to import FacebookSDK, Xcode autocompletes basic stuff like NSString, but it doesn't autocomplete FacebookSDK related stuff.

Also I tried running same project in Xcode 6 and there autocomplete works properly. Is it something wrong with my Xcode 7 or the frameworks? I already tried deleting cache, derived data, reinstalling Xcode 7 but none helped. Any tip?

like image 960
Damian Avatar asked Jun 22 '15 09:06

Damian


1 Answers

The solution that worked for me is to make sure you put an individual path for each framework you include in your project as in the screenshot below.

enter image description here

like image 64
Van Du Tran Avatar answered Oct 02 '22 07:10

Van Du Tran