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

Best practice for pod in multiple targets #3313

Closed
damienpontifex opened this issue Mar 24, 2015 · 1 comment
Closed

Best practice for pod in multiple targets #3313

damienpontifex opened this issue Mar 24, 2015 · 1 comment

Comments

@damienpontifex
Copy link

I require a pod to be built and be available in multiple targets. The targets are:

  • An iOS app
  • Cocoa Touch Framework (gets linked via Embedded Binaries in Xcode)

I see a couple of ways of doing it

  1. In my Podfile, define the pod against both targets and install as such
  2. Define the pod only against my Framework target and expose the pod framework publicly inside that to use in my iOS app somehow

I am enquiring if anyone has any guidelines/experience for the best way to achieve this. I have been running into issues with option 2 above resulting in an error of 'No such module' in my iOS app. I was able to resolve this by adding to the Framework Search Paths of my iOS app $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods- which then resolved the built module.

If I do option 1, then on archive I get errors for the specific pod target frameworks of 'invalid or unsupported format for signature'

I would have thought it could be contained within the Cocoa Touch Framework target and when linked with my app, be also available if it was made public somehow.

@orta
Copy link
Member

orta commented Mar 27, 2015

Best practice questions should be taken to Stack Overflow, where you will get more eyes on it, with an incentive for readers to post opinions. We keep github issues reserved for feature requests and bug reports. Sorry.

@orta orta closed this as completed Mar 27, 2015
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

2 participants