仅供记录:当我尝试在我的设备上运行我的应用时,我收到了来自Xcode的陌生人回复.
请确认您的设备时钟已正确设置,并且您的签名证书未过期.(0xE8008018).
我的证书今天午夜到期,我的几个配置文件需要认真清理.
为了让构建和运行工作,更新所有内容的管理过程是什么?
我发布时:
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)
但什么是加速模块图?
这是xcode的错误抛出:
由于未捕获的异常'NSInvalidUnarchiveOperationException'而终止应用程序,原因:'*** - [NSKeyedUnarchiver decodeInt64ForKey:]:键的值(评级)不是整数'
这是创建Meal对象的类的一部分:
// MARK:属性
Run Code Online (Sandbox Code Playgroud)var rating: Int var name: String var photo: UIImage?// MARK:Path
Run Code Online (Sandbox Code Playgroud)static let DocumentDirectory = NSFileManager().URLsForDirectory(.DocumentDirectory, inDomains:.UserDomainMask).first! static let ArchivelUrl = DocumentDirectory.URLByAppendingPathComponent("meals")// MARK:NSCoding
Run Code Online (Sandbox Code Playgroud)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) }
这是归档者和unarchiver:
// …
我不明白为什么这篇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'
ios ×2
xcode ×2
certificate ×1
javascript ×1
node.js ×1
objective-c ×1
provisioning ×1
react-native ×1
swift ×1