How to solve “Application failed codesign verification” when uploading to iTunes Connect?

I found the solution to this problem after deeply looking at the log file. Although I created my own Distribution Profile and assigned to the CODE SIGNING IDENTITY the correct value for the developer certificate, it didn’t work giving me an error: “Application failed codesign verification”. The problem is at the following line: Authority=iPhone Developer: … Read more

Stopping xcode from indexing

Just run this command in the terminal to turn off Indexing: defaults write com.apple.dt.XCode IDEIndexDisable 1 To turn it back on, run this: defaults write com.apple.dt.XCode IDEIndexDisable 0 (Note: Apparently you need to delete this key in order for the change to take affect, however, I used simply the above command and it worked fine. … Read more

What is Communications error: OS_xpc_error in Xcode 6?

XPC is Apple’s inter-process communication (IPC) system. Some functionality (such as h.264 encoding/decoding, or interacting with camera hardware) is handled by a separate app – a daemon – that runs all the time in the background. Connection interrupted means that the IPC connection was interrupted for some reason. Perhaps it took too long, perhaps the … Read more

Git and pbxproj

The pbxproj file isn’t really human mergable. While it is plain ASCII text, it’s a form of JSON. Essentially you want to treat it as a binary file. Here’s what the individual flags do: -crlf: don’t use crlf <=> cr conversion -diff: do not diff the file -merge: do not attempt to merge the file … Read more

How can I make a countdown with NSTimer?

Question 1: @IBOutlet var countDownLabel: UILabel! var count = 10 override func viewDidLoad() { super.viewDidLoad() var timer = Timer.scheduledTimer(timeInterval: 0.4, target: self, selector: #selector(UIMenuController.update), userInfo: nil, repeats: true) } func update() { if(count > 0) { countDownLabel.text = String(count–) } } Question 2: You can do both. SpriteKit is the SDK you use for scene, … Read more

How to enable indexing in Xcode?

Defaults are a name-value store per domain. The setting’s domain here is com.apple.dt.Xcode. The setting’s name is IDEIndexDisable. You set this to 1. To undo this, you need to remove the setting, not add another one with a different name. Based on the command you entered the first time, use this: defaults delete com.apple.dt.Xcode IDEIndexDisable … Read more

What’s the correct way to configure Xcode 4 workspaces to build dependencies when needed?

Editing the scheme (swapping around build targets, un-/check “Parallelize Build” and/or “Find Implicit Dependencies”) didn’t work for me. I still had to clean build the project, after any code change in the static lib. Searching the dev forums, I finally found this answer, which worked wonders. Make sure the Identity and Type inspector is showing … Read more