Skip to content

Instantly share code, notes, and snippets.

@nikias
nikias / limd-build-macos.sh
Last active Jan 25, 2023
Build libimobiledevice stack for macOS with ease
View limd-build-macos.sh
#!/bin/bash
# If you like this script and my work on libimobiledevice, please
# consider becoming a patron at https://patreon.com/nikias - Thanks <3
REV=1.0.10
if test -x "`which tput`"; then
ncolors=`tput colors`
if test -n "$ncolors" && test $ncolors -ge 8; then
View keybase.md

Keybase proof

I hereby claim:

  • I am nikias on github.
  • I am pimskeks (https://keybase.io/pimskeks) on keybase.
  • I have a public key ASC1RzBJDf07VVAl2X9geXfcwN7kQKuZwvk-wRmGwXMd5Ao

To claim this, I am signing this object:

View zlib-compile-error-fix.diff
diff --git a/configure.ac b/configure.ac
index 2b31499..006d85d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,6 +41,7 @@ PKG_CHECK_MODULES(libplist, libplist >= $LIBPLIST_VERSION)
PKG_CHECK_MODULES(libzip, libzip >= $LIBZIP_VERSION)
PKG_CHECK_MODULES(libcurl, libcurl >= $LIBCURL_VERSION)
PKG_CHECK_MODULES(openssl, openssl >= $OPENSSL_VERSION)
+PKG_CHECK_MODULES(zlib, zlib)
View win32sleepfix.diff
diff --git a/configure.ac b/configure.ac
index 0a405e0..f44e26c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,7 +64,7 @@ AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
-AC_CHECK_FUNCS([strcasecmp strdup strerror strndup])
+AC_CHECK_FUNCS([strcasecmp strdup strerror strndup sleep])
View ideviceprovision-fix.diff
diff --git a/tools/ideviceprovision.c b/tools/ideviceprovision.c
index 26ec418..56683b5 100644
--- a/tools/ideviceprovision.c
+++ b/tools/ideviceprovision.c
@@ -87,30 +87,47 @@ enum {
static void asn1_next_item(unsigned char** p)
{
- if (*(*p+1) & 0x80) {
- *p += 4;
View simple.c
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>
#include <libimobiledevice/libimobiledevice.h>
#include <libimobiledevice/lockdown.h>
#ifdef WIN32
#include <windows.h>