xcode10 import not work well

xcode10 GM, import can't find(Auto-Complete) the file which not in the same folder,such as:


folder A :a.h,a.m

folder B:b.h


in source file a.m, import can find a.h,but can not find b.h

Replies

Same here after switching to Xcode 10.

Import header Auto-Complete provide a limited list of files he find in the same folder where the edited file is.

Files outside the edited file folder don't appear in the list.

Same problem ,this issus appears from Xcode10 beta

Ok.. Is there a trick to this? We are having the same issue since upgrading to XCode 10. #import will only see items in it's group.


Our .PCH file seems broken. The compiler will compile everything fine, but it will not link in things like categories, and stuff with have in the PCH. We assume this has somthing to do with the #imports.


If we create something and include the specific path to something like

#import "../LevelUpObjects/ObjectWeWant.h"


It will import the object, but it seems all search paths are borked. I would hope we don't have to go in to every file and change all the imports to be direct paths. Seems so old school.... The other option would be to put all the source in a single directory, which seems really disorganized.


We figure there is somethign we are missing, but can't figure out what.


Any help would be fantastic. Thanks.

Same problem, caused by the new build system probability.


File -> Workspace Setting -> build system -> legacy build system. don't know why but works for me at present.