境界0.92.1不会与迦太基建立

时间:2015-05-08 04:24:25

标签: ios realm

我开始了一个新的Swift项目,想要尝试Realm。现在我的cartfile只有这个:

Error Domain=NSCocoaErrorDomain Code=4 "The file “RLMRealm_Private.h” doesn’t exist." 
UserInfo=0x7fe9eac45e70 {NSSourceFilePathErrorKey=/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/carthage-archive.h1rPWy/Carthage/Build/iOS/Realm.framework/PrivateHeaders/RLMRealm_Private.h, NSUserStringVariant=(
Copy
), 
NSDestinationFilePath=/Users/username/Documents/Projects/projName/Carthage/Build/iOS/Realm.framework/PrivateHeaders/RLMRealm_Private.h,
NSFilePath=/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/carthage-archive.h1rPWy/Carthage/Build/iOS/Realm.framework/PrivateHeaders/RLMRealm_Private.h, 
NSUnderlyingError=0x7fe9eac46690 "The operation couldn’t be completed. No such file or directory"}

当我第一次运行carthage update时,我得到以下输出:

func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {
    var cell:UITableViewCell = self.tblSwift.dequeueReusableCellWithIdentifier("cell") as UITableViewCell

    cell.textLabel.text = self.items[indexPath.row]
    return cell
}

然后我再次运行carthage更新并获取此信息:

func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {

    var cell = tableView.dequeueReusableCellWithIdentifier("cell") as? UITableViewCell

    if cell == nil {
        cell = UITableViewCell(style: .Subtitle, reuseIdentifier: "cell")
    }
    cell!.textLabel.text = self.names[indexPath.row]
    cell!.detailTextLabel.text = self.emails[indexPath.row]
    return cell
}

似乎我第一次更新了缺失的Realm.Framework,但第二次它无法通过缺失的RLMRealm_Private.h

其他人见过这个吗?

0 个答案:

没有答案