News for hackers. Stuff that matters.
Re:Xctool: a replacement for xcodebuild to build and test iO... by rogerbinns on Thursday May 02, 2013 @02:33PM (#5646324)
I'm incredibly frustrated by the lack of command line dev tools for iOS. For example using adb with Android, I can stop a running app, clear all of its data and start it again. I can push and pull files and can dissect the internal state as a result.

I do find various unmaintained tools for iOS as they generally use undocumented and changing backends.

My current biggest need is to grab and put files in the app sandbox. There are several gui tools that can do it like i-funbox, but absolutely nothing that is automatable. http://stackoverflow.com/questions/15980545/command-line-acc...

Re:Xctool: a replacement for xcodebuild to build and test iO... by LegNeato on Thursday May 02, 2013 @05:15PM (#5647262)
Re:Xctool: a replacement for xcodebuild to build and test iO... by rogerbinns on Thursday May 02, 2013 @05:23PM (#5647296)
I already did a while back. I couldn't find any evidence that it supported access to the application sandbox which uses a slightly different protocol.
Re:Xctool: a replacement for xcodebuild to build and test iO... by orta on Thursday May 02, 2013 @06:55PM (#5647720)
I have a library that does this for simulator apps in iOS: http://github.com/orta/chairs/ - but as you say, undocumented , unofficial & hacky
Re:Xctool: a replacement for xcodebuild to build and test iO... by rogerbinns on Thursday May 02, 2013 @10:42PM (#5648536)
For various reasons I need this mostly for real devices which is even less documented, official and more hacky :-)
Re:Xctool: a replacement for xcodebuild to build and test iO... by orta on Friday May 03, 2013 @02:32AM (#5649128)
well, TBH, apps like iExplorer exist. If I can find out how that can access the device's filesystem I can probably do the same and support device & sim. I'll make a github issue.
Re:Xctool: a replacement for xcodebuild to build and test iO... by rogerbinns on Friday May 03, 2013 @04:10AM (#5649327)
Cool. iExplorer even has a Fuse module which would be perfect except it is extremely buggy. You have to use the gui to mount, and can only mount an application sandbox not one level up. If the app is uninstalled/reinstalled they lose the plot. (They never responded to my bug reports and inquiries. The iFunbox folks didn't either - seems to be a pattern with these kind of tools for Mac.)
Re:Xctool: a replacement for xcodebuild to build and test iO... by seany on Thursday May 02, 2013 @02:48PM (#5646396)
You mean you don't want to drive the organizer and instruments via scripting bridge? :-p
Re:Xctool: a replacement for xcodebuild to build and test iO... by rogerbinns on Thursday May 02, 2013 @04:52PM (#5647158)
I couldn't find the dictionary for the organizer. In any event the organizer only shows my apps, rather than all apps as ifunbox and similar tools do.

fruitstrap would also greatly help but it is no longer maintained (with several forks).

Re:Xctool: a replacement for xcodebuild to build and test iO... by dfamorato on Thursday May 02, 2013 @03:55PM (#5646793)
I LOOOOVEEE the output. Nice, colorful and significant.

if you want to link it to your /usr/local/bin directory.. just modify the xctool.sh XCTOOL_DIR=path/where/xctool/is/located

Now... if only i could figure out how to use the xctool with Fortify....

Re:Xctool: a replacement for xcodebuild to build and test iO... by krohling on Thursday May 02, 2013 @06:59PM (#5647737)
If you're interested in a cloud service that does the CI work for you (mobile specific) check out cisimple https://www.cisimple.com

Full disclosure, I'm one of the founders.

Re:Xctool: a replacement for xcodebuild to build and test iO... by puls on Thursday May 02, 2013 @02:35PM (#5646343)
"Runs the same tests as Xcode.app."

If this works, it's huge. Mad excited about this.

Re:Xctool: a replacement for xcodebuild to build and test iO... by LegNeato on Thursday May 02, 2013 @05:02PM (#5647195)
It works, we use it here at Facebook
Re:Xctool: a replacement for xcodebuild to build and test iO... by gte910h on Thursday May 02, 2013 @05:56PM (#5647442)
Doc could use some install suggestions.
Re:Xctool: a replacement for xcodebuild to build and test iO... by jsankey on Thursday May 02, 2013 @07:09PM (#5647793)
Agreed. When first I encountered these differences with xcodebuild I found it incredible that the IDE and command line builds are not based on the same backend (indeed the IDE could just wrap the command line tools if well-designed).

Every project's main build should be scriptable -- for reproducible releases, continuous integration etc. I wonder how Apple internally builds things for release when something this simple doesn't work (maybe they don't use OCUnit?).

Re:Xctool: a replacement for xcodebuild to build and test iO... by stigi on Friday May 03, 2013 @09:22AM (#5649975)
I created a homebrew formula for it. The PR is not yet merged, but seems to be working quite fine: https://github.com/mxcl/homebrew/pull/19590
Re:Xctool: a replacement for xcodebuild to build and test iO... by tvon on Thursday May 02, 2013 @01:57PM (#5646153)
Nicely formatted output. I've been leaning towards using Rake tasks to handle this (there are a few gems out there to help), but I'll give this a whirl.
Re:Xctool: a replacement for xcodebuild to build and test iO... by bitserf on Thursday May 02, 2013 @10:29PM (#5648505)
Oh, wicked. Giving it a shot tonight :) Being able to automate this right makes me sleep better.
Re:Xctool: a replacement for xcodebuild to build and test iO... by ellicottvilleny on Thursday May 02, 2013 @09:29PM (#5648327)
Fantastic! Love it.