Dragging Folder from Finder Does Not Add Files to Target

With the Xcode 9 GM build if I drag a folder from finder or the desktop containing .h/.m (objC) files into the navigator pane to add to my project they are never added to the target. The add files to project dialog opens and despite "Add to targets" being selected it never adds the .m files to my intended target.


Is anyone else seeing this issue?


This only happens with folders of files dragged over, dragging the files themselves works. Also, if I right click on the nav pane and select "Add files to project" or click the + icon in the lower left it does work as intended and the files are added to the target.


(Xcode 9 GM 9A235 and MacOS 10.12.6)

Replies

got same problems, xcode 9 release version

not just folder with objc files, but any folder with any files


https://forums.developer.apple.com/thread/87806

same problem

Did you file a bug report ?

Same problem here on 2 different machines.

Same problem with Xcode 9 (not GM)
Doesn't matter what target you selected during the file add, the file is added to the project but does not remember the target selection.

Tried both drag and drop and "add file..."

I confirmed, same problem with XCode 9 (9A235).

I wonder if Apple really test their products!

I've got the same issue. Hard to beleive this slipped by them. Wouldn't the people making xcode be using xcode to make xcode?

Still the same here in 2020... Attaching a target to drag & drop files and folders should be a default behavior!