New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift Segmentation Fault 11 #21
Comments
Can you post the snippet of your AppDelegate? Also are you using Frameworks with pods or a bridging header? |
Pods
|
Any luck? |
Not yet, I was investigating it but I couldn't even get the window to load in Xcode 6.3. I'm getting a compile time error about overriding the getter on window. What version of Xcode/Swift |
I'm using Xcode 6.2 right now. |
Okay, Apple might have changed something in Xcode 6.3 in the Swift formatting that is breaking my project which is why I can't run it right now. I'll have to trouble shoot that first. As for Once I figure out why I can't use this library in Swift 1.2, I'm going to take a look at whether or not the bridging header makes a difference or not. |
I can confirm this issue with the latest swift update. Hope you can find what's going on ! |
I am having the same issue. Importing COSTouchVisualizer through a Bridging header. The error I'm getting is as follows:
as well as for the setter
I'm getting these both with and without use_frameworks! |
Use the following in your AppDelegate lazy var window: UIWindow? = {
COSTouchVisualizerWindow(frame: UIScreen.mainScreen().bounds)
}() Then it should work without problems |
@krusche thank you, I was trying that but I forgot the step of setting the delegate. I just updated the project with a Swift example and here is the entire AppDelegate import UIKit
import COSTouchVisualizer
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, COSTouchVisualizerWindowDelegate {
lazy var window: UIWindow? = {
var customWindow = COSTouchVisualizerWindow(frame: UIScreen.mainScreen().bounds)
customWindow.touchVisualizerWindowDelegate = self
return customWindow
}()
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
return true
}
func touchVisualizerWindowShouldAlwaysShowFingertip(window: COSTouchVisualizerWindow!) -> Bool {
return true
}
} |
After properly adding the pod and putting
There is a segmentation fault
The text was updated successfully, but these errors were encountered: