改问题一般都是依赖的库出了问题,下载失败。
操作步骤:进入用户根目录下,找到/Users/用户/.cocoapods/repos/master/Specs/
在该目录下找到对应的pod库文件,则直接修改为正式可用的就OK了!
[!] Error installing FileMD5Hash
[!] /usr/bin/git checkout -b activated-commit d00c0c51c6d0955d9daf94c30cfd95a219d4914e
fatal: reference is not a tree: d00c0c51c6d0955d9daf94c30cfd95a219d4914e
有该问题的直接替换就可以!
{
"name": "FileMD5Hash",
"version": "0.0.1",
"license": "Apache",
"summary": "Library for computing MD5 hashes of files with small memory usage.",
"homepage": "http://www.joel.lopes-da-silva.com/2010/09/07/compute-md5-or-sha-hash-of-large-file-efficiently-on-ios-and-mac-os-x/",
"authors": {
"Joel Lopes Da Silva": "joel@lopes-da-silva.com"
},
"source": {
"git": "https://github.com/JoeKun/FileMD5Hash.git",
"commit": "5e83f170798b538212269a0ab9671e37a315d10c"
},
"prefix_header_file": "Common/FileMD5Hash_Prefix.pch",
"source_files": "Common/*.{h,c}",
"requires_arc": false
}
// Extern
#if defined(__cplusplus)
#define FILEMD5HASH_EXTERN extern "C"
#else
#define FILEMD5HASH_EXTERN extern
#endif
FILEMD5HASH_EXTERN CFStringRef FileMD5HashCreateWithPath(CFStringRef filePath,
size_t chunkSizeForReadingData);