Giter Site home page Giter Site logo

lausbert / snaptake Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 1.0 515 KB

Using Fastlane Snapshot to automate creating of appstore preview videos

Home Page: https://twitter.com/Lausbert3000

Swift 41.41% Ruby 46.50% HTML 12.09%
video fastlane record-video edit-videos fastlane-snapshot ios xcode uitesting automation appstore

snaptake's Issues

Recording fails with "We could not allocate necessary AV objects to perform the recording"

I tried to use snaptake to record a video of my app. Generating the recordingFlag.txt works, but starting to record the video does not.

The error is the following when running IO.popen("xcrun simctl io booted recordVideo '#{path}'") inside the Listen.to-block:

Couldn't create an asset writer for writing video frames: allocationErrorError starting video recorder: Error Domain=simctl.SimulatorError Code=2 "We could not allocate necessary AV objects to perform the recording.".
An error was encountered processing the command (domain=simctl.SimulatorError, code=2):
We could not allocate necessary AV objects to perform the recording.

If I remove Listen.to and just manually start recording the same way within fastlane it works. Is that a permission problem because of different processes? Did you ever stumbled across this?

I found this when researching the problem: https://developer.apple.com/forums/thread/131926 and https://twitter.com/thesunshinejr/status/1245730408282677255 but it seams no one was able to fix that.

Here is the full output:

[21:06:06]: ▸ UISnapshots
/Users/ChaosCoder/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/fastlane-2.168.0/credentials_manager/lib/credentials_manager/appfile_config.rb:34: warning: conflicting chdir during another chdir block
/Users/ChaosCoder/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/fastlane-2.168.0/credentials_manager/lib/credentials_manager/appfile_config.rb:34: warning: conflicting chdir during another chdir block
[21:06:15]: Recording video now in screenshots/de-DE/iPhone 12 Pro-Preview.mp4
/Users/ChaosCoder/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/fastlane-2.168.0/credentials_manager/lib/credentials_manager/appfile_config.rb:34: warning: conflicting chdir during another chdir block
/Users/ChaosCoder/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/fastlane-2.168.0/credentials_manager/lib/credentials_manager/appfile_config.rb:34: warning: conflicting chdir during another chdir block
Couldn't create an asset writer for writing video frames: allocationErrorError starting video recorder: Error Domain=simctl.SimulatorError Code=2 "We could not allocate necessary AV objects to perform the recording.".
An error was encountered processing the command (domain=simctl.SimulatorError, code=2):
We could not allocate necessary AV objects to perform the recording.
[21:06:21]: ▸     ✓ testPreview (15.640 seconds)
/Users/ChaosCoder/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/fastlane-2.168.0/credentials_manager/lib/credentials_manager/appfile_config.rb:34: warning: conflicting chdir during another chdir block
[21:06:21]: ▸ 	 Executed 1 test, with 0 failures (0 unexpected) in 15.640 (15.643) seconds
[21:06:21]: ▸ 
/Users/ChaosCoder/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/fastlane-2.168.0/credentials_manager/lib/credentials_manager/appfile_config.rb:34: warning: conflicting chdir during another chdir block
[21:06:21]: Video recorded in screenshots/de-DE/iPhone 12 Pro-Preview.mp4
/Users/ChaosCoder/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/fastlane-2.168.0/credentials_manager/lib/credentials_manager/appfile_config.rb:34: warning: conflicting chdir during another chdir block
/Users/ChaosCoder/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/fastlane-2.168.0/credentials_manager/lib/credentials_manager/appfile_config.rb:34: warning: conflicting chdir during another chdir block
[21:06:22]: ▸ 2020-11-28 21:06:22.147 xcodebuild[14107:10155506] [MT] IDETestOperationsObserverDebug: 21.744 elapsed -- Testing started completed.
[21:06:22]: ▸ 2020-11-28 21:06:22.148 xcodebuild[14107:10155506] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
[21:06:22]: ▸ 2020-11-28 21:06:22.148 xcodebuild[14107:10155506] [MT] IDETestOperationsObserverDebug: 21.744 sec, +21.744 sec -- end
[21:06:23]: ▸ Test Succeeded

(I get a lot of chdir-warnings, but these are not the problem, I think.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.