In the past if you wanted to include data in your command line app, you could either include it in a separate file or do some linker trickery to embed it. Personally, I never really got into the linker trickery (though it’s probably the better solution of the two).
For a while, though, Xcode has supported a build option Create Info.plist Section In Binary, also known as
CREATE_INFOPLIST_SECTION_IN_BINARY. If on, this will embed the target’s Info.plist into the executable as a data segment.
I couldn’t find any documentation on how to get it out, though. After a lot of searching, I came up with
getsectbyname. This is defined in mach-o/getsect.h like so:
Continue reading Info.plist for command line tools
Do you have an app where the row heights in a table view shift, especially when navigating away from a view controller?
This seems to be an iOS bug and is caused by using autolayout within a table cell without a
Continue reading How to fix UITableView rows changing size
You know what I really hate? Defending Facebook.
CBC has a story right now on how Facebook Messanger captures more data than you think. And thanks to how inaccurate that story is, now I have to defend Facebook. Way to make my day, CBC.
Continue reading Defending Facebook
Jon Friskics suggets Swift is great, but you should still know Objective-C first. Dave Mark agrees.
Let me give you a different opinion:
No, newbie, you don’t need to learn Objective-C first. You’ll miss it from time to time and you might want to pick it up later, but it won’t help you much now. And it will color your thinking in a way that might hurt your understanding.
Continue reading Learn Swift
I’ve had some recent troubles trying to upload a build in Xcode. These involved getting a really unhelpful error from Xcode: “No identities were available.” Unfortunately, I was stuck there for two days.
It turns out that you can get Xcode to log more information on the handshake with the portal. Quit Xcode, then run these two commands.
Continue reading Debugging app upload