Coder Social home page Coder Social logo

ddgdatacache_swift's People

Contributors

dudongge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ddgdatacache_swift's Issues

cacheAllSize() 报错

环境:swift5 模拟器6s iOS9
操作:未经过存储,直接调用获取缓存大小 DDGDataCache.cacheAllSize()
错误日志:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSFileManager fileSystemRepresentationWithPath:]: nil or empty path argument'

创建缓存文件失败

环境swift5 + xcode13.1 + macos 11.6.1
代码

DDGDataCache.save_asyncJsonResponseToCacheFile(json.dictionaryObject as AnyObject, URL: url, path: path, subPath: subpath) { succ in
            if succ {
                print("day weather 保存成功")
            } else {
                print("day weather 保存失败")
            }
        }

报错
create cache directory failed, error = %@ Error Domain=NSCocoaErrorDomain Code=642 "You can’t save the file “dayWeather” because the volume “Macintosh HD - 数据” is read only." UserInfo={NSFilePath=/dayWeather, NSUnderlyingError=0x6000031eff60 {Error Domain=NSPOSIXErrorDomain Code=30 "Read-only file system"}}

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.