Permalink
Browse files

Finalizing 3

  • Loading branch information...
1 parent e59f6c8 commit 1e2b0c2ac629c8825b6f6fe9be65311a6c20d9c2 @couchdeveloper committed Jun 6, 2012
Showing with 18 additions and 10 deletions.
  1. +12 −10 Examples/FoundationExamples/FoundationExamples.xcodeproj/project.pbxproj
  2. +6 −0 INSTALL.md
@@ -621,12 +621,12 @@
"$(inherited)",
"\"$(SRCROOT)/../../../../../Library/Developer/Xcode/DerivedData/JPJson-ejutwqptiebgcjcabedtzqzwdhuj/Build/Products/Debug\"",
);
+ HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)\"";
OTHER_LDFLAGS = (
"-ObjC",
"-lstdc++",
);
PRODUCT_NAME = "$(TARGET_NAME)";
- USER_HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)";
};
name = Debug;
};
@@ -637,12 +637,12 @@
"$(inherited)",
"\"$(SRCROOT)/../../../../../Library/Developer/Xcode/DerivedData/JPJson-ejutwqptiebgcjcabedtzqzwdhuj/Build/Products/Debug\"",
);
+ HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)\"";
OTHER_LDFLAGS = (
"-ObjC",
"-lstdc++",
);
PRODUCT_NAME = "$(TARGET_NAME)";
- USER_HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)";
};
name = Release;
};
@@ -655,12 +655,12 @@
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Sample4/Sample4-Prefix.pch";
+ HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)\"";
OTHER_LDFLAGS = (
"-ObjC",
"-lstdc++",
);
PRODUCT_NAME = "$(TARGET_NAME)";
- USER_HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)";
};
name = Debug;
};
@@ -673,12 +673,12 @@
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Sample4/Sample4-Prefix.pch";
+ HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)\"";
OTHER_LDFLAGS = (
"-ObjC",
"-lstdc++",
);
PRODUCT_NAME = "$(TARGET_NAME)";
- USER_HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)";
};
name = Release;
};
@@ -691,12 +691,12 @@
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Sample5/Sample5-Prefix.pch";
+ HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)\"";
OTHER_LDFLAGS = (
"-ObjC",
"-lstdc++",
);
PRODUCT_NAME = "$(TARGET_NAME)";
- USER_HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)";
};
name = Debug;
};
@@ -709,12 +709,12 @@
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Sample5/Sample5-Prefix.pch";
+ HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)\"";
OTHER_LDFLAGS = (
"-ObjC",
"-lstdc++",
);
PRODUCT_NAME = "$(TARGET_NAME)";
- USER_HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)";
};
name = Release;
};
@@ -778,6 +778,7 @@
"$(inherited)",
);
GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)\"";
OTHER_LDFLAGS = (
"-lstdc++",
"-ObjC",
@@ -798,6 +799,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Sample6/Sample6-Prefix.pch";
GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)\"";
OTHER_LDFLAGS = (
"-lstdc++",
"-ObjC",
@@ -815,12 +817,12 @@
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Sample2/Sample2-Prefix.pch";
+ HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)\"";
OTHER_LDFLAGS = (
"-lstdc++",
"-ObjC",
);
PRODUCT_NAME = "$(TARGET_NAME)";
- USER_HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)";
};
name = Debug;
};
@@ -834,12 +836,12 @@
GCC_OPTIMIZATION_LEVEL = 3;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Sample2/Sample2-Prefix.pch";
+ HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)\"";
OTHER_LDFLAGS = (
"-lstdc++",
"-ObjC",
);
PRODUCT_NAME = "$(TARGET_NAME)";
- USER_HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)";
};
name = Release;
};
@@ -909,13 +911,13 @@
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Sample1/Sample1-Prefix.pch";
+ HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)\"";
OTHER_CFLAGS = "-v";
OTHER_LDFLAGS = (
"-lstdc++",
"-ObjC",
);
PRODUCT_NAME = "$(TARGET_NAME)";
- USER_HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)";
};
name = Debug;
};
@@ -929,13 +931,13 @@
GCC_OPTIMIZATION_LEVEL = 3;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Sample1/Sample1-Prefix.pch";
+ HEADER_SEARCH_PATHS = "\"$(BUILT_PRODUCTS_DIR)\"";
OTHER_CFLAGS = "-v";
OTHER_LDFLAGS = (
"-lstdc++",
"-ObjC",
);
PRODUCT_NAME = "$(TARGET_NAME)";
- USER_HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)";
};
name = Release;
};
View
@@ -189,6 +189,12 @@ In the target build settings of the client add the build settings variable `BUIL
e.g.:
`HEADER_SEARCH_PATHS = $(BUILT_PRODUCTS_DIR) my/other/path/`
+Hint: you might need to wrap a path variable in double quotes if this path contains spaces, e.g.:
+`HEADER_SEARCH_PATHS = "$(BUILT_PRODUCTS_DIR)" "my/other path/"`
+
+In general, using quotes for paths variables is a good idea if you don't know the path a priori.
+
+
This is appropriate for building, except when linking against a **static library** and creating an Archive. Apparently, at the time of writing there is a bug in Xcode Version 4.3.1 (4E1019) here. So, we need to apply a workaround in order to be able to create an Archive successfully:
Add a header search path `$(OBJROOT)/UninstalledProducts` to the target build setting of the client. This header search path will let the compiler locate the public headers of static libraries when creating an Archive.

0 comments on commit 1e2b0c2

Please sign in to comment.