Hopefully improved this

- Replaced ac2 with ipatool
- Fixed paths so it doesn't confuse users
- Make people add an `out` folder in _compile
- Small tutorial for Procursus ldid
This commit is contained in:
flower 2022-10-07 02:16:08 -07:00
parent 19647f2e66
commit 782fd8babc
1 changed files with 28 additions and 9 deletions

View File

@ -2,22 +2,41 @@
**Supported devices:** A12-A15, 14.0 - 15.4.1 (15.5b4)
## Compiling pwned IPA (currently requires a Mac) (Needs THEOS and 14.5 sdk installed)
## Compiling pwned IPA (currently requires a Mac) (Needs [THEOS](https://theos.dev/docs/installation-macos) and [14.5 sdk](https://github.com/theos/sdks) installed)
1. Get a stock "Apple Developer" IPA (this app: https://apps.apple.com/de/app/apple-developer/id640199958 (sorry german link but you get the idea)), you can do this using Apple Configurator (install it twice to your device and when it gives you the already exists error, copy the IPA from `~/Library/Group\ Containers/<some_uuid>.group.com.apple.configurator/Library/Caches/Assets/TemporaryItems/MobileApps` to somewhere else and then cancel the installation).
0. Make sure Xcode and Command Line Tools are installed.
2. Put it into _compile/target/Developer.ipa
1. Do `git clone https://github.com/opa334/TrollStore`
3. Grab pwnify_compiled from Fugu14 repo (https://github.com/LinusHenze/Fugu14/blob/master/tools/pwnify_compiled), sign it using codesign (`codesign -s - <path/to/pwnify_compiled>`) and put it at _compile/pwnify_compiled
2. Get a stock "Apple Developer" IPA using [ipatool](https://github.com/majd/ipatool/releases/tag/v1.1.4) (iOS 15 only)
- Unzip, then do `chmod +x ~/Downloads/ipatool`
- `sudo mv ~/Downloads/ipatool /usr/local/bin`
- `ipatool auth login`
- `ipatool download -b developer.apple.wwdc-Release`
4. Make sure you have Procursus ldid installed and added to your path! (https://github.com/ProcursusTeam/ldid)
> For iOS 14 please follow [this](https://github.com/flowerible/How-to-Downgrade-apps-on-AppStore-with-iTunes-and-Charles-Proxy) you will need Windows, once you get ipa switch back to Mac preceed.
5. cd into _compile and run `./build_trollinstaller2.sh` (`chmod +x ./build_trollinstaller2.sh` if you get a permission error)
3. Rename the output ipa to `Developer.ipa`, and put it into ~/TrollStore/_compile/target/Developer.ipa
6. Wait a bit, when done, there will be a `DeveloperInstaller.ipa` in _compile/out
4. Grab pwnify_compiled from Fugu14 repo (https://github.com/LinusHenze/Fugu14/blob/master/tools/pwnify_compiled), sign it using codesign (`codesign -s - <path/to/pwnify_compiled>`) and put it at ~/TrollStore/_compile/pwnify_compiled
5. Make sure you have Procursus ldid installed and added to your path! (https://github.com/ProcursusTeam/ldid)
- `brew uninstall ldid` (brew ldid is bad ldid if you have it)
- Rename the Procursus ldid for your arch to `ldid`, then do `chmod +x ~/Downloads/ldid`
- `sudo mv ~/Downloads/ldid /usr/local/bin`
> As of right now you need to add an "`out`" folder in _compile
6. cd into _compile and run `./build_trollinstaller2.sh` (`chmod +x ./build_trollinstaller2.sh` if you get a permission error)
7. Wait a bit, when done, there will be a `DeveloperInstaller.ipa` in ~/TrollStore/_compile/out
> If this fails and gives you a `devpwn.ipa`, unzip that ipa and put all the contents in it back into their original places.
## Using compiled IPA (does not neccessarily require a Mac if you obtained the IPA from non orthodox ways)
7. You can install that to a device using e.g. ideviceinstaller (other methods may also work, but make sure you don't use a signing cert, you can also use an enterprise plist or something to install it via Safari as shown in Fugu15 demo, something like iFunBox may also work)
8. You can install that to a device using e.g. ideviceinstaller(do `brew install ideviceinstaller` then do `ideviceinstaller -i DeveloperInstaller.ipa`)
8. After installation, you can use the "Developer" app on your device to install TrollStore
(Other methods may also work, but make sure you don't use a signing cert, you can also use an enterprise plist or something to install it via Safari as shown in Fugu15 demo, something like iFunBox may also work)
9. After installation, you can use the "Developer" app on your device to install TrollStore