Re: Rez include problem
Re: Rez include problem
- Subject: Re: Rez include problem
- From: Chris Espinosa <email@hidden>
- Date: Mon, 27 Mar 2006 14:17:06 -0800
On Mar 26, 2006, at 3:47 PM, Allen Cronce wrote: I'm running into an error while trying to import a specific resource from a CodeWarrior generated CFM shared library (where the code is in the data fork and the resources are in the resource fork), and save it in the target as another resource type.
Here's the failing line from the .r file:
include "MyCarbonLib" 'cfrg' (0) AS 'XFRG' (0);
What is supposed to happen is the 'cfrg' 0 resource should be copied from the "MyCarbonLib" file and saved as an 'XFRG' resource in the target. This works with CodeWarrior. But under Xcode 2.2.1, I get the following error:
/Developer/Tools/Rez - SysError -43, resource file "MyCarbonLib" not found.
I've verified that the MyCarbonLib file is included in the project. And I've tried adding the path to the file's parent directory in the REZ_SEARCH_PATHS option. But I still get this error.
Maybe the rez tool is expecting data fork based resources instead of traditional resource files? But if that's the case, it would be nice to get some error other than "file not found".
That is most likely it. Unfortunately the underlying file system reports "missing fork" as "file not found". In a future version we'll try both forks, but at this point it biases to the same fork as the destination fork, which by default in Xcode is the data fork. I suppose I could derez the 'cfrg' resource from the library, then include the resulting .r file in the Xcode project. But since it's dynamically created when CW makes the library, that's a bit cumbersome. I guess I could automate this in our build process somehow, but I'm trying to avoid a second career as a build engineer ;-)
If anyone has some insight as to the actual nature of the problem or other suggestions for a work around, I'd appreciate it.
We strongly recommend moving all .rsrc files to data-fork resource files for use in Xcode. If you could rework your CodeWarrior project to generate an all-data-fork cfrg resource file, that would probably make everything easier.
Chris |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden