小编Jan*_*TAC的帖子

Xcode apple开发人员证书到期日期:(0xE8008018)

仅供记录:当我尝试在我的设备上运行我的应用时,我收到了来自Xcode的陌生人回复.

请确认您的设备时钟已正确设置,并且您的签名证书未过期.(0xE8008018).

我的证书今天午夜到期,我的几个配置文件需要认真清理.

为了让构建和运行工作,更新所有内容的管理过程是什么?

xcode certificate provisioning

14
推荐指数
3
解决办法
3万
查看次数

node.js中的Haste模块映射是什么?

我发布时:

react-native bundle --entry-file='index.js' --bundle-output='./ios/MyProject/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'
Run Code Online (Sandbox Code Playgroud)

我有一个错误,说:

Unable to resolve module `util` from `/Users/canatac/RNProjects/<MyProject>/node_modules/<A_Module>/lib/Bot.js`: Module `<A_Module>` does not exist in the Haste module map.
Run Code Online (Sandbox Code Playgroud)

但什么是加速模块图?

javascript node.js react-native

11
推荐指数
1
解决办法
5449
查看次数

xcode NSInvalidUnarchiveOperationException,当尝试unarchive文件时

这是xcode的错误抛出:

由于未捕获的异常'NSInvalidUnarchiveOperationException'而终止应用程序,原因:'*** - [NSKeyedUnarchiver decodeInt64ForKey:]:键的值(评级)不是整数'

这是创建Meal对象的类的一部分:

// MARK:属性

var rating: Int
var name: String
var photo: UIImage?
Run Code Online (Sandbox Code Playgroud)

// MARK:Path

static let DocumentDirectory = NSFileManager().URLsForDirectory(.DocumentDirectory, inDomains:.UserDomainMask).first!

static let ArchivelUrl = DocumentDirectory.URLByAppendingPathComponent("meals")
Run Code Online (Sandbox Code Playgroud)

// MARK:NSCoding

func encodeWithCoder(aCoder: NSCoder) {
    aCoder.encodeObject(name, forKey: propertyKey.nameKey)
    aCoder.encodeObject(photo, forKey: propertyKey.photoKey)
    aCoder.encodeInteger(rating, forKey: propertyKey.ratingKey)

}
required convenience init?(coder aDecoder: NSCoder) {
    let name = aDecoder.decodeObjectForKey(propertyKey.nameKey) as! String
    let photo = aDecoder.decodeObjectForKey(propertyKey.photoKey) as? UIImage
    let rating = aDecoder.decodeIntegerForKey(propertyKey.ratingKey)
    //must call to designate initiallizer 
    self.init(name: name,photo: photo,rating: rating)
}
Run Code Online (Sandbox Code Playgroud)

这是归档者和unarchiver:

// …

xcode ios

3
推荐指数
2
解决办法
3790
查看次数

使用swift循环遍历NSDictionary

我不明白为什么这篇Objective-C代码:

id object = nil;
NSEnumerator *enumerator = ...;
while ((object = [enumerator nextObject])) {...}
Run Code Online (Sandbox Code Playgroud)

不能像这样在Swift中翻译:

var key:AnyObject!
let enumerator:NSEnumerator = myNSDictionary.keyEnumerator()    
while ( (object = enumerator.nextObject()) ) {...}
Run Code Online (Sandbox Code Playgroud)

我有这个错误:

类型'()'不符合协议'BooleanType'

objective-c ios swift

2
推荐指数
2
解决办法
5096
查看次数