The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > Developer > Omni Frameworks
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Build Framework Fails From Command Line But Build in XCode Succeeds Thread Tools Search this Thread Display Modes
When I build from the command line, I eventually receive the following error and the build abends.

CompileC /Users/Shared/bittondb/Products/Builds/ OFSDocumentStoreFileItem.m normal armv7 objective-c
    cd /Users/bittondb/src/OmniGroup/Frameworks/OmniFileStore
    setenv LANG en_US.US-ASCII
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/bittondb/bin:/Developer/usr/bin:/opt/subversion/bin/"
    /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -std=gnu99 -Wno-trigraphs -fpascal-strings -O2 -Werror -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wuninitialized -Wunknown-pragmas -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wdeprecated-implementations -DAPP_STORE=1 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -gdwarf-2 -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -miphoneos-version-min=5.0 -I/Users/Shared/bittondb/Products/Builds/ -I/Users/Shared/bittondb/Products/Release-iphoneos/include -I/Users/Shared/bittondb/Products/Builds/ -I/Users/Shared/bittondb/Products/Release-iphoneos -I/Users/Shared/bittondb/Products/Release-iphoneos/OmniFileStore-Private -I/Users/Shared/bittondb/Products/Builds/UninstalledProducts/include -I/Users/Shared/bittondb/Products/Builds/ -I/Users/Shared/bittondb/Products/Builds/ -Wall "-Wno-#warnings" -Wno-trigraphs -Winit-self -Wall "-Wno-#warnings" -Wno-trigraphs -Winit-self -F/Users/Shared/bittondb/Products/Release-iphoneos -DNS_BUILD_32_LIKE_64 -DOMNI_BUILDING_FRAMEWORK -include /Users/Shared/bittondb/Products/Release-iphoneos/SharedPrecompiledHeaders/OmniFileStore_Prefix-fllfrlaoaurpdfbutuvbdjgcxgqg/OmniFileStore_Prefix.h -MMD -MT dependencies -MF /Users/Shared/bittondb/Products/Builds/ -c /Users/bittondb/src/OmniGroup/Frameworks/OmniFileStore/OFSDocumentStoreFileItem.m -o /Users/Shared/bittondb/Products/Builds/
/Users/bittondb/src/OmniGroup/Frameworks/OmniFileStore/OFSDocumentStoreFileItem.m:426:25:{426:25-426:91}: error: instance method '-_synchronized_processItemDidMoveFromURL:date:' not found (return type defaults to 'id') [-Werror,3]
                         [self _synchronized_processItemDidMoveFromURL:oldURL date:oldDate];
/Users/bittondb/src/OmniGroup/Frameworks/OmniFileStore/OFSDocumentStoreFileItem.m:482:13:{482:13-482:79}: error: instance method '-_synchronized_processItemDidMoveFromURL:date:' not found (return type defaults to 'id') [-Werror,3]
             [self _synchronized_processItemDidMoveFromURL:oldURL date:oldDate];
2 errors generated.


The following build commands failed:
	CompileC /Users/Shared/bittondb/Products/Builds/ OFSDocumentStore.m normal armv7 objective-c
	CompileC /Users/Shared/bittondb/Products/Builds/ OFSDocumentStoreFileItem.m normal armv7 objective-c
(2 failures)
Build failed in  (OmniGroup/Frameworks/OmniFileStore(OmniFileStoreTouch))
In xcode, I can do a Build (Debug and Release) and an Archive and that succeeds. Thanks!
Based on the error you are seeing, my guess would be that your command line build is using Xcode 4.2 or older tools while you are running Xcode 4.3 for the builds that work.

Xcode 4.3 bundles up the command line tools inside the app to make it a simpler install. But this makes command line builds harder. You can install the Xcode 4.3 command line tools either by the standalone dmg available on Apple's site or via the Xcode “Downloads” preference pane (in the “Components” segment).

Another possible fix might be to let the command line tools know which version of Xcode to use. In Terminal you should see something like the following:

% xcode-select -print-path
(which may differ based on where you installed Xcode 4.3).

If you don't see this, then you'll want to do:

sudo xcode-select -switch /Applications/
(which will automatically append the Contents/Developer components).

I hope this helps!
CTO, The Omni Group
Did this

sudo xcode-select -switch /Applications/
and received this


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line Build Fails For OmniFileStore at OFSDocumentStore.m davidbitton Omni Frameworks 3 2012-06-12 11:03 PM
Xcode 4 Customized Build Location jgarnham Omni Frameworks 4 2011-09-16 03:51 AM
Lion iOS 5 beta4 Xcode 4.2 build issues... SpiraMira Omni Frameworks 2 2011-08-29 02:31 AM
Changes in 1.7.4 SP, Build 9/24 Greg Jones OmniFocus 1 for Mac 7 2009-09-25 04:12 PM
B3: command-open fails on first attempt philonous OmniWeb Bug Reports 3 2006-08-24 03:39 PM

All times are GMT -8. The time now is 07:29 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.