每当我尝试在调试器中打印某些东西时,它都会崩溃并传递这一行
"LLDB RPC服务器崩溃了.请在崩溃日志中向Apple提交一个bug."
有没有办法在发布版本中的调试版本和性能测试中运行单元测试,而无需手动选择和运行单独的方案?
我有一个单元测试和一个性能测试方案.在单元测试方案的测试配置中,我选择了调试版本,而对于性能测试方案,我选择了版本构建.如果我单独运行每个方案,我分别得到一个调试版本和一个发布版本.
如果我创建另一个运行这两个方案的方案,那么新方案将拥有自己的构建配置.如果我为这个新方案设置了debug的构建配置,那么我也将获得一个用于我的性能测试的调试版本.
我有一个带有RestKit库和CoreData的iOS应用程序.从Xcode8开始,我可以看到比以前更多的日志,其中一个对我没有任何意义.
error: An observer of NSManagedObjectContextDidSaveNotification illegally threw an exception. Objects saved = {
inserted = "{(\n)}";
managedObjectContext = "<_PFWeakReference: 0x600000621560>";
updated = "{(\n ... )}";
}
and exception = [<_PFWeakReference 0x600000621560> valueForUndefinedKey:]: this class is not key value coding-compliant for the key @count. with userInfo = {
NSTargetObjectUserInfoKey = "<_PFWeakReference: 0x600000621560>";
NSUnknownUserInfoKey = "@count";
Run Code Online (Sandbox Code Playgroud)
到目前为止,我能理解的是对managedObjectContext的弱引用(错误上面的内容)使用了错误的键,但我无法弄清楚如何调试它.
与此问题相关的所有NSManagedObjects似乎都是集合.主要来自OneToMany或ManyToMany关系的NSSet.
然后我发现了这个Apple文档:
除@count外,所有集合运算符都需要集合运算符右侧的键路径.
但是,我看不到当前使用此密钥的任何谓词或CoreData请求.
我重新生成了所有的NSManagedObject模型,并仔细检查它们之间的所有反向关系,但它没有帮助我摆脱它.
这个应用程序运行正常,但我找不到任何解决方案来删除此警告.
我阅读本教程将矢量图像导入xcode: 如何在Xcode 7中使用矢量
但它的接缝在xcode 8中有所不同.
我在XCAsset文件中创建了一个图像集,但是,在xcode 8中,其Attribute Inspector中没有"Scale Factors"属性.
它在哪里?如何在xcode 8中将矢量图像导入图像资源?
我在SO和其他地方搜索过.我只发现这个答案的旧版本似乎不再起作用,以及大量其他在最新版本中甚至没有相关的东西.
简而言之,我们有一位开发人员向我们提供IPA,他们不想加入我们的开发团队.我告诉他给我们发一份未签名的IPA,但我们无法根据我们的旧流程弄明白.
有没有人这样做过,你介意与世界分享你的方法吗?
谢谢!
昨晚下载了xcode 8.2 beta,转换了我的大部分代码,但现在我遇到了关于app delegate的六个函数的黄色警告符号:
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. …Run Code Online (Sandbox Code Playgroud) 更新到Xcode 8,在iOS 8模拟器中运行我的应用程序崩溃,虽然iOS9和iOS10没问题.
"dyld:懒符号绑定失败:未找到符号:_objc_unsafeClaimAutoreleasedReturnValue引自:**预期在:/ Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A名为.dylib
dyld:未找到符号:_objc_unsafeClaimAutoreleasedReturnValue引
自:**预期在:/ Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib"
我查看了Apple的:
Xcode 8发行说明:https:
//developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
从Swift 2.2迁移到Swift 2.3或Swift 3
https://swift.org/migration-guide/
在macOS 10.12,iOS 10.0,tvOS 10.0和watchOS 3.0中的核心数据有什么新功能
https://developer.apple.com/library/content/releasenotes/General/WhatNewCoreData2016/ReleaseNotes.html#//apple_ref/doc/uid/ TP40017342-CH1-DontLinkElementID_1
还有很多其他......但是,应该从Apple的核心数据编程指南中获得的一个文档尚未从Swift 2更新
.https://developer.apple.com/library/content/documentation/Cocoa/概念/ CoreData/FetchingObjects.html#// apple_ref/DOC/UID/TP40001075-CH6-SW1
理想情况下,我正在寻找类似这样的东西,但对于Swift 3.
https://www.raywenderlich.com/115695/getting-started-with-core-data-tutorial
任何线索都会非常感激.
每个汤姆的评论(下面)我错过了什么步骤?
1)创建一个新项目"测试"
2)选择使用CoreDate(这会创建Test.xcdatamodeld)
这将使用以下内容自动填充AppDelegate(删除默认注释):
func applicationWillTerminate(_ application: UIApplication) {
self.saveContext()
}
lazy var persistentContainer: NSPersistentContainer = {
let container = NSPersistentContainer(name: "Test")
container.loadPersistentStores(completionHandler: { (storeDescription, error) in
if let error = error as NSError? {
fatalError("Unresolved error \(error), \(error.userInfo)")
}
})
return container
}()
func saveContext () {
let context = persistentContainer.viewContext
if …Run Code Online (Sandbox Code Playgroud) 应用程序构建时,Xcode iOS模拟器运行速度极慢.UI和响应非常滞后.
我在OSX 10.11.6上使用Xcode 8.0发行版
还有其他人经历过这个吗?如果是这样,任何人都有任何解
在尝试设置Xcode 8的签名设置期间,我的开发配置文件有以下错误:
配置文件"XXX"不包含beta-reports-active权利.
重新设置配置文件无济于事.我不太确定这种类型的配置文件是否需要beta-reports-active设置,因为我看到其他问题只有AppStore配置文件应该使用这些设置.
我将不胜感激任何帮助
AdHoc配置文件具有相同的错误,但AppStore配置文件适用于Release.
xcode code-signing-certificate ios provisioning-profile xcode8
xcode8 ×10
ios ×6
xcode ×5
core-data ×2
swift3 ×2
appdelegate ×1
ipa ×1
restkit ×1
swift ×1
unit-testing ×1
vector ×1
xcode-scheme ×1
xctest ×1