xcode6.1

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

无人久伴 提交于 2019-12-04 01:35:33
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 resolve this. Many Thanks I have same problem, one way I found to suppress the error is to explicitly

Finding cause of “Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0”

ぐ巨炮叔叔 提交于 2019-12-03 16:16:09
问题 I know the reason of this warning and how to solve it: to give a preffered width to the label. The problem is that, when I click that warning, I don't see any label/view/viewcontroller selected. The storyboard opens and that's it. There are many view controllers with many views in my storyboard. How can I find out which label is causing the problem without iterating through all the view controllers manually? When I click the warning, I expect it to take me to the view causing the warning, but

Xcode 6: How to Disable Optimisation (Swift)

ぃ、小莉子 提交于 2019-12-03 10:37:37
Breakpoints are not being triggered during debugging. I discovered it's because of optimised code. How can you disable optimisation? I've walked through every toolbar and the closest option that I could find is Product => Perform Action => Generate Optimisation Profile . This does not work as I am debugging in the simulator, says Xcode. Is it possible to disable code optimisation in Xcode 6.1 using the simulator and writing in Swift, and if so, how would I go about that? SOLUTION: Click your project name in the project navigator in the left pane under the folder icon. Click 'Build Settings' on

Finding cause of “Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0”

你说的曾经没有我的故事 提交于 2019-12-03 06:19:58
I know the reason of this warning and how to solve it: to give a preffered width to the label. The problem is that, when I click that warning, I don't see any label/view/viewcontroller selected. The storyboard opens and that's it. There are many view controllers with many views in my storyboard. How can I find out which label is causing the problem without iterating through all the view controllers manually? When I click the warning, I expect it to take me to the view causing the warning, but it just opens the storyboard. Here is one way to find the specific label that is causing this warning:

Xcode Source Kit will not stop crashing with Swift [duplicate]

↘锁芯ラ 提交于 2019-12-03 05:13:47
问题 This question already has answers here : SourceKitService Terminated (34 answers) Closed 5 years ago . I need to find a solution to the super awesome "Source Kit Crashing" error with Swift. I have read many stack overflow posts but it doesn't seem like anyone has a solution. If there is a single line of code causing the problem there is no way I will find it by fishing through 50 + source files. Does anyone have a solution to this problem? Xcode is essentially as useful as notepad it has

Unable to boot device in current state: Booted

痴心易碎 提交于 2019-12-03 03:25:50
问题 Any guess on "Unable to boot device in current state: Booted" error in Xcode6 beta while running (build+run) project in Simulator. I am just running my existing project in Xcode 6 I found above message. I tried cleaning, deleting of the derived data, even restarting the simulator doesn't work. Finally i restarted my Xcode 6 then it is working. Any simpler way to resolve the error instead of restarting your xcode6. 回答1: In Xcode go to the Xcode menu->Open Developer Tool - IOS Simulators.

Xcode 6.1 'Swift REPL built into the Xcode debugger can inspect and manipulate your running app' not working

♀尐吖头ヾ 提交于 2019-12-03 03:20:44
For Xcode 6.1 one of the update point is: Swift REPL built into the Xcode debugger can inspect and manipulate your running app I've created empty project, set a breakpoint in viewDidLoad, when app stops at breakpoint, I'm typing 'repl' in Xcode console, then trying to print self with println(self) But Xcode gives me the error: error: use of unresolved identifier 'self' But it's not working. The question is: What I'm doing wrong? Turns out there are actually two expression evaluators for Swift in lldb, the repl and the regular expression command. The two differ in important ways. The repl

Incorrect path for Pods.debug.xcconfig in Xcode?

梦想与她 提交于 2019-12-03 01:28:47
问题 so I used Venmo/Synx on my Xcode project with CocoaPods, and it completely screwed everything up. I was able to fix the Manifest.lock and Podfile.lock errors, but now I am getting this error: The file “Pods.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/user/GitHub/xxxxxx/Pods/Pods/Target Support Files/Pods/Pods.debug.xcconfig) As you can see, the path is incorrect, as there is no Pods/Pods directory (there is one extra pod). How can I fix this? I have only added

How to implement Interstitial iAds in Swift(Xcode 6.1)

。_饼干妹妹 提交于 2019-12-02 18:39:25
I am trying to figure out how to switch over from my banner view iAds to interstitial iAds in order to free up space for a tabbed controller. For some reason I am completely unable to find any resource for even getting started on these ads with swift. Could anyone please give me some information on interstitial iAds with Swift and how I can implement them in a project. Here is a relatively cleaner and easier to follow way to implement Interstitial Ads since this way doesn't require the use of NSNotificationCentre import UIKit import iAd class ViewController: UIViewController,

Xcode Source Kit will not stop crashing with Swift [duplicate]

大憨熊 提交于 2019-12-02 17:38:27
This question already has an answer here: SourceKitService Terminated 34 answers I need to find a solution to the super awesome "Source Kit Crashing" error with Swift. I have read many stack overflow posts but it doesn't seem like anyone has a solution. If there is a single line of code causing the problem there is no way I will find it by fishing through 50 + source files. Does anyone have a solution to this problem? Xcode is essentially as useful as notepad it has gotten so bad. Please someone have a solution :). Source Kit crashes every single time I type a letter in any file. Included