我试图运行从迁移我的iOS应用程序Swift 1.2
来Swift 2.0
使用iPhone模拟器(任何),我发现了以下错误在Xcode 7:
该操作无法完成.(FBSOpenApplicationErrorDomain错误1.)
我已经尝试重置模拟器设置和内容,退出Xcode,清理项目等.
每次我在Simulator
使用时安装应用程序时都会出现此错误Xcode 6
2014-09-27 11:25:01.286 MyFace[2992:1780149] CoreData: error: -addPersistentStoreWithType:SQLite configuration:(null) URL:file:///Users/douglasferreira/Library/Developer/CoreSimulator/Devices/DAC1BEDE-8673-471C-ADFD-923654C78719/data/Containers/Data/Application/D2213EE4-3807-44FF-9FD0-E7C6C1BD18A2/Library/MyFace.sqlite options:{
NSInferMappingModelAutomaticallyOption = 1;
NSMigratePersistentStoresAutomaticallyOption = 1;
} ... returned error Error Domain=NSCocoaErrorDomain Code=512 "The operation couldn’t be completed. (Cocoa error 512.)" UserInfo=0x7fe566317030 {reason=File appeared during sanity check; this seems suspicious} with userInfo dictionary {
reason = "File appeared during sanity check; this seems suspicious";
}
[2014-09-27 11:25:01:288] [ERROR] Problems to initialize persistent store coordinator: Error Domain=NSCocoaErrorDomain Code=512 "The operation couldn’t be completed. (Cocoa error 512.)" UserInfo=0x7fe566317030 …
Run Code Online (Sandbox Code Playgroud) 我在同一台Macbook中有Xcode 6.4和Xcode 7,但后来我将Xcode 7更新为7.1,现在我无法打开Xcode 6.4版本.
Process: Xcode [13139]
Path: /Applications/Xcode 6.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.4 (7720)
Build Info: IDEFrameworks-7720000000000000~8
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [13139]
User ID: 502
PlugIn Path: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib
PlugIn Identifier: libswiftCore.dylib
PlugIn Version: 2.1 (700.1.101.6)
Date/Time: 2015-10-23 10:51:23.902 -0200
OS Version: Mac OS X 10.10.5 (14F1021)
Report Version: 11
Anonymous UUID: 3C65E0B9-2018-8B23-3825-C5EB4D6161BE
Sleep/Wake UUID: 79EE1FEB-DB8C-44E2-9C3B-F7C7B6C44EB5
Time Awake Since Boot: 19000 seconds
Time Since Wake: 6900 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread …
Run Code Online (Sandbox Code Playgroud) 我有大量的对象列表,我需要将它们分成一组两个元素用于UI propouse.
例:
[0, 1, 2, 3, 4, 5, 6]
成为这四个数组的数组
[[0, 1], [2, 3], [4, 5], [6]]
分割阵列有很多种方法.但是,如果阵列很大,那么最有效(成本最低)的是什么.
我这样得到了2分的距离
[userLocation distanceFromLocation: annotationLocation] / 1000;
Run Code Online (Sandbox Code Playgroud)
并将其设置为tableview的副标题,如图像bellow screenshot http://i41.tinypic.com/ruxv74.png
问题是,我可以按距离(副标题)订购此表吗?
谢谢!
并抱歉坏英语= x
ios ×3
xcode ×2
xcode6 ×2
arrays ×1
cocoa-touch ×1
core-data ×1
ios7 ×1
ios8 ×1
iphone ×1
mapkit ×1
objective-c ×1
slice ×1
swift ×1
swift2 ×1
system-font ×1
uifont ×1
uitableview ×1
xcode7 ×1