OpenAdBlock icon indicating copy to clipboard operation
OpenAdBlock copied to clipboard

error

Open moh1122 opened this issue 10 years ago • 7 comments

Hello after running it im getting an error in this line assertionFailure("Could not copy DefaultList: (error)")

its line 37 in adblocker.swift anyclue thank you

moh1122 avatar Oct 14 '15 17:10 moh1122

This should print out the error in the console. Do you get any output?

saagarjha avatar Oct 15 '15 03:10 saagarjha

no output at all ?

moh1122 avatar Oct 15 '15 17:10 moh1122

I'm unable to reproduce this. Can you add a print(error) in the line above assertionFailure("Could not copy DefaultList: \(error)")? Also, what's your phone's model and iOS version?

saagarjha avatar Oct 15 '15 23:10 saagarjha

fatal error: Could not copy DefaultList: Error Domain=NSCocoaErrorDomain Code=260 "The file “DefaultList.json” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/Apple/Library/Developer/CoreSimulator/Devices/8FE486CE-29AB-4EAB-878A-37D9CA4587EF/data/Containers/Bundle/Application/91D2E079-986E-44F7-96ED-8D3BDF59A74E/OpenAdBlock.app/DefaultList.json, NSUnderlyingError=0x7fd350d88370 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}: file /Users/Apple/Downloads/OpenAdblock-master/OpenAdBlock/OpenAdBlock/AdBlocker.swift, line 60 (lldb)

moh1122 avatar Oct 16 '15 16:10 moh1122

i have iphone 6 with ios 9.0.1

moh1122 avatar Oct 16 '15 16:10 moh1122

Can you try installing OpenAdblock, and reinstalling? If that fails, you may have an old copy of OpenAdblock, try downloading a new one.

saagarjha avatar Oct 17 '15 00:10 saagarjha

ok i will b doing tht, does it work on the simulator

moh1122 avatar Oct 17 '15 15:10 moh1122