Build ERROR: CouchbaseLite - iOS

121 views
Skip to first unread message

sweetiewill

unread,
Oct 1, 2014, 5:17:04 PM10/1/14
to mobile-c...@googlegroups.com
Hello,

This error also exist when building Couchbase To-Do-LITE example 

Build Error found:  (See Attachment)


clang: error: no such file or directory: '/Users/william/Development/Couchbase/iOS Development/ToDoLite-iOS/TodoLite7/TodoLite7-Prefix.pch'

clang: error: no input files

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1


In XCode:  6.0.1 

All submodules are downloaded for Couchbase-Lite


Any ideas?

Thanks,

William 

Screen Shot 2014-10-01 at 2.02.29 PM.png

sweetiewill

unread,
Oct 1, 2014, 5:19:19 PM10/1/14
to mobile-c...@googlegroups.com
CouchbaseLite Error:

clang: error: no such file or directory: '/Users/william/Development/Couchbase/iOS Development/couchbaseLite/couchbase-lite-ios/vendor/WebSockets-Cocoa/vendor/CocoaAsyncSocket/GCD/GCDAsyncSocket.m'

clang: error: no input files

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

To-DO Lite Error:

clang: error: no such file or directory: '/Users/william/Development/Couchbase/iOS Development/ToDoLite-iOS/TodoLite7/TodoLite7-Prefix.pch'

clang: error: no input files

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1



Jens Alfke

unread,
Oct 1, 2014, 5:30:55 PM10/1/14
to mobile-c...@googlegroups.com

On Oct 1, 2014, at 2:19 PM, sweetiewill <william....@gmail.com> wrote:

clang: error: no such file or directory: '/Users/william/Development/Couchbase/iOS Development/couchbaseLite/couchbase-lite-ios/vendor/WebSockets-Cocoa/vendor/CocoaAsyncSocket/GCD/GCDAsyncSocket.m'

Did you check whether this file exists or not?

Since that's a nested submodule, my guess is that you didn't give the "--recursive" flag when updating submodules. As the Building wiki page says, the command to use is
git submodule update --init --recursive

—Jens

sweetiewill

unread,
Oct 1, 2014, 5:38:10 PM10/1/14
to mobile-c...@googlegroups.com
@Jens:  That fixed the CouchbaseLite Error.  Thanks!

Any idea with the To-Do Lite ERROR?  

Thanks,
William

Jens Alfke

unread,
Oct 1, 2014, 5:40:41 PM10/1/14
to mobile-c...@googlegroups.com
On Oct 1, 2014, at 2:19 PM, sweetiewill <william....@gmail.com> wrote:

clang: error: no such file or directory: '/Users/william/Development/Couchbase/iOS Development/ToDoLite-iOS/TodoLite7/TodoLite7-Prefix.pch'

The prefix header isn't "TodoLite-Prefix.pch", it's "TodoLite-Prefix.pch" (which does exist.) I can build the app without errors.

Hm, in the unit test target the prefix is incorrectly set to "TodoLite7-Prefix.pch". Are you trying to build the unit tests? (As far as I know, there aren't any tests, so there's no reason to build them.)

—Jens

sweetiewill

unread,
Oct 1, 2014, 6:19:45 PM10/1/14
to mobile-c...@googlegroups.com
Hey Jens,

Thanks!! That fixed the issue.

I had defaulted settings of the "ToDoLiteTests" checked that was causing the issue (See Attachment) 

This will be also be an issue for external developers.  Any ideas why those settings were selected and why there is an ERROR ?

Thank you,
William
Screen Shot 2014-10-01 at 3.13.38 PM.png

Jens Alfke

unread,
Oct 1, 2014, 7:08:30 PM10/1/14
to mobile-c...@googlegroups.com
OK, I've checked in a fix to the unit-test build settings.

—Jens

sweetiewill

unread,
Oct 1, 2014, 9:15:30 PM10/1/14
to mobile-c...@googlegroups.com
Awesomeness - Thx for the fast response Jens!
Reply all
Reply to author
Forward
0 new messages