Re: [Cedar] Unable to run Cedar spec suite from command line

46 views
Skip to first unread message

sco...@pivotallabs.com

unread,
Apr 22, 2013, 2:19:49 PM4/22/13
to cedar-...@googlegroups.com, cedar-...@googlegroups.com
Hi Ettore,

Have you set DYLD_ROOT_PATH and IPHONE_SIMULATOR_ROOT to a valid, installed SDK path?

--Sam

On Apr 19, 2013, at 12:11 PM, Ettore Pasquini <epas...@goodreads.com> wrote:

I'm new to Cedar so please forgive oversights on my part.

I have added a Cedar Spec suite to my app and that compiles and all test passes when run in the iOS simulator. I am also able to build it successfully from the command line with:

$ xcodebuild -project MyProject.xcodeproj -target MyProjectCedarSpec -configuration Debug -sdk iphonesimulator clean build 

(I have also tried -sdk iphonesimulator5.1 and -sdk iphonesimulator6.1 with no differences)

However I am not able to run the test suite:

$ /Users/ep/myproject/build/Debug-iphonesimulator/MyProjectCedarSpec.app/MyProjectCedarSpec -RegisterForSystemEvents
dyld: Library not loaded: /System/Library/Frameworks/UIKit.framework/UIKit
  Referenced from: /Users/ep/git/myproject/build/Debug-iphonesimulator/MyProjectCedarSpec.app/MyProjectCedarSpec
  Reason: image not found
Trace/BPT trap: 5

It seems like it's trying to link against UIKit from root and not from the current SDK location,  but I did double-check that I added UIKit as a framework "Relative to SDK."

I did look inside the Rakefile in the cedar home for insights already, particularly around the uispecs target...

Any other suggestions?

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Cedar Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cedar-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Alexey Belkevich

unread,
Apr 22, 2013, 8:13:44 AM4/22/13
to cedar-...@googlegroups.com
Try to run with iOS-sim (https://github.com/phonegap/ios-sim)
If you want to run spec on some kind of continuous integration server you can use this script:
Reply all
Reply to author
Forward
0 new messages