Could not build module 'Darwin'
Could not build module 'Darwin'
- Subject: Could not build module 'Darwin'
- From: Carl Hoefs <email@hidden>
- Date: Wed, 07 Dec 2016 12:34:57 -0700
(Xcode 7.2.1, iOS 9.3, OS X 10.10.5)
I was building fine all week, until suddenly Xcode coughed up this error:
> Could not build module 'Darwin'
when trying to parse the 1st line in the project's .pch file (#import <Availability.h>).
Now Xcode won't build _any_ iOS apps (OS X apps build okay).
Is the 'solution' to reinstall Xcode? Or perhaps just the iOS SDKs? Did some Xcode build setting get hosed?
Here's the topmost portion of the build log.
-Carl
------------------------------
Build target ProteinFold of project ProteinFold with configuration Debug
Create product structure
/bin/mkdir -p /Users/carl/Library/Developer/Xcode/DerivedData/ProteinFold-brvvbylhfpwivregerjihjkesuzb/Build/Products/Debug-iphoneos/ProteinFold.app
ProcessPCH /Users/carl/Library/Developer/Xcode/DerivedData/ProteinFold-brvvbylhfpwivregerjihjkesuzb/Build/Intermediates/PrecompiledHeaders/ProteinFold-Prefix-bqdgxektxyelmfbeovbfvbqalove/ProteinFold-Prefix.pch.pch ProteinFold-Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.analyzer
cd /Users/carl/Projects/ProteinFoldBT_07Dec2016
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode7.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode7.2.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode7.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/carl/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/carl/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wmissing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode7.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=9.3 -g -Wno-sign-conversion -fembed-bitcode-marker -D__clang_analyzer__ -Xclang -analyzer-output=plist-multi-file -Xclang -analyzer-config -Xclang path-diagnostics-alternate=true -Xclang -analyzer-config -Xclang report-in-main-source-file=true -Xclang -analyzer-config -Xclang mode=shallow -Xclang -analyzer-checker -Xclang security.insecureAPI.UncheckedReturn -Xclang -analyzer-checker -Xclang security.insecureAPI.getpw -Xclang -analyzer-checker -Xclang security.insecureAPI.gets -Xclang -analyzer-checke
r -Xclang security.insecureAPI.mkstemp -Xclang -analyzer-checker -Xclang security.insecureAPI.mktemp -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.rand -Xclang -analyzer-disable-checker -Xclang security.insecureAPI.strcpy -Xclang -analyzer-checker -Xclang security.insecureAPI.vfork -iquote /Users/carl/Library/Developer/Xcode/DerivedData/ProteinFold-brvvbylhfpwivregerjihjkesuzb/Build/Intermediates/ProteinFold.build/Debug-iphoneos/ProteinFold.build/ProteinFold-generated-files.hmap -I/Users/carl/Library/Developer/Xcode/DerivedData/ProteinFold-brvvbylhfpwivregerjihjkesuzb/Build/Intermediates/ProteinFold.build/Debug-iphoneos/ProteinFold.build/ProteinFold-own-target-headers.hmap -I/Users/carl/Library/Developer/Xcode/DerivedData/ProteinFold-brvvbylhfpwivregerjihjkesuzb/Build/Intermediates/ProteinFold.build/Debug-iphoneos/ProteinFold.build/ProteinFold-all-target-headers.hmap -iquote /Users/carl/Library/Developer/Xcode/DerivedData/ProteinFold-brvvbylhfpwivregerjihjkesuzb/Build/Intermediates/ProteinFold.build/Debug-iphoneos/ProteinFold.build/ProteinFold-project-headers.hmap -I/Users/carl/Library/Developer/Xcode/DerivedData/ProteinFold-brvvbylhfpwivregerjihjkesuzb/Build/Products/Debug-iphoneos/include -I/Users/carl/Library/Developer/Xcode/DerivedData/ProteinFold-brvvbylhfpwivregerjihjkesuzb/Build/Intermediates/ProteinFold.build/Debug-iphoneos/ProteinFold.build/DerivedSources/armv7 -I/Users/carl/Library/Developer/Xcode/DerivedData/ProteinFold-brvvbylhfpwivregerjihjkesuzb/Build/Intermediates/ProteinFold.build/Debug-iphoneos/ProteinFold.build/DerivedSources -F/Users/carl/Library/Developer/Xcode/DerivedData/ProteinFold-brvvbylhfpwivregerjihjkesuzb/Build/Products/Debug-iphoneos -F/Users/carl/Projects/ProteinFoldBT_07Dec2016 -MD -MT dependencies -MF /Users/carl/Library/Developer/Xcode/DerivedData/ProteinFold-brvvbylhfpwivregerjihjkesuzb/Build/Intermediates/PrecompiledHeaders/ProteinFold-Prefix-bqdgxektxyelmfbeovbfvbqalove/ProteinFold-Prefix.pch.d -c /Users/carl/Projects/ProteinFoldBT_07Dec2016/ProteinFold-Prefix.
pch -o /Users/carl/Library/Developer/Xcode/DerivedData/ProteinFold-brvvbylhfpwivregerjihjkesuzb/Build/Intermediates/PrecompiledHeaders/ProteinFold-Prefix-bqdgxektxyelmfbeovbfvbqalove/ProteinFold-Prefix.pch.pch
While building module 'Darwin' imported from /Users/carl/Projects/ProteinFoldBT_07Dec2016/ProteinFold-Prefix.pch:1:
In file included from <module-includes>:195:
/Applications/Xcode7.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/MacTypes.h:124:20: error: expected ';' after top level declarator
unsigned inttypedef signed long SInt32;
^
/Applications/Xcode7.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/MacTypes.h:142:3: error: unknown type name 'UInt32'
UInt32 lo;
^
. . . etc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden