Browse Source

Fix install path/dylib install name for DynamicFramework targets. (#16)

Nikita Lutsenko 9 years ago
parent
commit
a381a3f1b3
1 changed files with 9 additions and 1 deletions
  1. 9 1
      Configurations/Product/DynamicFramework.xcconfig

+ 9 - 1
Configurations/Product/DynamicFramework.xcconfig

@@ -25,8 +25,16 @@ GCC_DYNAMIC_NO_PIC = NO
 // Don't include in an xcarchive
 SKIP_INSTALL = YES
 
+// Don't install in any specific location
+INSTALL_PATH =
+
 // Do not require code signing
 CODE_SIGNING_REQUIRED = NO
 
 // Disable code signing
-CODE_SIGN_IDENTITY = 
+CODE_SIGN_IDENTITY =
+
+// Enables the framework to be included from any location as long as the loader’s runpath search paths includes it.
+// For example from an application bundle (inside the "Frameworks" folder) or shared folder.
+LD_DYLIB_INSTALL_NAME = @rpath/$(PRODUCT_NAME).$(WRAPPER_EXTENSION)/$(PRODUCT_NAME)
+DYLIB_INSTALL_NAME_BASE = @rpath