Q:

How to access the Resources of Xcode Plugin

I am working on a Xcode plugin which will add some files to the Project which is currently open.
I need to access those files for XcodePlugin bundle but when I try doing that, It is referencing to the Xcode Bundle rather then Xcode Plugin Bundle.
Is there any way to access XcodePlugin bundle resources.
Regards,
Amit.

A:

I was able to figure out the issue.
We have to use the following code to access the resources of plugin bundle.
NSString *path=  [[NSBundle bundleWithIdentifier:@"com.xxxxxxxxx.yyyyyyy"] pathForResource:@"XXXXXXXX" ofType:@"Z"];

Hope so it will help anyone working on Plugins and dealing with resource of it.

