Xcode 7.2, OS X 10.11.2 Ever since Xcode 7.0 I've been having intermittent troubles building OS X "Command Line Tool" projects.
About 50% of the time when I launch Xcode and try to build a "Command Line Tool" project, it will generate 1000s of nonsensical errors (see below). It acts like it doesn't recognize or can't parse C code. Once failed it never recovers and I have to create a new "Command Line Tool" project and copy my source code over to it. That builds fine... until (maybe) the next time I relaunch Xcode. Is this a known problem? Am I doing something fundamentally wrong? Is some build setting getting stomped? This behavior is consistent across all machines and accounts, but it seems to affect "Command Line Tool" projects only. -Carl Architectures: Standard Architectures (64-bit Intel) (x86_64) - $(ARCHS_STANDARD) Base SDK: Latest OS X (OS X 10.11) Build Active Architecture Only: YES Supported Platforms: OS X Valid Architectures: i386 x86_64 Partial Xcode build log follows: While building module 'Foundation' imported from /Users/carl/Projects/BRMdaemon_14Jan2016/BRMdaemon/BRM_defines.h:17: While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11: In file included from <module-includes>:326: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/ncurses.h:141: /opt/local/include/unctrl.h:60:63: error: unknown type name 'SCREEN' NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype); ^ /opt/local/include/unctrl.h:60:53: error: function cannot return function type 'char *(int *, chtype)' NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype); ^ /opt/local/include/unctrl.h:60:54: error: a parameter list without types is only allowed in a function definition NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype); ^ 3 errors generated. While building module 'Foundation' imported from /Users/carl/Projects/BRMdaemon_14Jan2016/BRMdaemon/BRM_defines.h:17: While building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: In file included from <module-includes>:1: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: fatal error: could not build module 'Darwin' #include <sys/types.h> ~~~~~~~~^ 4 errors generated. While building module 'Foundation' imported from /Users/carl/Projects/BRMdaemon_14Jan2016/BRMdaemon/BRM_defines.h:17: In file included from <module-includes>:1: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation' #include <CoreFoundation/CoreFoundation.h> ~~~~~~~~^ While building module 'Foundation' imported from /Users/carl/Projects/BRMdaemon_14Jan2016/BRMdaemon/BRM_defines.h:17: While building module 'ObjectiveC' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6: In file included from <module-includes>:1: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/objc/message.h:29: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/objc/objc.h:31:10: fatal error: could not build module 'Darwin' #include <sys/types.h> // for __DARWIN_NULL ~~~~~~~~^ While building module 'Foundation' imported from /Users/carl/Projects/BRMdaemon_14Jan2016/BRMdaemon/BRM_defines.h:17: While building module 'ObjectiveC' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6: While building module 'MachO' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/objc/objc-load.h:33: In file included from <module-includes>:1: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/mach-o/arch.h:32:10: fatal error: could not build module 'Darwin' #include <stdint.h> ~~~~~~~~^ 1 error generated. 2 errors generated. While building module 'Foundation' imported from /Users/carl/Projects/BRMdaemon_14Jan2016/BRMdaemon/BRM_defines.h:17: While building module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h:6: In file included from <module-includes>:1: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/dispatch/dispatch.h:25:10: fatal error: could not build module 'Darwin' ...etc. _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com