Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle file does not get created in Products folder #4

Open
agarcian opened this issue Sep 16, 2012 · 2 comments
Open

Bundle file does not get created in Products folder #4

agarcian opened this issue Sep 16, 2012 · 2 comments

Comments

@agarcian
Copy link

I am following your tutorial and I am having the issue that the MyLibraryResource.bundle file does not get created in the right folder so it gets recognized by Xcode. The Products/MyLibraryResource.bundle file shows up in red in Xcode.

any suggestions?

Thanks for your work and the detailed tutorials.

Regards.

@pburleson
Copy link

I ran into this problem when I was trying to build for simulator instead of device for the first time. Following the tutorial, when the bundle is dragged to the Copy Resources phase of the iPhone app, the absolute path to the product is used. This leads to problems when building for the simulator, as the product path is for device.

I was able to fix this by finding the bundle in the iPhone app (it gets added to the iPhone app project when you drag it to the Copy Resources phase). Click on it it open the File Inspector (cmd-opt-1). Change the location dropdown to "Relative to Build Products".

The item stays red jf you're just building for simulator, but, behind the scenes the Copy Resources phase picks up the right location and copies things as expected.

It took me a while to figure that one out.

@deepp
Copy link

deepp commented May 5, 2015

As told by pburleson,
I was trying to drag the resource bundle and drop it on copy resource phase but it was giving error that file not found.

But once i could manage to add it in a project where am using my static library as subproject.
But after updating my static library neither i could add resource bundle nor create it.

Please provide any workout or suggestion.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants