This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| When you get an error code in with the domain kCFStreamErrorDomainSSL, you can generally find the error codes in SecureTransport.h which is in /System/Library/Frameworks/Security.framework. Here are the error codes: | |
| enum { | |
| errSSLProtocol = -9800, /* SSL protocol error */ | |
| errSSLNegotiation = -9801, /* Cipher Suite negotiation failure */ | |
| errSSLFatalAlert = -9802, /* Fatal alert */ | |
| errSSLWouldBlock = -9803, /* I/O would block (not fatal) */ | |
| errSSLSessionNotFound = -9804, /* attempt to restore an unknown session */ | |
| errSSLClosedGraceful = -9805, /* connection closed gracefully */ | |
| errSSLClosedAbort = -9806, /* connection closed via error */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ADB_PATH="/Users/lee/Library/Android/sdk/platform-tools" | |
| PACKAGE_NAME="com.yourcompany.app" | |
| DB_NAME="default.realm" | |
| DESTINATION_PATH="/Users/lee/Downloads/${DB_NAME}" | |
| NOT_PRESENT="List of devices attached" | |
| ADB_FOUND=`${ADB_PATH}/adb devices | tail -2 | head -1 | cut -f 1 | sed 's/ *$//g'` | |
| if [[ ${ADB_FOUND} == ${NOT_PRESENT} ]]; then | |
| echo "Make sure a device is connected" | |
| else |
OlderNewer