xcode6

Xcode 6 / iOS 8 Simulator Data and Bundle folder script

柔情痞子 提交于 2020-01-01 08:43:48
问题 With the latest changes to xcode 6, it looks like the .app file and document folder no longer resides in the same folder in the iPhone simulator directory. Previously, we can access the directory and .app file at /Users/me/Library/Application Support/iPhone Simulator/7.1/Applications/SomeCrpyticNumber but in Xcode 6, the simulator directory is completely different: ~/Library/Developer/CoreSimulator/Devices/CrypticNumber1/data/Containers/Bundle/CrypticNumber2/MyApp.app and ~/Library/Developer

Terminated xcodebuild since it produced no output for too long

旧城冷巷雨未停 提交于 2020-01-01 04:23:12
问题 I've updated to the new Xcode 6.1 and server 4.0. I was able to get continuous integration on the simulators but not the devices in the previous version. Now that I've updated, I'm not getting any continuous integration. I'm getting the following 2 errors: Terminated xcodebuild since it produced no output for too long The xcodebuild task completed with uncaught signal. Any ideas? 回答1: When I changed my signing certificate on my Xcode CI machine I could see that the bots got stuck on signing

UIView viewwithtag method in swift [closed]

孤人 提交于 2020-01-01 04:08:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I'm trying to learn some swift. I programmatically add labels. I want to change their properties later. the viewwithtag method returns a UIView, how to I access my UILabel from this? cheers 回答1: You need to use a typecast. This code will do it: if let theLabel = self.view

Using threads to update UI with Swift

不羁岁月 提交于 2020-01-01 01:53:10
问题 I'm developing a software with Xcode 6 using Swift. When I press a button, my code takes some informations from the web and writes them on my NSWindow. So imagine something like this: @IBAction func buttonPressed(sender: AnyObject) { for page in listOfPages //Number of pages is 40. { var label: NSTextField = NSTextField(); label.stringValue = getInformetionsFromPage(page) /* some code to add label in the window here */ } } The problem is that once I click the button, it takes a while before I

how to handle applicationShouldHandleReopen in a Non-Document based Storyboard Application

强颜欢笑 提交于 2019-12-31 10:44:34
问题 The best I have been able to figure out is: func applicationShouldHandleReopen(sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool { if !flag{ let sb = NSStoryboard(name: "Main", bundle: nil) let controller = sb?.instantiateInitialController() as NSWindowController controller.window?.makeKeyAndOrderFront(self) self.window = controller.window } return true } But that requires that I set a ref to the window on my app delegate. Since that isn't required when the app initially starts I'm

How to reference to images and other objects in Xcode and where to place them physically?

ⅰ亾dé卋堺 提交于 2019-12-31 07:32:48
问题 This question have been asked numerous times, but I have not managed to get an answer that I am happy with. Probably because the most answers is of "how do I do this?" type and also get "this way you do this" answers. The problem I have is that I need to use absolute paths when I want to reference to images in Xcode (version 6.0.1). I am quite sure that I could place the images in my working directory which is something like: /Users/patrikek/Library/Developer/Xcode/DerivedData/ChessGame-

How to reference to images and other objects in Xcode and where to place them physically?

∥☆過路亽.° 提交于 2019-12-31 07:32:13
问题 This question have been asked numerous times, but I have not managed to get an answer that I am happy with. Probably because the most answers is of "how do I do this?" type and also get "this way you do this" answers. The problem I have is that I need to use absolute paths when I want to reference to images in Xcode (version 6.0.1). I am quite sure that I could place the images in my working directory which is something like: /Users/patrikek/Library/Developer/Xcode/DerivedData/ChessGame-

“unexpectedly found nil while unwrapping an Optional value” when retriveing PFFile from Parse.com

左心房为你撑大大i 提交于 2019-12-31 02:45:09
问题 i've a problem when i retrieve a PFFile stored in Parse.com let user = PFUser.currentUser() let userImageFile = user["profileImage"] as PFFile userImageFile.getDataInBackgroundWithBlock { (imageData: NSData!, error: NSError!) -> Void in if error == nil { if imageData != nil{ let image = UIImage(data:imageData) self.profileImage.image = image } } } The error start at line two . Column "profileImage" exists, but it can be empty. Someone can help me? Thank you. 回答1: Try: if let userImageFile =

Use of unresolved identifier PFFacebookUtils

天涯浪子 提交于 2019-12-30 17:45:51
问题 I've done all is mentioned here (https://www.parse.com/docs/ios_guide#fbusers/iOS) for implement in iOS the Facebook Login. The problem is that i have an compile error "Use of unresolved identifier PFFacebookUtils" near che line PFFacebookUtils.initializeFacebook() in AppDelegate. I've correctly imported the Parse and Facebook Framework into my project. Are there some bug knowed in Xcode 6 Beta? 回答1: Parse docs doesn't mention this yet: After downloading the Parse iOS SDK, You should include

Swift Bridging Header and visibility of Obj-C class

别等时光非礼了梦想. 提交于 2019-12-30 08:36:15
问题 I've aded bridging header, specified in build settings the full path to it, bridging header was created automatically. After this, i've included my obj-c header files in it. But every attempt of calling constructor of object fails : "Use of undeclared identifier". The list of things i've done : Created .m file and Xcode proposed to create bridging header Added obj-c files to project and imported them in header In build setting provided the FULL path to bridging header file Used Obj-C type in