AlexDenisov / Cedar-installer

Useless from Aug 2012!!! Bash installation script for Cedar: BDD-style testing using Objective-C.
2 stars 1 forks source link

Error when installing (Mountain Lion) #2

Open pwightman opened 11 years ago

pwightman commented 11 years ago

I get this error when installing:

/opt/cedar/OCHamcrest/Source/Core/Core/HCIsSame.mm:48:75: error: format specifies type 'unsigned int' but the argument has type 'id' [-Werror,-Wformat]
    [[mismatchDescription appendText:[NSString stringWithFormat:@"was 0x%0x ", item]]
                                                                        ~~^    ~~~~
/opt/cedar/OCHamcrest/Source/Core/Core/HCIsSame.mm:55:80: error: format specifies type 'unsigned int' but the argument has type 'id' [-Werror,-Wformat]
    [[description appendText:[NSString stringWithFormat:@"same instance as 0x%0x ", object]]
                                                                             ~~^    ~~~~~~
2 errors generated.

Possible reasons I can think of:

Looking into it.

pwightman commented 11 years ago

So I created my own branch and fixed the format specifiers (there ended up being even more than just the one above) but after compilation, I get this error:

Libtool build/Release-iphonesimulator/libOCHamcrest-StaticLib.a normal i386
    cd /opt/cedar/OCHamcrest/Source
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/parkerwightman/.rvm/gems/ruby-1.9.3-p194/bin:/Users/parkerwightman/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/parkerwightman/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/parkerwightman/.rvm/bin:/Users/parkerwightman/.rvm/gems/ruby-1.9.2-p290/bin:/Users/parkerwightman/.rvm/gems/ruby-1.9.2-p290@global/bin:/Users/parkerwightman/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/parkerwightman/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/libexec:/Users/parkerwightman/.rvm/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only i386 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/opt/cedar/OCHamcrest/Source/build/Release-iphonesimulator -filelist /opt/cedar/OCHamcrest/Source/build/OCHamcrest.build/Release-iphonesimulator/OCHamcrest-StaticLib.build/Objects-normal/i386/OCHamcrest-StaticLib.LinkFileList -o /opt/cedar/OCHamcrest/Source/build/Release-iphonesimulator/libOCHamcrest-StaticLib.a

=== BUILD NATIVE TARGET UnitTests OF PROJECT OCHamcrest WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
error: There is no SDK with the name or path '/opt/cedar/OCHamcrest/Source/macosx10.6'

I can attempt to keep upgrading it to Mountain Lion, but I'm also wondering if there might be a better way :-) I'll give it another look when I get off work.

pwightman commented 11 years ago

@AlexDenisov Did this work against Lion, btw? Or have you been running Snow Leopard?

AlexDenisov commented 11 years ago

I have the same issue with Snow Leopard, because from now Cedar implement own installation system. Check steps from Cedar repo. After cedar installed (builded) you just need to link it with unit tests target. I think that this repo is have no sense as a whole.

pwightman commented 11 years ago

So I tried using the installation instructions in the Cedar repo, and while it installs fine, the iActiveRecord project is tied tightly to your cedar-installer, with all the framework paths for example: http://d.pr/i/1IxP/41JkC5ro

I can attempt a fix but I'm not very familiar with Cedar or the other testing libraries being used. Perhaps using CocoaPods or similar might simplify this a bit? Let me know your thoughts.

AlexDenisov commented 11 years ago

I'll fix this soon, I'd want replace Expecta matchers with 'native' Cedar matchers, so it should works fine without other then Cedar dependencies.