Rez 的退出代码 3 的含义是什么?

发布于 2024-11-28 15:51:27 字数 4450 浏览 0 评论 0原文

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

更一般地说,由于我有在 OSX 上创建错误的天赋,是否有 Rez 所有可能的退出代码及其含义的列表?这些是所有苹果命令行程序的标准吗?

更新: 这是 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


An XCode project on OSX 10.6 fails building due to exit code 3 when trying to run Rez. What does this mean? I'm sure the files exist and all paths are set correctly, and have valid content. Google and AltaVista turn up nothing but others with the same question.

More generally, since I have a talent for creating errors on OSX, is there a list of all possible exit codes for Rez and what they mean? Are these standard among all of Apples command line programs?

UPDATE:
Here's the first .r file that Rez tries to compile, but stops with exit code 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

and, from the xcode Build Results window, (just for this first .r file; rest are same)

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


如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

挽容 2024-12-05 15:51:28

来自 Rez 手册页

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

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

From the Rez man page:

Rez can return the following status codes:

0 no errors
1 error in parameters
2 syntax error in resource description file
3 I/O or program error

表情可笑 2024-12-05 15:51:28

伙计,我只是在跟踪这件事。我得到 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 文档的一部分,我对此知之甚少):

如果所有操作成功,则 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.

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

man I'm just tagging along on this. I get Command /Developer/usr/bin/Rez failed with exit code 3

I've been looking everywhere for a comprehensive list of exit codes without any luck. Or at least any information on exit code 3.

Update: I just found this in here http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/codesign.1.html (I'm not sure if this applies in any way to xcode as it seems to be part of the darwin documentation and I know very little about it):

codesign exits 0 if all operations succeed. This indicates that all codes were signed, or all codes
verified properly as requested. If a signing or verification operation fails, the exit code is 1. Exit
code 2 indicates invalid arguments or parameters.

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.

Again I'm not sure but seems to be a permissions problem. Will investigate further!

信愁 2024-12-05 15:51:28

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

I have found the problem! In Project Setting, there was a bad path in Rez Prefix File. It's supposed to be a path to a file MachOMacrezXcode.h. Now it is obvious that this file wasn't being found when I look at the Build Results. I have copied this file into my project source (since I want no dependencies on the original sample code I'm taking source from) and fixed the path.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文