Search results for

LLDB crash

29,559 results found

Post

Replies

Boosts

Views

Activity

Reply to LaunchAgent as XPC server
wjens wrote> Also, since launchd needs to run my XPC server, how does one go about debugging this? I didn't think I could start my XPC server from xcode because only launchd could bind the Mach service. Is there a preferred way to build/debug a LaunchAgent that hosts an XPC Mach service?While I couldn't get Xcode to attach to the XPC Mach service I'm working on through the method described this this post by ktam2, you can, however, also attempt to attach the lldb debugger to the XPC service Launch Agent at the command line with:launchctl attach -s gui/UID_ofLoggedInUser/labelOfXPCLaunchAgentRefer to the launchctl(1) man page. Also, the WaitForDebugger key is mentioned in the launchd.plist(5) man page.> Finally, do these programs need to be signed with my Developer ID (can you even sign command line programs)?You can Code Sign and Sandbox a single file executable by embedding an info.plist into it. In the Target’s Build Settings in the Other Linker Flags field, add the following to get the info.
Jun ’15
App Store Search Rant - not sure what to do...
We have an app that has been in the store for many years and has enjoyed decent success. At one time, it was consistently in the top 10 of all educational apps.We have continued to update the app, and it had a major overhaul about 2 years ago, and has gotten periodic updates every six months since. It gets very good ratings, and we continue to get large institutional downloads of 5,000 and 10,000 downloads. It's a genuinely good app, doesn't crash, and has unique features.However, if you search for it on the app store, using a common term for its category (which is also in our keywords), it is placed in the index, somewhere around 100th. Behind all kinds of tangentially related apps and bundles.How can this be good for the end user? If we do the exact same keyword search on desktop iTunes, it shows up 8th, which is what I would expect at this point.I'm trying to figure out what to do. I certainly don't want to continue to invest in this app if it stays in the Search cellar. I'm considering just creat
2
0
498
Jun ’15
Reply to Delegate of a class + conforms to a protocol?
I think you would include the parts of the UIViewController that you want to use in your protocol definition. For example, if you want your helper to have access to the view property, you would do something like this:protocol MailProtocol { var view: UIView! { get set } func mailDone() } class MyVC: UIViewController, MailProtocol { var mailHelper: MyHelper! override func viewDidLoad() { super.viewDidLoad() self.mailHelper = MyHelper(delegate: self) } func mailDone() { print(done) } } class MyHelper { let delegate: MailProtocol! init(delegate: MailProtocol) { self.delegate = delegate print(delegate.view) // for testing only delegate.mailDone() // for testing only } }However, I tried this in Xcode 7 beta 2, and when I type anything the REPL (or something) keeps crashing (i.e. code goes all black for a few seconds, get error message at top of of the source window). Compiling gives this error:SIL verification failed: return value type does not match return type of function: functionResultType == instResu
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to No Crashes?
Third party crash reporting (Crashlytics, Parse et al) seems more reliable, although they don't catch everything either - for example an 0x8badf00d watchdog timeout if the crash reporting framework isn't initialized yet before the app is killed. I do get a LOT more crashes reported now that I'm using Parse.I liked it better before, when I was in blissful ignorance that everything was running perfectly 😀
Jun ’15
assertion failed: 12F70: libxpc.dylib
So,My app is working just fine.Launching works fine, doesn't crash at all.Yet... in the device log of my iPhone6, I see this entry every time I start my app (executable 'dig')Jun 26 12:06:16 Brams-iPhone6 dig[3419] <Error>: assertion failed: 12F70: libxpc.dylib + 71768 [B870B51D-AA85-3686-A7D9-ACD48C5FE153]: 0x7dJun 26 12:06:16 Brams-iPhone6 Unknown[3419] <Error>:My process reports an assertion failure in libxpc, yet happily continues launching.What on earth is up with that?thanks, Bram Stolk
1
0
6.6k
Jun ’15
Reply to swift: how to notify native data change?
Honestly, if you want a notification-style model to work properly, the objects observing probably should be classes.The observers need to have a stable identity, so that there is a valid target for the callback.The observers need to allow the notification center object to keep a reference to them rather than a copy of them, so that the observer is the original object.The observers need a way to deregister themselves when they go out of scope, so that the notification center doesn't try to access a deallocated observer.There are things that structs are great at... the qualities listed above are not any of those things.Using classes for types that need to listen for notifications, and using the existing NSNotification system is just simpler in most cases.You can use a unique-per-instance generated String as the sender for the notifications, if the property you are observing belongs to something that ought to be a struct, in order to match notifications originating from a particular struct instance.But trying to
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to How to import audio for an object for a game
Okay I'm stuck on a part with the code like you know how splashy fish and flappy bird make the game over sound when you die and the sound when you tap it the bird makes a sound I'm trying to do something like that, but I can't figure out how I'm stuck trying to make it where when you crash it makes a crash noise and game over and I'm also trying to get it to where you can tap it and it makes a noise when you tap I have the audio I just don't know how to input it.import SpriteKitclass GameScene: SKScene, SKPhysicsContactDelegate { var score = 0 var scoreLabel = SKLabelNode() var gameOverLabel = SKLabelNode() var goat = SKSpriteNode() var nite = SKSpriteNode() var labelHolder = SKSpriteNode() let goatGroup:UInt32 = 1 let objectGroup:UInt32 = 2 let gapGroup:UInt32 = 0 << 3 let playPopAction = SKAction.playSoundFileNamed(Powerup.mp3, waitForCompletion: false) var gameOver = 0 var movingObjects = SKNode() override func didMoveToView(view: SKView) { self.physicsWorld.contactDelegate = self s
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15