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

Already on GitHub? Sign in to your account

A spec with only headers and/or static library cannot compile #225

Closed
siuying opened this Issue Apr 25, 2012 · 4 comments

Comments

Projects
None yet
2 participants
Contributor

siuying commented Apr 25, 2012

Consider the spec file https://github.com/CocoaPods/Specs/blob/0.6/AdMob/6.0.1/AdMob.podspec

This spec contains no sources, only headers and static library.

If a podfile contains only this kind of spec, it will not compile.

To fix this, Pod could automatically add a small source file.

Reference: #98

Contributor

siuying commented Apr 25, 2012

Maybe this could be implemented by for every pod, automatically add a dependency with something like "CocoaPodsCore"?

Owner

alloy commented Apr 25, 2012

No I think every Pods.xcodeproj should have a dummy source file, which is then compiled into each Pods target.

Adding a dependency would mean it gets listed in everybody’s Podfile.lock file.

Contributor

siuying commented Apr 25, 2012

Adding a dependency would mean it gets listed in everybody’s Podfile.lock file.

Oh this is a good point.

Contributor

siuying commented Apr 27, 2012

@alloy Please help review if this is okay!

@siuying siuying closed this Apr 27, 2012

jzapater pushed a commit to jzapater/CocoaPods that referenced this issue Sep 17, 2013

@siuying siuying referenced this issue in CocoaPods/cocoapods-packager May 9, 2014

Closed

Generate an embedded framework or framework for a spec #1

4 of 5 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment