Why can't I see build warnings for target dependencies within the workspace?

Hi folks,


I'm working within an Xcode workspace, and I've noticed that Xcode isn't showing me any build warnings for target dependencies when building from within Xcode. Building with the xcodebuild command line utility shows warnings fine, and when I switch to the Report Navigator I see the warning symbol on builds if warnings are present, but I can only see these when switching to the Report Navigator. I see nothing in the toolbar, for example.


If I switch to the dependency project with the warning and build that, warnings show up fine.


I'm seeing the same behaviour in Xcode 7 and Xcode 8.


I double checked that I had warnings enabled (and this does work, from xcodebuild and shows in Report Navigator).


Anyone have any ideas? Is this me, or an Xcode bug?


Cheers,

Michael

Seeing the same thing here. Looks like an Xcode bug.

Add your dependency build target to your current scheme. Product > Scheme > Edit Scheme > Build > +


The same problem is explained at this link.

https://github.com/CocoaPods/CocoaPods/issues/5299


I'm not sure that it is really a Xcode bug. Maybe its just a change in functionality, but this allows me to see all compiler warnings.

Tested in Xcode 8.1 (8B62)


Hope this helps.


Sincerely,

Jacques

For me this happened because I moved my Xcode project into a file path that included a folder with an apostrophe in the name. Renaming the folder to remove the apostrophe fixed it so that the warnings now appear in the Xcode toolbar.

Why can't I see build warnings for target dependencies within the workspace?
 
 
Q