The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   Omni Frameworks (http://forums.omnigroup.com/forumdisplay.php?f=16)
-   -   Build Framework Fails From Command Line But Build in XCode Succeeds (http://forums.omnigroup.com/showthread.php?t=24066)

davidbitton 2012-04-30 09:30 PM

Build Framework Fails From Command Line But Build in XCode Succeeds
 
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]$[/CODE]

In xcode, I can do a Build (Debug and Release) and an Archive and that succeeds. Thanks!

Tim Wood 2012-05-01 09:23 AM

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
[/code]

(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
[/code]

(which will automatically append the Contents/Developer components).

I hope this helps!

davidbitton 2012-05-01 05:13 PM

Did this

[code]sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/[/code]

and received this

[code]** BUILD SUCCEEDED **[/code]

Thanks!


All times are GMT -8. The time now is 02:27 AM.

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