rez退出代码3是什么意思?

时间:2011-08-08 18:38:44

标签: macos exit-code

在尝试运行Rez时,OSX 10.6上的XCode项目由于退出代码3而无法构建。这是什么意思?我确定文件存在且所有路径都设置正确,并且具有有效内容。谷歌和AltaVista只提出了同样问题的其他人。

更一般地说,因为我有能力在OSX上创建错误,所以Rez的所有可能退出代码列表及其含义是什么?这些是所有Apples命令行程序中的标准吗?

更新: 这是Rez尝试编译的第一个.r文件,但是使用退出代码3停止:



// The About box and resources are created in PIUtilities.r.
// You can easily override them, if you like.

#define plugInName          "HackFormat"
#define plugInCopyrightYear "1957"
#define plugInDescription \
    "Hackup of sample plugin SimpleFormat to test plugin making procedures (DSW)"




// Dictionary (aete) resources:

#define vendorName          "DarenTheMonkey"
#define plugInAETEComment   "simpleformat example file format module"

#define plugInSuiteID       'sdK4'
#define plugInClassID       'simP'
#define plugInEventID       typeNull // must be this


#include "PIDefines.h"
#include "Types.r"
#include "SysTypes.r"
#include "PIGeneral.r"
#include "PIUtilities.r"
#include "PITerminology.h"
#include "PIActions.h"
#include "HackFormatTerminology.h"  // Terminology for plug-in.

//-------------------------------------------------------------------------------
//  PiPL resource
//-------------------------------------------------------------------------------

resource 'PiPL' (ResourceID, plugInName " PiPL", purgeable)
{
    {
        Kind { ImageFormat },
        Name { plugInName },
        Version { (latestFormatVersion ",                            /* must be exactly this */
                keyInherits,                                /* must be keyInherits */
                classFormat,                                /* parent: Format, Import, Export */
                "parent class format",                      /* optional description */
                flagsSingleProperty,                        /* if properties, list below */

                "foo",
                keyMyFoo,
                typeBoolean,
                "foobar",
                flagsSingleProperty,

                "bar",
                keyMyBar,
                typeBoolean,
                "foobar",
                flagsSingleProperty
                /* no properties */
            },
            {}, /* elements (not supported) */
            /* class descriptions */
        },
        {}, /* comparison ops (not supported) */
        {}  /* any enumerations */
    }
};


resource StringResource (kHistoryEntry, "History", purgeable)
{
    plugInName ": ref num=^0."
};


// end file

,从xcode Build Results窗口,(仅适用于第一个.r文件;其余相同)

Build HackFormat of project hackformat with configuration Debug

Check dependencies

[WARN]Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'Info.plist'.

Rez tmp/hackformat.build/Debug/HackFormat.build/ResourceManagerResources/Objects/HackFormat-A69F02213383561.rsrc HackFormat.r
cd /home/dwilson/proj/PSPlug/hackformat
/Developer/Tools/Rez -o /home/dwilson/proj/PSPlug/hackformat/tmp/hackformat.build/Debug/HackFormat.build/ResourceManagerResources/Objects/HackFormat-A69F02213383561.rsrc -d SystemSevenOrLater=1 -useDF -script Roman -arch x86_64 -i /home/dwilson/proj/PSPlug/hackformat/Debug -i /home/dwilson/proj/PSPlug/hackformat/sampcomm -i sampcomm -i /home/dwilson/proj/PSPlug/hackformat -i /home/dwilson/proj/PSPlug/hackformat/sampcomm -i /home/dwilson/SW/SDK/AdobePS/adobe_photoshop_cs5_sdk_mac/photoshopapi/photoshop -i /home/dwilson/SW/SDK/AdobePS/adobe_photoshop_cs5_sdk_mac/photoshopapi/pica_sp -i /Developer/Headers/FlatCarbon -i /home/dwilson/SW/SDK/AdobePS/adobe_photoshop_cs5_sdk_mac/photoshopapi/resources -i /home/dwilson/proj/PSPlug/hackformat/Debug -i /home/dwilson/proj/PSPlug/hackformat/Debug/include -i sampcomm /home/dwilson/proj/PSPlug/hackformat/../../../common/includes/MachOMacrezXcode.h -isysroot /Developer/SDKs/MacOSX10.5.sdk /home/dwilson/proj/PSPlug/hackformat/HackFormat.r

### /Developer/Tools/Rez - SysError 0 during open of "/home/dwilson/proj/PSPlug/hackformat/../../../common/includes/MachOMacrezXcode.h".
Fatal Error!
### /Developer/Tools/Rez - Fatal Error, can't recover.
/home/dwilson/proj/PSPlug/hackformat/../../../common/includes/MachOMacrezXcode.h: ### /Developer/Tools/Rez - Since errors occurred, /home/dwilson/proj/PSPlug/hackformat/tmp/hackformat.build/Debug/HackFormat.build/ResourceManagerResources/Objects/HackFormat-A69F02213383561.rsrc's resource fork was not written.
Command /Developer/Tools/Rez failed with exit code 3


3 个答案:

答案 0 :(得分:2)

来自Rez man page

  

Rez可以返回以下状态代码:

     

0没有错误
  参数中的1个错误
  资源描述文件中的2语法错误
  3 I / O或程序错误

答案 1 :(得分:0)

男人我只是在这上面标记。我得到Command /Developer/usr/bin/Rez failed with exit code 3

我一直在寻找一个没有任何运气的退出代码的完整列表。或至少有关退出代码3的任何信息。

更新:我刚刚在这里http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/codesign.1.html找到了这个(我不确定这是否适用于xcode,因为它似乎是darwin文档的一部分而且我对它知之甚少):< / p> 如果所有操作都成功,则

codesign退出0。这表示所有代码都已签名或所有代码      根据要求正确验证。如果签名或验证操作失败,则退出代码为1.退出      代码2表示无效的参数或参数。

Exit code 3 indicates that during verification, all
     path(s) were properly signed but at least one of them failed to satisfy the requirement specified with
     the -R option.

 For verification, all path arguments are always investigated before the program exits.  For all other
 operations, the program exits upon the first error encountered, and any further path arguments are
 ignored, unless the --continue option was specified, in which case codesign will defer the failure exit
 until after it has attempted to process all path arguments in turn.

我再次不确定但似乎是权限问题。将进一步调查!

答案 2 :(得分:0)

我发现了问题!在项目设置中,Rez前缀文件中存在错误路径。它应该是文件MachOMacrezXcode.h的路径。现在很明显,当我查看构建结果时,找不到此文件。我已将此文件复制到我的项目源中(因为我不想依赖原始示例代码,而是从源代码中获取)并修复了路径。