Skip to content

Commit

Permalink
Merge pull request #2 from wix/show-error-on-detox-dlopen-failure
Browse files Browse the repository at this point in the history
log error when Detox.framework dlopen fails
  • Loading branch information
Tal Kol authored Aug 1, 2016
2 parents bca835f + 634bec5 commit a339bcd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion detox/ios/Detox/DetoxLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ static inline void detoxConditionalInit()
dlclose(handle);
}
}

else
{
NSLog(@"[%s] main: Unable to open library: %s\n", __FILE__, dlerror());
}
if (DetoxManager != nil)
{
[[DetoxManager sharedInstance] connectToServer:detoxServer withSessionId:detoxSessionId];
Expand Down
6 changes: 6 additions & 0 deletions detox/ios/EarlGrey/EarlGrey.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,8 @@
"-ObjC",
"-framework",
IOKit,
"-weak_framework",
XCTest,
);
PRODUCT_BUNDLE_IDENTIFIER = com.google.earlgrey.EarlGrey;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1046,6 +1048,8 @@
"-ObjC",
"-framework",
IOKit,
"-weak_framework",
XCTest,
);
PRODUCT_BUNDLE_IDENTIFIER = com.google.earlgrey.EarlGrey;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1087,6 +1091,7 @@
MODULEMAP_FILE = "";
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.google.earlgrey.EarlGrey;
PRODUCT_MODULE_NAME = EarlGrey;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -1133,6 +1138,7 @@
MODULEMAP_FILE = "";
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.google.earlgrey.EarlGrey;
PRODUCT_MODULE_NAME = EarlGrey;
SDKROOT = iphoneos;
Expand Down

0 comments on commit a339bcd

Please sign in to comment.