6

When I drag .png files to my project and check the targets in "Add to targets" section, these files are added to the project but not to the targets.

Then I have to select target membership for these files manually.

Source files (.cpp) are added normally.

This just happens on Xcode 9. Previous versions work fine.

Any help? Thanks.

2
  • Thanks, all my new .png images were not showing with Xcode 9. I manually added them to the target as you describe and they show fine now. Commented Sep 29, 2017 at 15:34
  • The same problem. Not only with .png, with .m too. Looks like a bug. Commented Oct 12, 2017 at 23:18

2 Answers 2

1

It is XCode 9 bug. I have the same problem not only with .png, with .m files too.

Opened Radar: https://openradar.appspot.com/33577678

Sign up to request clarification or add additional context in comments.

Comments

0

Please ensure that you have checkbox create groups selected and not create folder references while you adding files to project. It fixed target issue with adding group of files for me. enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.