xcode6.1

app crashes at run before reaching my code xcode6.1 Universal App Objective-C NSKeyedUnarchiver iOS 7.0 iOS 8.1

懵懂的女人 提交于 2019-12-24 14:54:23
问题 App crashes at run under 7.1 simulator or device and runs fine on both with in 8.1 with StackTrace: appName[10676:607] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is empty; did you forget to send -finishEncoding to the NSKeyedArchiver? appName[10676:607] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '(null)' *** First throw call stack: ( 0 CoreFoundation 0x007a91e4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x005258e5 objc_exception

create custom code completion macro in xcode 6.1

我怕爱的太早我们不能终老 提交于 2019-12-24 12:01:01
问题 How do i create a custom code completion macro in xcode 6.1 answer to How to create custom "Text Macros" in Xcode? does not seems to work as "Contents/PlugIns/TextMacros.xctxtmacro/Contents/Resources" does not exist anymore. 回答1: I have just been searching for this too, and I found the solution. Select the snippet that you want to make the macro with. Drag the selected text to the Snippets Draw. Inside the edit box, add the 'short-cut' that you want to use in the "Completion Shortcut" edit

Can't run iPhone simulator - file “Logs” couldn't be saved

时光怂恿深爱的人放手 提交于 2019-12-22 02:34:07
问题 iPhone simulator doesn't work. Displays error message: The file “Logs” couldn’t be saved in the folder “Library” because a file with the same name already exists. When /Logs dir is empty, simulator creates subdir CoreSimulator/[AppID] and dispalys the above message. It's fresh OS X Yosemite, installed on new Mac Mini. Any idea how to fix this issue ? 回答1: Try to reset the Ios Simulator settings it worked for me! iOS Simulator -> Reset Content and Settings... 回答2: Just to make it more clear

Can't run iPhone simulator - file “Logs” couldn't be saved

主宰稳场 提交于 2019-12-22 02:32:13
问题 iPhone simulator doesn't work. Displays error message: The file “Logs” couldn’t be saved in the folder “Library” because a file with the same name already exists. When /Logs dir is empty, simulator creates subdir CoreSimulator/[AppID] and dispalys the above message. It's fresh OS X Yosemite, installed on new Mac Mini. Any idea how to fix this issue ? 回答1: Try to reset the Ios Simulator settings it worked for me! iOS Simulator -> Reset Content and Settings... 回答2: Just to make it more clear

Xcode 6.1 Swift issue - 'init()' is unavailable: superseded by import of -[NSObject init]

荒凉一梦 提交于 2019-12-21 07:09:14
问题 I have just upgraded my Xcode to 6.1 an am now getting a strange compilation error. 'init()' is unavailable: superseded by import of -[NSObject init] I am subclassing SCNNode and have a optional references to other classes of the same type I am defining. i.e. import UIKit import SceneKit class BayNode: SCNNode { var leftBay:BayNode? var rightBay:BayNode? func addLeftBay() { leftBay = BayNode() // 'init()' is unavailable: superseded by import of -[NSObject init] } } Does anybody know how I can

UITextView text color not getting set when disabled selectable property

為{幸葍}努か 提交于 2019-12-19 05:45:05
问题 Setup : I have simple textview added in storyboard based view, with outlet taken in viewcontroller's .m file. I am setting text using it. e.g [_textViewOne setText:@"Test text"]; . I am using Xcode 6.1, compiling with iOS 8.1. Scenario : I wanted to make UITextView non touchable, just like UILabel ( i am using UITextView instead of UILabel because my text may be 1 or 2 line and UILabel aligns text at vertically center of view for 1 line and for 2 lines it starts from top left, i want it to

Launch Screen not displaying iOS 8

旧城冷巷雨未停 提交于 2019-12-18 18:54:56
问题 I'm trying to get the Launch screen to display instead I get the default black screen. I remember I've had this issue in the past and is something really silly but I can't remember what it is. I have a LaunchScreen.xib. I've set in my target -> info to use LaunchScreen and not image catalog. I am running iOS 8 and using Xcode 6.1. I tried on all iPhone simulators and iPhone 4s. I can't think what more info to give than that. 回答1: I had the same issue. Turned out that I had earlier tried to

retrieving core data into tableview cells swift

被刻印的时光 ゝ 提交于 2019-12-18 02:50:18
问题 I am trying to simply store and retrieve CoreData (something that I've done successfully before with swift). I was getting a nil for data, but now (not sure what changed) I'm not getting an error, just nothing showing in the tableview. I'm not sure if it's a problem in storing or retrieving the object. I've followed how I did it in another app of mine as closely as possible, but there seems to be some fundamental thing that I'm not getting. Here's what I have. My model: import Foundation

iOS 8.1 Simulator Localization broken (NSLocalizedString)

回眸只為那壹抹淺笑 提交于 2019-12-17 17:27:23
问题 TL;DR: It seems localization does not work with xCode 6.1 and 8.1 simulator. Workaround: Go to "edit schemes" >> "Run" (side bar) >> "Options" tab >> "Application Language" Select the language you wish to run the app on the simulator. Long Story: I've updated xCode to 6.1. The update deleted the iOS 7.x simulators and left me only with 8.x simulator. I've done the following steps: I've installed the 7.x simulator Cleaned the project Deleted the app from the simulators Deleted the derived

Swift Xcode Index Freezing or Slow

懵懂的女人 提交于 2019-12-17 08:18:30
问题 Maybe this is just me experiencing such an annoying "feature": After upgrading from Xcode 6.0.1 to Xcode 6.1, things changed. Xcode 6.1 is forever indexing the project or compiling source files. The project is not a huge one. It just contains a bunch of Swift files and AWS SDK 2.0 Cocoapods in the workspace. I don't think it should prevent the whole to index and compile smoothly. I tried with some aws-sdk-ios-samples, just to see how Xcode 6.1 works on them, and it ended up in the same