I'm working on a new build travis which integrates e2e tests on iOS but I'm having problems installing fbsimctl. I want to use detox, and this is one of the prerequisites to use it.
This is the log when trying to install it:
$ brew install fbsimctl --HEAD
==> Installing fbsimctl from facebook/fb
==> Installing dependencies for facebook/fb/fbsimctl: carthage
==> Installing facebook/fb/fbsimctl dependency: carthage
==> Downloading https://homebrew.bintray.com/bottles/carthage-0.26.2.sierra.bottle.tar.gz
==> Pouring carthage-0.26.2.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/carthage/0.26.2: 75 files, 25.9MB
==> Installing facebook/fb/fbsimctl --HEAD
==> Cloning https://github.com/facebook/FBSimulatorControl.git
Cloning into '/Users/travis/Library/Caches/Homebrew/fbsimctl--git'...
remote: Counting objects: 1136, done.
remote: Compressing objects: 100% (993/993), done.
remote: Total 1136 (delta 278), reused 372 (delta 123), pack-reused 0
Receiving objects: 100% (1136/1136), 1.19 MiB | 794.00 KiB/s, done.
Resolving deltas: 100% (278/278), done.
Checking out files: 100% (1004/1004), done.
==> Checking out branch master
==> ./build.sh fbsimctl build /usr/local/Cellar/fbsimctl/HEAD-e6f8e6b
Last 15 lines from /Users/travis/Library/Logs/Homebrew/fbsimctl/01.build.sh:
dispatch_source_set_timer(dispatchSource, dispatch_time(DISPATCH_TIME_NOW, timeInterval), timeInterval, 0);
~~~~~~~~~~~~~ ^~~~~~~~~~~~
1 error generated.
CompileC build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/Objects-normal/x86_64/FBTaskConfiguration.o FBControlCore/Tasks/FBTaskConfiguration.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /tmp/fbsimctl-20171128-6651-1lg5ws
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/tmp/fbsimctl-20171128-6651-1lg5ws/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/tmp/fbsimctl-20171128-6651-1lg5ws/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Xclang -fmodule-implementation-of -Xclang FBControlCore -Wno-trigraphs -fpascal-strings -O0 -fno-common -Werror -Werror=incompatible-pointer-types -Werror-implicit-function-declaration -Wmissing-field-initializers -Wmissing-prototypes -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wunknown-pragmas -Wshadow -Wfour-char-constants -Wconversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.10 -g -Wsign-conversion -Winfinite-recursion -iquote /tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/FBControlCore-generated-files.hmap -I/tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/FBControlCore-own-target-headers.hmap -I/tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/FBControlCore-all-non-framework-target-headers.hmap -ivfsoverlay /tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/all-product-headers.yaml -iquote /tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/FBControlCore-project-headers.hmap -I/tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Products/Debug/include -I/tmp/fbsimctl-20171128-6651-1lg5ws/PrivateHeaders -I/tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/DerivedSources/x86_64 -I/tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/DerivedSources -F/tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Products/Debug -F/Applications/Xcode.app/Contents/Developer/../Frameworks -F/Applications/Xcode.app/Contents/Developer/../PlugIns -F/Applications/Xcode.app/Contents/Developer/../OtherFrameworks -F/Applications/Xcode.app/Contents/Developer/../SharedFrameworks -F/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/PrivateFrameworks -F/Library/Developer/PrivateFrameworks -MMD -MT dependencies -MF /tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/Objects-normal/x86_64/FBTaskConfiguration.d --serialize-diagnostics /tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/Objects-normal/x86_64/FBTaskConfiguration.dia -c /tmp/fbsimctl-20171128-6651-1lg5ws/FBControlCore/Tasks/FBTaskConfiguration.m -o /tmp/fbsimctl-20171128-6651-1lg5ws/build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/Objects-normal/x86_64/FBTaskConfiguration.o
** BUILD FAILED **
The following build commands failed:
CompileC build/Build/Intermediates/FBSimulatorControl.build/Debug/FBControlCore.build/Objects-normal/x86_64/FBDispatchSourceNotifier.o FBControlCore/Utility/FBDispatchSourceNotifier.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/facebook/homebrew-fb/issues
The command "brew install fbsimctl --HEAD" failed and exited with 1 during .
The cache permissions I've granted are these:
cache:
yarn: true
directories:
- node_modules
- $HOME/Library/Caches/Homebrew
- $HOME/Library/Caches
- $HOME/Library/Caches/carthage
- /usr/local/Cellar/fbsimctl
- /usr/local/Cellar
But I don't know what else do I need.
Thanks
Fbsimctl is no longer a dependency of Detox since we had lots of trouble with it, mainly because it is not always stable and there's no way of getting a stable version.
If you have issues with Fbsimctl, open an issue in fbsimctl's GitHub page.
Unrelated to Detox, if you still want to install Fbsimctl, you can install the latest stable version 0.4.0 (Apr 2017) by brew install fbsimctl#0.4.0
Related
Summary
When the build server downloads the project and tires to call carthage bootstrap/update on the project it fails to build Nimble.
Details
I'll manually download the source and run the following
carthage bootstrap Quick Nimble --platform ios --cache-builds
# or
carthage update Quick Nimble --platform ios --cache-builds
Should this occur in the ~/Projects directory all is fine and Carthage is happy.
Should I allow Xcode Bots to download and run it, it fails. So I log into the server and build out of the build directory Xcode Bots has created, which is
~/Library/Caches/XCSBuilder/Bots/8e543991f99daae3015cbc6c419dba56/Source/myProject and I get the following in the log
/***someUserDirectory***/Library/Caches/XCSBuilder/Bots/8e543991f99daae3015cbc6c419dba56/Source/airlib/Carthage/Checkouts/Nimble/Sources/NimbleObjectiveC/NMBStringify.m:6:9: fatal error: 'Nimble/Nimble-Swift.h' file not found
#import <Nimble/Nimble-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Here's the compileC command
CompileC /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Objects-normal/x86_64/NMBStringify.o /***someUserDirectory***/Library/Caches/XCSBuilder/Bots/8e543991f99daae3015cbc6c419dba56/Source/airlib/Carthage/Checkouts/Nimble/Sources/NimbleObjectiveC/NMBStringify.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target: Nimble-iOS)
cd /***someUserDirectory***/Library/Caches/XCSBuilder/Bots/8e543991f99daae3015cbc6c419dba56/Source/airlib/Carthage/Checkouts/Nimble
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/ModuleCache.noindex -fno-autolink -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fmodule-name=Nimble -fapplication-extension -Wno-trigraphs -fpascal-strings -Os -fno-common -Werror -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPRODUCT_NAME=Nimble/Nimble -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Nimble-generated-files.hmap -I/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Nimble-own-target-headers.hmap -I/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Nimble-all-non-framework-target-headers.hmap -ivfsoverlay /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/all-product-headers.yaml -iquote /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Nimble-project-headers.hmap -I/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Products/Release-iphonesimulator/include -I/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/DerivedSources-normal/x86_64 -I/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/DerivedSources/x86_64 -I/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/DerivedSources -F/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Products/Release-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -MMD -MT dependencies -MF /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Objects-normal/x86_64/NMBStringify.d --serialize-diagnostics /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Objects-normal/x86_64/NMBStringify.dia -c /***someUserDirectory***/Library/Caches/XCSBuilder/Bots/8e543991f99daae3015cbc6c419dba56/Source/airlib/Carthage/Checkouts/Nimble/Sources/NimbleObjectiveC/NMBStringify.m -o /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Objects-normal/x86_64/NMBStringify.o
It also gives a similar error for the i386 version of the file. Just change all the x86_64 to i386. So there are two errors for NMBStringify file.
When I run Carthage boostrap/update in the normal projects directory, ~/Projects/myproject/ the build is fine and it prints the following for the same file
CompileC /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Objects-normal/x86_64/NMBStringify.o /***someUserDirectory***/Projects/airlib/Carthage/Checkouts/Nimble/Sources/NimbleObjectiveC/NMBStringify.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target: Nimble-iOS)
cd /***someUserDirectory***/Projects/airlib/Carthage/Checkouts/Nimble
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/ModuleCache.noindex -fno-autolink -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fmodule-name=Nimble -fapplication-extension -Wno-trigraphs -fpascal-strings -Os -fno-common -Werror -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPRODUCT_NAME=Nimble/Nimble -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Nimble-generated-files.hmap -I/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Nimble-own-target-headers.hmap -I/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Nimble-all-non-framework-target-headers.hmap -ivfsoverlay /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/all-product-headers.yaml -iquote /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Nimble-project-headers.hmap -I/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Products/Release-iphonesimulator/include -I/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/DerivedSources-normal/x86_64 -I/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/DerivedSources/x86_64 -I/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/DerivedSources -F/***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Products/Release-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -MMD -MT dependencies -MF /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Objects-normal/x86_64/NMBStringify.d --serialize-diagnostics /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Objects-normal/x86_64/NMBStringify.dia -c /***someUserDirectory***/Projects/airlib/Carthage/Checkouts/Nimble/Sources/NimbleObjectiveC/NMBStringify.m -o /***someUserDirectory***/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2/Build/Intermediates.noindex/Nimble.build/Release-iphonesimulator/Nimble-iOS.build/Objects-normal/x86_64/NMBStringify.o
Virtually the same but with slightly different pathing. For some reason it can't find the header files required for the Obj-c files in Nimble to build.
For the life of me I don't know why Xcode can't find the header file in one directory yet it can't in another. I have taken the project out of the
More Info
When Carthage fails
The following log output is from a script that deletes the old Carthage directory, this should be removed since we don't upload the Carthage files anymore, and then calls
carthage bootstrap --no-build
carthage bootstrap Quick Nimble --platform ios --cache-builds
this is what the log says
Git prune
Delete Old Carthage Directory
rm: Carthage: No such file or directory
Carthage Bootstrap
*** Checking out MBProgressHUD at "1.1.1"
*** Checking out XCGLogger at "7.0.0"
*** Cloning MBProgressHUD
*** Checking out CocoaAsyncSocket at "7.6.3"
*** Checking out Nimble at "v8.0.2"
*** Checking out Quick at "v2.1.0"
*** Checking out BlueSocket at "1.0.46"
*** Checking out Quick at "v2.1.0"
*** Checking out Nimble at "v8.0.2"
*** No cache found for Nimble, building with all downstream dependencies
*** No cache found for Quick, building with all downstream dependencies
*** xcodebuild output can be found in /var/folders/rc/28t61gwn3c1bcsn1b360d0h40000gq/T/carthage-xcodebuild.HH0nlH.log
*** Building scheme "Nimble-iOS" in Nimble.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/XcodeServer/Library/Caches/XCSBuilder/Bots/8e543991f99daae3015cbc6c419dba56/Source/airlib/Carthage/Checkouts/Nimble/Nimble.xcodeproj -scheme Nimble-iOS -configuration Release -derivedDataPath /Users/XcodeServer/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2_10E125/Nimble/v8.0.2 -sdk iphonesimulator -destination platform=iOS\ Simulator,id=5A944081-C045-401A-889E-72B41BB3C8CA -destination-timeout 3 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES build (launched in /Users/XcodeServer/Library/Caches/XCSBuilder/Bots/8e543991f99daae3015cbc6c419dba56/Source/airlib/Carthage/Checkouts/Nimble)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/rc/28t61gwn3c1bcsn1b360d0h40000gq/T/carthage-xcodebuild.HH0nlH.log
This is what happens when I manually do it
Git prune
Delete Old Carthage Directory
rm: Carthage: No such file or directory
Carthage Bootstrap
*** Checking out Quick at "v2.1.0"
*** Checking out SVProgressHUD at "2.2.5"
*** Checking out XCGLogger at "7.0.0"
*** Checking out Nimble at "v8.0.2"
*** Checking out BlueSocket at "1.0.46"
*** Checking out CocoaAsyncSocket at "7.6.3"
*** Checking out Nimble at "v8.0.2"
*** Checking out Quick at "v2.1.0"
*** No cache found for Nimble, building with all downstream dependencies
*** No cache found for Quick, building with all downstream dependencies
*** xcodebuild output can be found in /var/folders/rc/28t61gwn3c1bcsn1b360d0h40000gq/T/carthage-xcodebuild.GnvVo9.log
*** Building scheme "Nimble-iOS" in Nimble.xcodeproj
*** Building scheme "Quick-iOS" in Quick.xcworkspace
I upgraded to XCode 11 and now it builds correctly.
In case the Nimble team is listening, the issue seemed to only pop up when building for release.
I ran into this same issue with Nimble when trying to use Xcode11.2. What fixed it was deleting the Nimble folder from my Carthage/Checkouts folder. That got Carthage to checkout the files again, and from there it built just fine. I'm not sure why that worked, but I suspect folder/file permissions.
This just happened to me. I cleared the Carthage cache and it worked:
rm -rf ~/Library/Caches/org.carthage.CarthageKit
I'm trying to build and run llvm 3.8 together with the clang and clang-tools-extra.
The steps I followed are the ones on LLVM with the difference that I'm using this git mirror to check what I need.
So, shortly, I have:
LLVM 3.8
Clang 3.8 in llvm/tools
Clang-tools-extra 3.8 in llvm/tools
I can execute:
cmake -G Xcode ../llvm to generate the build files in my 'build' folder, but when I start building llvm with
xcodebuild the build fails because in /Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
"clang/Basic/Diagnostic.h"
"clang/Basic/SourceManager.h"
"clang/Tooling/Refactoring.h"
cannot be found
The building phase stops at
=== BUILD TARGET clangTidyCERTModule OF PROJECT LLVM WITH THE DEFAULT CONFIGURATION (Debug) ===
CompileC /Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/Objects-normal/x86_64/CERTTidyModule.o tools/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/carlodidomenico/Thesis/git/LLVM/llvm
export LANG=en_US.US-ASCII
/Applications/Xcode7.3/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=80 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wnon-virtual-dtor -Woverloaded-virtual -Wno-exit-time-destructors -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\" -DGTEST_HAS_RTTI=0 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -isysroot /Applications/Xcode7.3/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.11 -g -Wno-sign-conversion -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/Debug/lib/include -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert -I/Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/include -I/Users/carlodidomenico/Thesis/git/LLVM/llvm/include -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/DerivedSources/x86_64 -I/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/carlodidomenico/Thesis/git/LLVM/build_xcode/Debug/lib -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -std=c++11 -fno-exceptions -fno-rtti -MMD -MT dependencies -MF /Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/Objects-normal/x86_64/CERTTidyModule.d --serialize-diagnostics /Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/Objects-normal/x86_64/CERTTidyModule.dia -c /Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp -o /Users/carlodidomenico/Thesis/git/LLVM/build_xcode/tools/clang-tools-extra/clang-tidy/cert/LLVM.build/Debug/clangTidyCERTModule.build/Objects-normal/x86_64/CERTTidyModule.o
In file included from /Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp:10:
In file included from /Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert/../ClangTidy.h:13:
/Users/carlodidomenico/Thesis/git/LLVM/llvm/tools/clang-tools-extra/clang-tidy/cert/../ClangTidyDiagnosticConsumer.h:14:10: fatal error:
'clang/Basic/Diagnostic.h' file not found
#include "clang/Basic/Diagnostic.h"
Am I doing something wrong or what. It seems such a straightforward sequences of steps to be followed, but something is going wrong.
Initially I thought the problem was with just the "clang/Basic/Diagnostic.h" so I've opened the "LLVM.xcodeproj" with Xcode itself and noticed that "clang/Basic/SourceManager.h" file is not found and "clang/Tooling/Refactoring.h" too.
It seems like all the #include "clan/*" are giving problems
In order to use clang-tools-extra you'd also need to have clang sources. It seems that you prepared your combined source tree improperly. Please consider following the instructions at http://clang.llvm.org/get_started.html
I recently reinstalled my Mac OS X Maverick distro and setted up my development environment. I was trying to follow the following tutorial to learn more about cocoa pods
and I never could get the build to run successfully.
The tutorial is from this source: http://www.raywenderlich.com/64546/introduction-to-cocoapods-2
To resume, I've followed the next steps on terminal app:
1- run: sudo gem update --system (OK)
2- run: sudo gem install cocoapods (OK)
3- run: pod setup (OK - terminal returned this "Setting up CocoaPods master repo
Setup completed (read-only access)")
4- on the app path run: pod init (created Podfile)
5- run: open -a Xcode Podfile (modified iOS version OK and added pod 'AFNetworking', '2.2.1' between the "target 'Showtracker' do)
6- run: pod install (everything worked fine and the workspace and all files were created correctly)
After that I've opened the workspace file from finder and the workspace in Xcode showed exactly as it should with the 2 project files
When I've tried to build the app I've got the following error as the build result:
CompileC
/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.o
AFNetworking/AFNetworking/AFHTTPRequestOperation.m normal i386
objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/mtopp/Documents/Workspace/ShowTracker/Pods
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fmodules -fmodules-cache-path=/Users/mtopp/Library/Developer/Xcode/DerivedData/ModuleCache
-Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk
-fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=7.0 -iquote /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-generated-files.hmap -I/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-own-target-headers.hmap
-I/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-all-target-headers.hmap
-iquote /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-project-headers.hmap -I/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Products/Debug-iphonesimulator/include
-I/Users/mtopp/Documents/Workspace/ShowTracker/Pods/BuildHeaders -I/Users/mtopp/Documents/Workspace/ShowTracker/Pods/BuildHeaders/AFNetworking
-I/Users/mtopp/Documents/Workspace/ShowTracker/Pods/Headers -I/Users/mtopp/Documents/Workspace/ShowTracker/Pods/Headers/AFNetworking
-I/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/DerivedSources/i386
-I/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/DerivedSources
-F/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Products/Debug-iphonesimulator
-fobjc-arc -w -Xanalyzer -analyzer-disable-checker -include /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/PrecompiledHeaders/Pods-ShowTracker-AFNetworking-prefix-aypnknzjycfqnmhhpckrwqzjddtp/Pods-ShowTracker-AFNetworking-prefix.pch -MMD -MT dependencies -MF /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.d
--serialize-diagnostics /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.dia
-c /Users/mtopp/Documents/Workspace/ShowTracker/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.m
-o /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.o
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-cc1 -triple i386-apple-ios7.0.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name AFHTTPRequestOperation.m -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 236.3 -gdwarf-2 -coverage-file /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.o
-resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1
-dependency-file /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.d
-MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk
-iquote /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-generated-files.hmap -iquote /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-project-headers.hmap -include-pch /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/PrecompiledHeaders/Pods-ShowTracker-AFNetworking-prefix-aypnknzjycfqnmhhpckrwqzjddtp/Pods-ShowTracker-AFNetworking-prefix.pch.pch
-D DEBUG=1 -D COCOAPODS=1 -I /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-own-target-headers.hmap
-I /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Pods-ShowTracker-AFNetworking-all-target-headers.hmap
-I /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Products/Debug-iphonesimulator/include
-I /Users/mtopp/Documents/Workspace/ShowTracker/Pods/BuildHeaders -I /Users/mtopp/Documents/Workspace/ShowTracker/Pods/BuildHeaders/AFNetworking
-I /Users/mtopp/Documents/Workspace/ShowTracker/Pods/Headers -I /Users/mtopp/Documents/Workspace/ShowTracker/Pods/Headers/AFNetworking
-I /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/DerivedSources/i386
-I /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/DerivedSources
-F/Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Products/Debug-iphonesimulator
-O0 -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -w -std=gnu99 -fdebug-compilation-dir /Users/mtopp/Documents/Workspace/ShowTracker/Pods -ferror-limit 19
-fmacro-backtrace-limit 0 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks -fmodules -fmodules-cache-path=/Users/mtopp/Library/Developer/Xcode/DerivedData/ModuleCache
-fobjc-runtime=ios-7.0.0 -fencode-extended-block-signature -fobjc-arc -fobjc-exceptions -fexceptions -fpascal-strings -fdiagnostics-show-option -fdiagnostics-show-note-include-stack -fasm-blocks -vectorize-slp -serialize-diagnostic-file /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.dia
-o /Users/mtopp/Library/Developer/Xcode/DerivedData/ShowTracker-eidspshbmfufcxeoawmixoxklvzq/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ShowTracker-AFNetworking.build/Objects-normal/i386/AFHTTPRequestOperation.o
-x objective-c /Users/mtopp/Documents/Workspace/ShowTracker/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.m
parser at end of file
Code generation
Running pass 'Function Pass Manager' on module '/Users/mtopp/Documents/Workspace/ShowTracker/Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.m'.
Running pass 'X86 DAG->DAG Instruction Selection' on function '#"\01-[AFHTTPRequestOperation responseObject]"' clang: error: unable
to execute command: Segmentation fault: 11 clang: error: clang
frontend command failed due to signal (use -v to see invocation) Apple
LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target:
i386-apple-darwin13.0.0 Thread model: posix clang: note: diagnostic
msg: PLEASE submit a bug report to
http://developer.apple.com/bugreporter/ and include the crash
backtrace, preprocessed source, and associated run script. clang:
note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed
source(s) and associated run script(s) are located at: clang: note:
diagnostic msg:
/var/folders/z3/wmz14g7527l40snggf1b5qb40000gn/T/AFHTTPRequestOperation-4de2a1.m
clang: note: diagnostic msg:
/var/folders/z3/wmz14g7527l40snggf1b5qb40000gn/T/AFHTTPRequestOperation-4de2a1.sh
clang: note: diagnostic msg:
**************** Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
failed with exit code 254
I can't find the solution and the error is so general that I've read a lot of different problems.
I will appreciate any help or guidance you can provide
Im Trying to build/run a iOS app on the iPhone 6.1 Simulator, however im getting this error.
Ive looked around and tried evertything ive found but nothing has helped.
This will build on other computers, but not this one.
Im completley new to iOS development so I dont know where to start.
Any help is apreciated, here is the error message:
CompileC /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o CorsageCreations/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations"
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.0 -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-generated-files.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-own-target-headers.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-all-target-headers.hmap -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-project-headers.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator/include -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources/i386 -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources -F/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator "-F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../../../../../../Desktop/FbShare" "-F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../.." -F/Users/GuestUser/Desktop -include /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/PrecompiledHeaders/CorsageCreations-Prefix-fjwwmvkmbxepoldfyuusggxlzkzu/CorsageCreations-Prefix.pch -MMD -MT dependencies -MF /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.d --serialize-diagnostics /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.dia -c "/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/AppDelegate.m" -o /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o
0 clang 0x0000000100c57bb2 main + 12932498
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -triple i386-apple-ios5.0.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name AppDelegate.m -pic-level 2 -mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 136 -g -coverage-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/4.2 -dependency-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.d -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-generated-files.hmap -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-project-headers.hmap -include-pch /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/PrecompiledHeaders/CorsageCreations-Prefix-fjwwmvkmbxepoldfyuusggxlzkzu/CorsageCreations-Prefix.pch.pth -D DEBUG=1 -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-own-target-headers.hmap -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-all-target-headers.hmap -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator/include -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources/i386 -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources -F/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../../../../../../Desktop/FbShare -F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../.. -F/Users/GuestUser/Desktop -fmodule-cache-path /var/folders/_z/1x7mbrnx6f310pngnn97l5_00000gn/T/clang-module-cache -O0 -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -std=gnu99 -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=ios-5.0.0 -fobjc-default-synthesize-properties -fobjc-exceptions -fexceptions -fpascal-strings -fdiagnostics-show-option -fasm-blocks -serialize-diagnostic-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.dia -o /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o -x objective-c /Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/AppDelegate.m
1. /Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/ArrayObject.h:46:33: current parser token ':'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: i386-apple-darwin12.3.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254
I've experienced the same issue. It turned out that the host's folders shared by VMWare were read-only (even though that the read-only attribute from VM settings was unchecked).
Have you tried running sample xcode projects or copying code you're referencing to the VM?
I ended up sharing my folders using regular file sharing built in Windows 8.
I got the same error. I was running my Example project keeping it in VMWare Shared Folder's sub folder. And that was the reason, which made the above issue.
I copied my example project which I wanted to compile and Run (or even build which gave the above error) and pasted it into the Mac OS X(Mavericks) Desktop which was running on the VMWare Workstation 9.0. Then tried running it and it worked!
Hope this answer would be helpful to someone else out there!
Good Luck!!!
You made clang (the compiler) segfault (Segmentation fault: 11). Nothing you can do about it (unless you want to patch clang), you could however investigate the issue by passing the -v option when compiling.
I'm not absolutely sure, but I would say it is because your are developing inside a virtual machine. As far as I know OS X is only supported as a guest OS in VMWare Fusion 5+, and even then it is rather unstable.
I had this same problem with OS X, not iOS, so it seems not platform dependent.
Specifically, the compiler did not create the .o file and did not report any syntax errors.
The problem was caused by a property with a void type:
#property(readonly) void reset;
Removing the property fixed the problem.
This creates a similar problem, and shows a possible cause. Try putting this into a .m file and compiling it:
typedef struct{
int workAroundAsStructCannotBeOtherwiseEmpty;
float points [];
} arrayOfFloats;
#property arrayOfFloats someArrayOfFloats;
Interestingly, won't compile without the "workaround" line. If you change it to float points [10] it compiles fine.
I am using Jenkins for continuous compliance and my iOS project is failing to run. My app builds and runs just fine interactively. RestKit is a git submodule in my project.
The job fails with this:
CompileC build/testApp.build/Release-iphoneos/testApp.build/Objects-normal/armv7/main.o testApp/main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DCONFIGURATION_Release -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -miphoneos-version-min=5.0 -iquote /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/testApp-generated-files.hmap -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/testApp-own-target-headers.hmap -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/testApp-all-target-headers.hmap -iquote /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/testApp-project-headers.hmap -iquote../GMGridView/GMGridView -iquote/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/Release-iphoneos/../../Headers "-iquote”/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/Release-iphoneos/usr/local/lib/include”" "-iquote”/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/UninstalledProducts/include”" -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/Release-iphoneos/include -I../GMGridView/GMGridView -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/Release-iphoneos/../../Headers -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/../UninstalledProducts/include "-I”/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/UninstalledProducts/include”" "-I”/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/Release-iphoneos/usr/local/lib/include”" -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/DerivedSources/armv7 -I/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/DerivedSources -F/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/Release-iphoneos -F/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/QuincyKit -DNS_BLOCK_ASSERTIONS=1 -include /var/folders/zn/81z3gcmj00xg6rn2mg7qzgvh0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/testApp-Prefix-glmuagpwjeknolcbkgvqhsdakvok/testApp-Prefix.pch -MMD -MT dependencies -MF /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/Objects-normal/armv7/main.d --serialize-diagnostics /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/Objects-normal/armv7/main.dia -c /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/testApp/main.m -o /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/build/testApp.build/Release-iphoneos/testApp.build/Objects-normal/armv7/main.o
In file included from /Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/testApp/main.m:11:
/Users/bob/.jenkins/jobs/appNameOut-iOS/workspace/testApp/testApp/AppDelegate.h:14:9: fatal error: 'RestKit/RestKit.h' file not found
#import <RestKit/RestKit.h>
^
1 error generated.
It turns out that the RestKit submodule was properly being pulled, and that RestKit was being built properly, but that the header include paths were not finding the RestKit files when building via the command line while it did work via the GUI. I edited the pbxproj file, adding the required header search paths whenever I found an input for such things.
Add a new build step, for a shell-command, before the xcode build step. stick this in it:
git submodule update --init --recursive
The idea is this: Assuming "runs just fine interactively" meant "It builds fine when I build it with Xcode on my machine, which has the project's git repository locally cloned"; it seems that your local git clone has the restkit git sub module checked out OK. Your Jenkins job doesn't. It is never updating the submodules after it git pull's. It needs to, in order to build the job in Jenkins.