Skip to content

EarlGrey

bootstraponline edited this page Mar 14, 2017 · 16 revisions

Custom EarlGrey framework

  • Change custom framework's DYLIB_INSTALL_NAME_BASE from @rpath to @executable_path
    • CustomFramework target → Build SettingsDynamic Library Install Name Base
  • Add custom framework to CopyFilesBuildPhase in the app test target
    • EarlGrey.framework must also be in this Copy Files phase
  • Update DYLD_INSERT_LIBRARIES environment variable in the test target scheme to @executable_path/EarlGrey.framework/EarlGrey:@executable_path/CustomEarlGrey.framework/CustomEarlGrey
    • ProductSchemeManage Schemes...Edit...TestArgumentsEnvironment Variables

Clone this wiki locally