site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com User-agent: Postbox 1.0b14 (Windows/2009072715) In the end the basic form of the command line that worked was this: Paul On Aug 11, 2009, at 8:34 PM, Nathan Herring wrote: 2009-08-11 20:27:55.125 packagemaker[840:10b] Setting to : 0 (null) 2009-08-11 20:27:55.128 packagemaker[840:10b] Setting to : 0 com.jigsawlearning.teachtown.pkg 2009-08-11 20:27:55.147 packagemaker[840:10b] Setting to : 0 com.jigsawlearning.teachtown.pkg 2009-08-11 20:27:55.149 packagemaker[840:10b] relocate: (null) 0 2009-08-11 20:27:55.150 packagemaker[840:10b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSXMLDocument initWithXMLString:options:error:]: nil argument' 2009-08-11 20:27:55.150 packagemaker[840:10b] Stack: ( 2474242027, 2528251451, 2474241483, 2474241546, 2445820292, 453371, 447720, 436209, 435510, 9986, 9918 ) Trace/BPT trap Welcome to packagemaker cli. Eli _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/spam%40pjwhams.co.uk _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... I had a variety of problems for a long time when I tries to use the CLI for PackageMaker. What's the actual command you use? I found it was *incredibly* sensitive to the arguments you used, and if it wasn't happy it would just crash, rather than giving you any kind of sensible warning. I found that if the input (pmdoc) and output (pkg) names were different then it wasn't happy. It will also crash if you omit the -i parameter. I found that one of our scripts had '-p blah.pkg' rather than '-o blah.pkg' which maybe was a relic from previous versions. There were also cases where the pmdoc file preserved some filenames as absolute rather then relative so that the build failed when it was performed on a different machine. /Developer/usr/bin/packagemaker -v --doc blah.pmdoc -o blah.pkg -i com.company.blah Filed as radar:// 6678946 <https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/89/wo/W2yWJmWceEbM7YL2pYCt9g/13.79.28.0.9> Eli Bach wrote: While trying to use the commandline version of packagemaker with a premade .pmdoc file, I get the following in the terminal: I've attached the crash report. It works fine building the package within the UI.
From what I can tell, EVERYBODY gets this crash when they first try to use the cli tool. It seems the tool has seen remarkably little testing within Apple, or else this crash is considered a right of passage... Anyway, you can google for 'packagemaker cli crash', and see a whole bunch of reports on this thing. Most likely, you can get past this specific problem by adding '--id yourpackageidentifier' to the options passed to the tool. Yes, even though you've already typed it in within the GUI. I suppose the tool just barely works so as to encourage you to not use it unless you REALLY have to (ie, switch to a drag install, or to write your own installer [which if you do, you can add uninstall while your at it]). This email sent to spam@pjwhams.co.uk
This email sent to site_archiver@lists.apple.com