From: Jay Freeman (saurik) Date: Sat, 13 Jan 2018 18:31:04 +0000 (-0800) Subject: Fix compilation via macOS 10.12 targetting iOS 11. X-Git-Tag: v2.1.0~5 X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/7b048e81b44e9bfa427bb97cfbd6b1aa7c078ff1 Fix compilation via macOS 10.12 targetting iOS 11. --- diff --git a/ldid.cpp b/ldid.cpp index 6a16aa8..7d933b6 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -2405,7 +2405,7 @@ static Hash Sign(const uint8_t *prefix, size_t size, std::streambuf &buffer, Has auto data(temp.str()); HashProxy proxy(hash, save); - return Sign(data.data(), data.size(), proxy, identifier, entitlements, requirements, key, slots, flags, platform, percent); + return Sign(data.data(), data.size(), proxy, identifier, entitlements, requirements, key, slots, flags, platform, progress); } Bundle Sign(const std::string &root, Folder &folder, const std::string &key, std::map &remote, const std::string &requirements, const Functor &alter, const Progress &progress) { diff --git a/make.sh b/make.sh index d574ae7..d88a8b0 100755 --- a/make.sh +++ b/make.sh @@ -10,16 +10,16 @@ else shift fi +export DEVELOPER_DIR=/Applications/Xcode-5.1.1.app + if "${ios}"; then out=ios -sudo xcode-select --switch /Applications/Xcode-4.6.3.app -flags=(cycc -- -miphoneos-version-min=2.0 -arch armv6) +flags=(cycc -- -miphoneos-version-min=2.0 -arch armv6 -arch arm64) else out=out -sudo xcode-select --switch /Applications/Xcode-5.1.1.app if which xcrun &>/dev/null; then flags=(xcrun -sdk macosx g++)