Skip to content

Commit

Permalink
Fixes the warnings that are generated by Xcode when building objc_lib…
Browse files Browse the repository at this point in the history
…rary targets that have dylibs associated to them.

--
MOS_MIGRATED_REVID=89536149
  • Loading branch information
Googler authored and damienmg committed Mar 26, 2015
1 parent b36a577 commit a258fa8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,10 @@ private static NSArray frameworkSearchPaths(Iterable<String> frameworks) {
private static PBXFrameworksBuildPhase buildLibraryInfo(
LibraryObjects libraryObjects, TargetControl target) {
BuildPhaseBuilder builder = libraryObjects.newBuildPhase();
for (String dylib : target.getSdkDylibList()) {
builder.addDylib(dylib);
if (Containing.item(PRODUCT_TYPES_THAT_HAVE_A_BINARY, productType(target))) {
for (String dylib : target.getSdkDylibList()) {
builder.addDylib(dylib);
}
}
for (String sdkFramework : target.getSdkFrameworkList()) {
builder.addSdkFramework(sdkFramework);
Expand Down

0 comments on commit a258fa8

Please sign in to comment.