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.

Code:
CompileC /Users/Shared/bittondb/Products/Builds/OmniFileStore.build/Release-iphoneos/OmniFileStoreTouch.build/Objects-normal/armv7/OFSDocumentStoreFileItem.o OFSDocumentStoreFileItem.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    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/OmniFileStore.build/Release-iphoneos/OmniFileStoreTouch.build/OmniFileStore.hmap -I/Users/Shared/bittondb/Products/Release-iphoneos/include -I/Users/Shared/bittondb/Products/Builds/OmniFileStore.build/DerivedSources -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/OmniFileStore.build/Release-iphoneos/OmniFileStoreTouch.build/DerivedSources/armv7 -I/Users/Shared/bittondb/Products/Builds/OmniFileStore.build/Release-iphoneos/OmniFileStoreTouch.build/DerivedSources -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/OmniFileStore.build/Release-iphoneos/OmniFileStoreTouch.build/Objects-normal/armv7/OFSDocumentStoreFileItem.d -c /Users/bittondb/src/OmniGroup/Frameworks/OmniFileStore/OFSDocumentStoreFileItem.m -o /Users/Shared/bittondb/Products/Builds/OmniFileStore.build/Release-iphoneos/OmniFileStoreTouch.build/Objects-normal/armv7/OFSDocumentStoreFileItem.o
/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.


** BUILD FAILED **


The following build commands failed:
	CompileC /Users/Shared/bittondb/Products/Builds/OmniFileStore.build/Release-iphoneos/OmniFileStoreTouch.build/Objects-normal/armv7/OFSDocumentStore.o OFSDocumentStore.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
	CompileC /Users/Shared/bittondb/Products/Builds/OmniFileStore.build/Release-iphoneos/OmniFileStoreTouch.build/Objects-normal/armv7/OFSDocumentStoreFileItem.o OFSDocumentStoreFileItem.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
Build failed in  (OmniGroup/Frameworks/OmniFileStore(OmniFileStoreTouch))
[~/src/OmniGroup]$
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:

Code:
% xcode-select -print-path
/Applications/Xcode.app/Contents/Developer
(which may differ based on where you installed Xcode 4.3).

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

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

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

Code:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
and received this

Code:
** BUILD SUCCEEDED **
Thanks!
 
 


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 05:10 PM.


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