Open mwise opened 9 years ago
Thanks for uploading the example project, that helps with debugging. I couldn't get it to work either - looks like some of the internal RubyMotion/CocoaPods behavior this used changed with RubyMotion 3
I don't have more time to fix it unfortunately =\ there are probably other projects which do this (either for RubyMotion or generic CocoaPods - maybe https://github.com/terriblelabs/motion-juxtapose would work?), and I'd be happy to merge any PRs that fix it
I am trying to use
motion-screenshots
but can't seem to get it to work. When I runrake screenshots
, no screenshots are created and the app blows up when Ictrl-c
the terminal window running the simulator. As the setup seems dead simple, I'm a little confused as to what's wrong. I've included the shell output at the bottom of this (long) issue.I've created a simple repository illustrating the behavior: https://github.com/mwise/motion-screenshots-test
A few things I've noticed:
KSScreenshotManager
is failing on https://github.com/clayallsopp/motion-screenshots/blob/master/lib/motion/motion-screenshots.rb#L1 when I runrake screenshots
. So I think that explains the screenshots not being taken but also not blowing up. It seems like maybe the `pod 'KSScreenshotManager' at https://github.com/clayallsopp/motion-screenshots/blob/master/lib/motion-screenshots.rb#L39 isn't being respected or something.KSScreenshotManager
pod via my app's rakefile, I get one of those beloved RubyMotion 'not precompiled' errors at runtime (not on exit as described above):rake screenshots
blows up on exit, the nextrake
(notrake screenshots
) will blow up, complaining about architecture flags or something:So yeah, I'm not really sure what's going on. Have you noticed anything like the what I've described? It seems like there might be a few different issues at play, but I tried to craft the "Hello World" of motion-screenshot implementations. I'm running RubyMotion 3.6, Ruby 2.1.2 on OS X. I'd be happy to try to PR a fix or two if you can point me in the right direction.
Shell output from borked
rake screenshots
run: