lausbert / snaptake Goto Github PK
View Code? Open in Web Editor NEWUsing Fastlane Snapshot to automate creating of appstore preview videos
Home Page: https://twitter.com/Lausbert3000
Using Fastlane Snapshot to automate creating of appstore preview videos
Home Page: https://twitter.com/Lausbert3000
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.)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.