This appears to be a known bug in Xcode 7.0 and 7.1B1 (bug #21813082).
As a temporary workaround, to suppress extensive warnings, the -w flag can be added to Build Settings -> Other Linker Flags:
Select your Project
Select your Target
Select "Build Settings" tab
Scroll down to "Linking"
Edit "Other Linker Flags" and add "-w"
I've only added this to the Debug build settings and inserted the following to the AppDelegate, just as reminder:
#ifdef DEBUG
#warning Linker warnings suppressed (-w in build settings)
#endif
This at least helps to quickly spot the real warnings instead of having the build results flooded with the same warning for every source (in my case 150+ warnings appeared).
网友评论