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

Set SKIP_INSTALL=YES for all generated targets #3188

Merged
merged 4 commits into from
Feb 25, 2015

Conversation

mrackwitz
Copy link
Member

Fixes #3007.

@segiddins
Copy link
Member

Is there a chance this will have unintended side effects when using Pods in a framework, or something?

@mrackwitz
Copy link
Member Author

This could influence every build script, which rely on the build paths of generated build products.
If SKIP_INSTALL=YES and DEPLOYMENT_LOCATION=YES, which is implied by ACTION=install, which is the verb given on the CLI to xcodebuild, then the build product is placed into $TARGET_TEMP_DIR/UninstalledProducts.
Usually, this happens for a framework or library target only when the target is build as an implicit target dependency of an app target, which the user archives from Xcode.
This does not apply for cocoapods-packager.

@segiddins
Copy link
Member

@mrackwitz I'm not sure you've answered my question, which is, will this break things when you use CocoaPods with a framework target?

@mrackwitz
Copy link
Member Author

It could because the AggregateXCConfig is shared with the user target.
But it's only a matter if the user actually want to install the framework to the system's framework paths ($(LOCAL_LIBRARY_DIR)/Frameworks) or use INSTALL_PATH in a different way, which applies probably only in rare cases.
We could avoid that by inlining the build setting to Pods.xcodeproj.

@segiddins
Copy link
Member

So are you saying I shouldn't merge this PR now?

mrackwitz added a commit to mrackwitz/CocoaPods that referenced this pull request Feb 24, 2015
@@ -67,6 +67,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`

##### Bug Fixes

* Set `SKIP_INSTALL=YES` for all generated targets to avoid producing
*Generic Xcode Archives* on Archive.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two spaces

@segiddins
Copy link
Member

@kylef I'll merge if this gets your 👍

segiddins added a commit that referenced this pull request Feb 25, 2015
Set SKIP_INSTALL=YES for all generated targets
@segiddins segiddins merged commit 5855a0d into CocoaPods:master Feb 25, 2015
@mrackwitz mrackwitz deleted the mr-skip-install branch May 4, 2015 09:38
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

Successfully merging this pull request may close these issues.

0.36.0.beta.1 breaks archiving project as Mac App Archive
2 participants