Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flick not working with iOS 10 Xcode 8 #10

Closed
philipsTanoto opened this issue Oct 31, 2016 · 17 comments
Closed

flick not working with iOS 10 Xcode 8 #10

philipsTanoto opened this issue Oct 31, 2016 · 17 comments
Labels

Comments

@philipsTanoto
Copy link

Not able to get any video using the command "flick video -a start -p ios -s 0.5 -c 6000" followed by "flick video -a stop -p ios -s 0.5 -c 6000" on Xcode 8, iOS 10.

No file was created, and "error: No such file or directory - (<temporary_file_path>, <current_working_directory>), User --trace to view backtrace." was observed.

same error message with --trace:
note: username, directory and UDID is removed from log for privacy.

/Library/Ruby/Gems/2.0.0/gems/flick-0.2.4/lib/flick/video.rb:142:in rename': No such file or directory - (/Users/<user_name>/.flick/<UDID>.mp4, /Users/<user_name>/<UDID>.mp4) (Errno::ENOENT) from /Library/Ruby/Gems/2.0.0/gems/flick-0.2.4/lib/flick/video.rb:142:in mp4'
from /Library/Ruby/Gems/2.0.0/gems/flick-0.2.4/lib/flick/video.rb:130:in stop_screenshot_recording' from /Library/Ruby/Gems/2.0.0/gems/flick-0.2.4/lib/flick/video.rb:51:in stop'
from /Library/Ruby/Gems/2.0.0/gems/flick-0.2.4/lib/flick/video.rb:25:in run' from /Library/Ruby/Gems/2.0.0/gems/flick-0.2.4/bin/flick:32:in block (2 levels) in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/command.rb:178:in call' from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/command.rb:178:in call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/command.rb:153:in run' from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/runner.rb:444:in run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/runner.rb:68:in run!' from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/delegates.rb:15:in run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/import.rb:5:in `block in <top (required)>'

@saikrishna321
Copy link

flick uses idevice library, you need to uninstall the library and install with HEAD, to get it working with ios10

@saikrishna321
Copy link

saikrishna321 commented Nov 1, 2016

brew uninstall ideviceinstaller
brew uninstall --ignore-dependencies libimobiledevice
brew install --HEAD libimobiledevice
brew unlink libimobiledevice && brew link libimobiledevice
brew install --HEAD ideviceinstaller
brew unlink ideviceinstaller && brew link ideviceinstaller

@isonic1
Copy link
Owner

isonic1 commented Nov 1, 2016

thank you @saikrishna321! @philipsTanoto please follow this instructions to reinstall ideviceinstaller and try again.

@isonic1
Copy link
Owner

isonic1 commented Nov 1, 2016

Im setting this to wontfix. If the steps @saikrishna321 didn't help then I will reopen.

@isonic1 isonic1 closed this as completed Nov 1, 2016
@philipsTanoto
Copy link
Author

It is working now, thanks @saikrishna321 @isonic1 !

@testableapple
Copy link

testableapple commented Sep 15, 2017

@isonic1, libmobiledevice working good with ios11,
but flick can't get device log:
UDID: <my_udid> - Is not paired with your machine! Run: idevicepair -u <udid> pair If not working still, see: https://github.com/isonic1/flick/issues/10

@isonic1
Copy link
Owner

isonic1 commented Sep 15, 2017

Hmm, you went through the steps to uninstall and reinstall the ideviceinstaller libraries? is it just logs that doesn't work or can you capture a screenshot on iOS with flick? If the latter, it could be an issue with ideviceinstaller needing updating for iOS 11.

@testableapple
Copy link

at first idevicesyslog not working with ios11
after reinstall/relink the ideviceinstaller libraries, idevicesyslog working good

but flick still get error
no, its not only log, screenshoting not working too.

@isonic1
Copy link
Owner

isonic1 commented Sep 15, 2017

Ah ok. Yeah, probably brew hasn't got the latest fix that was put in for the issue below. I don't have ios 11 installed yet. would you mind trying the command below to install the iOS 11 libimobiledevice libraries below?

libimobiledevice/libimobiledevice#510

brew install https://gist.github.com/Haraguroicha/0dee2ee29c7376999178c5392080c16e/raw/libimobiledevice.rb --HEAD --with-ios11

@testableapple
Copy link

testableapple commented Sep 15, 2017

its not helped me

if update libmobiledevice
brew install --HEAD libimobiledevice https://gist.github.com/Haraguroicha/0dee2ee29c7376999178c5392080c16e/raw/libimobiledevice.rb --HEAD --with-ios11_ ######################################################################## 100,0% Warning: libimobiledevice HEAD-5a85432_2 is already installed

if uninstall/install libmobiledevice
brew uninstall --ignore-dependencies libimobiledevice brew install https://gist.github.com/Haraguroicha/0dee2ee29c7376999178c5392080c16e/raw/libimobiledevice.rb --HEAD --with-ios11 ######################################################################## 100,0% ==> Cloning https://git.libimobiledevice.org/libimobiledevice.git Updating /Users/a.alterpesotskiy/Library/Caches/Homebrew/libimobiledevice--git ==> Checking out branch master ==> Downloading https://gist.githubusercontent.com/nikias/b351bf633d62703e0ff4f2 ######################################################################## 100,0% ==> Patching ==> Applying validate_pair_fix.diff patching file src/idevice.c Hunk #1 FAILED at 256. 1 out of 1 hunk FAILED -- saving rejects to file src/idevice.c.rej patching file src/idevice.h Hunk #1 FAILED at 76. 1 out of 1 hunk FAILED -- saving rejects to file src/idevice.h.rej patching file src/lockdown.c Hunk #1 succeeded at 720 with fuzz 2 (offset 13 lines). Hunk #2 FAILED at 749. 1 out of 2 hunks FAILED -- saving rejects to file src/lockdown.c.rej Error: Failure while executing: /usr/bin/patch -g 0 -f -p1 -i /private/tmp/libimobiledevice--patch-20170915-65205-11a9ia5/validate_pair_fix.diff

@isonic1
Copy link
Owner

isonic1 commented Sep 15, 2017

ah, bummer was hoping that would work. iOS 11 isn't officially released until next week. Im hoping brew will have the updated fix for it by then.

@testableapple
Copy link

sorry, but I don't understand
idevicesyslog and idevicescreenshot working good on iOS11,
why it's not working with flick? and what this is the brew fix?

@saikrishna321
Copy link

@alter-al what is the issue your facing ? wat does flick log say ?

@isonic1
Copy link
Owner

isonic1 commented Sep 17, 2017

Thanks @saikrishna321 . Yes, please run flick with --trace and copy paste the output in the terminal. Thanks.

@saikrishna321
Copy link

@alter-al i use flick and it works fine with iOS11 ...

@isonic1
Copy link
Owner

isonic1 commented Sep 20, 2017

@alter-al try now with the latest gem. Apparently, iOS 11 removed the ability to validate a paired device so tweaked that logic a bit.

Make sure you have latest Xcode and command line tools installed and the device is not locked. Also, make sure you can see the Developer menu options in the Settings.

@testableapple
Copy link

@isonic1, thank you! When updated flick to 0.4.2, all works awesome (even with XCode 8.3.3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants