diff --git a/source/sideload/package.d b/source/sideload/package.d index d4e2570..03384ee 100644 --- a/source/sideload/package.d +++ b/source/sideload/package.d @@ -161,7 +161,7 @@ void sideloadFull( "PackageType", "Developer" ); - auto remoteAppFolder = stagingDir.buildPath(baseName(app.bundleDir)); + auto remoteAppFolder = stagingDir.buildPath(baseName(app.bundleDir)).toForwardSlashes(); if (afcClient.getFileInfo(remoteAppFolder, props) != AFCError.AFC_E_SUCCESS) { // The directory does not exist, so let's create it! afcClient.makeDirectory(remoteAppFolder).assertSuccess(); @@ -172,7 +172,7 @@ void sideloadFull( auto transferStep = 3 / (STEP_COUNT * files.length * 4); foreach (f; files) { - auto remotePath = remoteAppFolder.buildPath(f.asRelativePath(app.bundleDir).array()); + auto remotePath = remoteAppFolder.buildPath(f.asRelativePath(app.bundleDir).array()).toForwardSlashes();; if (f.isDir()) { afcClient.makeDirectory(remotePath); } else { @@ -230,6 +230,18 @@ void sideloadFull( progressCallback(1.0, "Done!"); } +pragma(inline, true) +private string toForwardSlashes(string s) { + version (Windows) { + foreach (ref c; remoteAppFolder) { + if (c == '\\') { + c = '/'; + } + } + } + return s; +} + class NoAppIdRemainingException: Exception { this(DateTime minExpirationDate, string file = __FILE__, int line = __LINE__) { super(format!"Cannot make any more app ID, you have to wait until %s to get a new app ID"(minExpirationDate.toSimpleString()), file, line); diff --git a/source/usbmuxd/c.d b/source/usbmuxd/c.d index 69cc8f5..5eff4b4 100644 --- a/source/usbmuxd/c.d +++ b/source/usbmuxd/c.d @@ -30,7 +30,7 @@ version (Windows) { enum libusbmuxd = LibImport("usbmuxd.dll"); } } else version (OSX) { - enum libusbmuxd = LibImport("libusbmuxd-2.0.6.dylib"); + enum libusbmuxd = LibImport("libusbmuxd.dylib"); } else { enum libusbmuxd = LibImport("libusbmuxd-2.0.so.6", "libusbmuxd.so.2"); }