Skip to content

EarlGrey

bootstraponline edited this page Mar 16, 2017 · 16 revisions

React Native

  • Create shared scheme for React
  • Add React to Target Dependencies of test target build phases

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
UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)

Clone this wiki locally