xcode8

Xcode 8 Storyboard error

痞子三分冷 提交于 2020-01-03 01:54:12
问题 I am working on building an app. Earlier I have used Xcode 7.1 at that time everything was working fine. Recently I have installed Xcode 8.0 as well and I have both the setups installed into in two different directories Xcode_7, Xcode_8 and I renamed the setup files as well. Everything was working fine but lately I am getting the following error while working with Xcode 8. "An internal error occurred. Editing functionality may be limited " and the storyboard view objects are all gone empty

PFObject values may not have class: _SwiftValue

吃可爱长大的小学妹 提交于 2020-01-02 15:05:59
问题 We are trying out Parse server , and we have never used Parse SDK before. As part of learning we tried Facebook login with Parse , that worked good. Next we wanted to save the retrieved user information and we are stuck at saving the Profile picture . The Code let pictureURL = "https://graph.facebook.com/\(facebookID)/picture?type=large&return_ssl_resources=1" let imageData = NSData.init(contentsOf: NSURL(string: pictureURL) as! URL) let picture = PFFile(data: imageData! as Data) PFUser

iPad Pro scale up from iPad application and Launch Screen file - iOS 10

ぐ巨炮叔叔 提交于 2020-01-02 14:37:30
问题 I have an ipad application that I would like to run on iPad pro, but when I run it, it only occupies one corner of the screen like so: Now, another stackoverflow question asked the same question and the response was to remove the launch screen file and not to give the OS any hardcoded information about the device size it's going to run on. I did it and it scaled my app to full screen BUT.. It created another iOS10 specific bug that happens if you don't specify the launch screen: iPad

How can I use Swift 2.2 on Xcode8?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-02 11:01:58
问题 I had a project on Swift2.3 and XCode7 . It worked well. When I have updated it to XCode8 and Swift3 the project does not show anything on the emulator so I decided to use, at least by the moment, Swift2.2 on Xcode8 (I have a copy of the project in Swift2.2 ) but it gives to me the following error: “Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift

How can I use Swift 2.2 on Xcode8?

穿精又带淫゛_ 提交于 2020-01-02 10:59:28
问题 I had a project on Swift2.3 and XCode7 . It worked well. When I have updated it to XCode8 and Swift3 the project does not show anything on the emulator so I decided to use, at least by the moment, Swift2.2 on Xcode8 (I have a copy of the project in Swift2.2 ) but it gives to me the following error: “Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift

Xcode 8 does not auto-complete for init methods

大兔子大兔子 提交于 2020-01-02 06:59:29
问题 I am having trouble getting Xcode 8 with Swift 3 to auto-complete common initialization methods, and was wondering if there is anything I could do to fix the situation. Specifically, take something like: let jsonString = String(data: jsonData, encoding: .utf8) The initialization method String(data:, encoding:) will not populate. Demo Video 回答1: I find it useful to type the actual word .init before asking for code completion. Then later, I take it back out again. Note that Xcode is very choosy

How to pre load database in core data using swift 3 xcode 8

徘徊边缘 提交于 2020-01-02 05:36:11
问题 I have a database with data and I want to preload that in application. Before swift 3 it works and I have followed this tutorial : http://www.appcoda.com/core-data-preload-sqlite-database/ But how to load same database for swift 3? As NSPersistentContainer is introduced how can I load .sqlite file which is in my project? 回答1: Actually the default path where database was created is changed in swift 3 . So now the code will look like : func preloadDBData() { let sqlitePath = Bundle.main.path

Why the Xcode 8 (iOS 10) print [LogMessageLogging] <private> in console

不羁的心 提交于 2020-01-02 03:40:10
问题 Why does Xcode 8 (iOS 10) print [LogMessageLogging] <private> in the console, when I call the map view? Can any one give some suggestions? 回答1: Privacy The unified logging system considers dynamic strings and complex dynamic objects to be private , and does not collect them automatically. To ensure the privacy of users, it is recommended that log messages consist strictly of static strings and numbers . In situations where it is necessary to capture a dynamic string, you may explicitly

Where is located symbolicatecrash in Xcode 8?

与世无争的帅哥 提交于 2020-01-02 03:12:52
问题 Where is located symbolicatecrash tool in Xcode 8? In Xcode 7 it used to be here: /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash 回答1: I found it at... ./Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash ...in the Xcode.app folder. For reference, " find . -name symbolicatecrash " in the terminal is your friend. 来源: https://stackoverflow.com/questions/39858554/where-is-located

Xcode 8 - Some buttons border removed

怎甘沉沦 提交于 2020-01-01 09:11:54
问题 I just updated my Xcode ver from 7.3 to 8.0 and some buttons borders disappeared. The code looks fine, so I really don't know what happened to the layers. btw - in some other controllers I can see the layers borders. self.button.layer.borderColor = borderColor.CGColor; self.button.layer.borderWidth = 2; self.button.layer.cornerRadius = CGRectGetHeight(self.button.frame) / 2; before: (The image is only for example - the borders looks different at real time) now: 回答1: The reason is that XCode 8