Tag: xcode8

Xcode 8控制台垃圾?

有没有其他人有问题的Xcode 8控制台显示一堆随机的东西? 我不想让所有这些混乱我的debugging消息和日志。 有人知道如何解决这个问题吗? 编辑:发行说明指定控制台可能会转储无用的东西的watchOS,但不适用于iOS。 例:

“导航栏”的警告框在运行时会出现在XCode 8 Swift 3中

在升级到XCode 8之前,在这种情况下我还没有看到这个错误。 我有不同的导航控制器。 对于他们所有我看到一个错误Frame for "Navigation bar" will be different at the run time. Navigation bar "Expected: width=384, Actual: width=375 Frame for "Navigation bar" will be different at the run time. Navigation bar "Expected: width=384, Actual: width=375实际上这些导航控制器没有Navigation bar 。 Navigation bar存在子视图。无论如何,我可以通过打勾解决它,并取消checkbox在Attributes inspector Shows navigation bar但不幸的是,每当我重新打开Main.storyboard这个警告就会再次出现,如果我点击黄色的三angular形然后更新帧,什么都不会发生。

macOS Sierra Xcode 8.3.3中的代码签名错误 – 不允许使用资源分叉,Finder信息或类似碎片

已经尝试过: macOS Sierra,Xcode 8上的代码签名错误 请参阅图像显示错误 CodeSign /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Products/Debug-iphoneos/Super\ Flow\ Flip.app cd "/Volumes/Development/Project/Top Best Games/19. Lets Flow/35/let's FLOW – source/proj.ios_mac" export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" Signing Identity: "iPhone Distribution: New Free Games (2CHN583K4J)" Provisioning Profile: "Super Flow Flipp AppStore" (c6c30d2a-1025-4a23-8d12-1863ff684a05) /usr/bin/codesign –force –sign E48B98966150110E55EAA9B149F731901A41B37F –entitlements /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Intermediates/Flow.build/Debug-iphoneos/Super\ Flow\ Flip.build/Super\ Flow\ Flip.app.xcent –timestamp=none /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Products/Debug-iphoneos/Super\ Flow\ Flip.app /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Products/Debug-iphoneos/Super Flow Flip.app: resource […]

我可以从iOS DeviceSupport中删除数据吗?

用过去不再需要的东西来清理我的磁盘之后,我遇到了MacHD /用户/用户/库/开发人员/ Xcode的iOS设备支持文件夹,这个文件夹将近20GB。 以前也有类似的问题,但从那时起,很多事情都发生了变化,希望得到最新的答案。 只要我有我用于testing的版本,我可以删除旧的/未使用的版本,而不会破坏任何东西?

iOS 10 / Xcode 8中的设备NSLog似乎截断? 为什么?

为什么控制台输出在Xcode 8 / iOS 10中显示不完整?

如何在Swift 3和4中编写dispatch_after GCD?

在Swift 2中,我能够使用dispatch_after来延迟使用大中央调度的操作: var dispatchTime: dispatch_time_t = dispatch_time(DISPATCH_TIME_NOW, Int64(0.1 * Double(NSEC_PER_SEC))) dispatch_after(dispatchTime, dispatch_get_main_queue(), { // your function here }) 但这似乎不再在Swift 3(或4)中编译。 什么是在Swift 3中使用新的Dispatch API编写的首选方法?

Xcode正在寻找带有点的核心数据实体名称; 不编译

我一直在做一个项目,最近升级到了Xcode 8和Swift 3.0以及iOS 10.但是因为我这样做了,所以我一直无法编译。 我得到了我的每个实体的错误::0:错误:没有这样的文件或目录:''/Users/mark/Library/Developer/Xcode/DerivedData/…/.Account+CoreDataProperties.swift'每个案例有一个 。 (点)前的实体名称:.Account + CoreDataProperties.swift。 我将Code Gen从“Category / Extension”更改为Manual / None,我做了一个干净而干净的目录,删除了DerivedData目录。 有趣的是,当我查看相应的目录时,那里有一个实际的文件,没有点前缀。 这很混乱。 任何人都可以解释吗? 我需要解决这个问题才能继续核心数据。 TIA Mark

在iOS 10模拟器中,SecItemAdd总是返回Xcode 8中的错误-34018

更新 :这个问题已经在Xcode 8.2中解决了。 钥匙串在模拟器中工作,不启用钥匙串共享。 为什么我在Xcode 8 / iOS 10模拟器中调用SecItemAdd函数时总是收到错误-34018? 重现步骤 在Xcode 8中创build一个新的单页iOS应用程序项目。在viewDidLoad运行以下代码(或者打开这个 Xcode项目)。 let itemKey = "My key" let itemValue = "My secretive bee 🐝" // Remove from Keychain // —————- let queryDelete: [String: AnyObject] = [ kSecClass as String: kSecClassGenericPassword, kSecAttrAccount as String: itemKey as AnyObject ] let resultCodeDelete = SecItemDelete(queryDelete as CFDictionary) if […]

Xcode 8 Beta 3使用传统的Swift问题

我在Xcode 8 Beta 3中有一个Objective-C项目。由于更新,每当我尝试构build我收到以下错误: 需要为使用Swift的目标正确configuration“使用旧版Swift语言版本”(SWIFT_VERSION)。 使用[编辑>转换>至当前Swift语法…]菜单select一个Swift版本,或者使用Build Settings编辑器直接configuration构build设置。 有没有人遇到过这个? 由于这是一个Objective-C项目,所以没有构build设置来configurationSwift。 我也确定没有项目依赖项或CocoaPods使用Swift。 我唯一的解决scheme是使用Beta 2.任何想法我可以解决这个问题? 我还应该提到我正在运行OSX 10.12 Beta 2。

Swift 3保存并从userDefaults中检索自定义对象

我在Playground中使用Swift 3,Xcode 8.0: import Foundation class Person: NSObject, NSCoding { var name: String var age: Int init(name: String, age: Int) { self.name = name self.age = age } required convenience init(coder aDecoder: NSCoder) { let name = aDecoder.decodeObject(forKey: "name") as! String let age = aDecoder.decodeObject(forKey: "age") as! Int self.init( name: name, age: age ) } […]