IPAPATCH bietet eine einfache Möglichkeit, iOS -Apps zu patchigen, ohne dass sie Jailbreak benötigen.
[Merkmale • Anweisungen • Beispiel • FAQ • Lizenz]
Ipapatch enthält ein Template Xcode -Projekt, das folgende Funktionen enthält:
Erstellen und führen Sie IPA von Drittanbietern mit injiziertem Code auf
Sie können Ihren eigenen Code in IPA -Datei als dynamische Bibliothek ausführen. So können Sie das Verhalten dieser App ändern, indem Sie die Ziel-C-Laufzeit verwenden.
Präsentierte eine benutzerdefinierte Warnung in der YouTube -App
Schritt-für-Schritt-Debugging mit LLDB
Sie können Drittanbieter-Apps wie Ihre eigenen debuggen. Zum Beispiel:
Debuggen Sie YouTube mit Xcode
Link externe Frameworks
Durch die Verknüpfung vorhandener Frameworks können Sie Dienste von Drittanbietern sehr einfach in Apps integrieren, z. B. Enthüllung.
Inspizieren Sie YouTube durch Verknüpfung von entsendserver.framework
Generieren Sie verteilbare .ipa -Dateien
Sie können Ihren Patch/Ihre Arbeiten sehr einfach an Ihre Freunde verteilen, wobei iPapatch eine modifizierte Version von .IPA -Dateien generiert wird
Modifizierte Version von Facebook.ipa von Ipapatch erstellt
Klonen oder herunterladen dieses Projekt herunterladen
Laden Sie dieses Projekt auf Ihre lokale Festplatte herunter
Bereiten Sie entschlüsselte IPA -Datei vor
Die von Ihnen verwendete IPA -Datei muss entschlüsselt werden.
Ersetzen Sie den Platzhalter IPA
Ersetzen Sie die IPA -Datei, die sich in IPAPatch/Assets/app.ipa befindet, durch Ihre. Dies ist eine Platzhalterdatei. Der Dateiname sollte nach dem Ersetzen app.ipa bleiben.
Platzieren Sie externe Ressourcen/Frameworks (optional)
Befolgen Sie die Arten von externen Dateien, die unterstützt werden:
IPAPatch/Assets/Frameworks platziert werden.IPAPatch/Assets/Frameworks/RevealServer.frameworkIPAPatch/Assets/Dylibs platziert werden.IPAPatch/Assets/Resources platziert werdenKonfigurieren von Build -Einstellungen
IPAPatch.xcodeprojIPAPatch-DummyApp ausDisplay Name Standards zu "?"Bundle Identifier so, dass sie Ihren Bereitstellungsprofilen entsprechenKonfigurieren Sie IPPATCH -Optionen
Sie können das Verhalten von iPapatch mit Tools/options.plist konfigurieren.plist
| Name | Beschreibung | Standard |
|---|---|---|
| Restore_symbols | Wenn YES , versucht Ipapatch, die Symboltabelle von Mach-O für das Debugging-Vorschlag wiederherzustellen (mit Tools von https://github.com/tobefuturer/restore-symbol, auch dank @Henrayluo und @dannion) | NEIN |
| Create_ipa_file | Wenn YES , generiert IPAPATCH eine IPA -Datei für jeden Build. Die generatete Datei befindet sich bei SRCROOT/Product | NEIN |
| Ignore_Ui_Supported_Devices | Wenn YES , löscht iPapatch UISupportedDevices aus Info.plist der Source App | NEIN |
| Remove_watchplaceHolder | Wenn YES , entfernen Sie iPapatch com.apple.WatchPlaceholder -Ordner aus dem Bündel der Quell -App | JA |
| Use_original_entitlements | Wenn YES AMFI verwendet Ipapatch die Quell -App -Berechtigungen zum Rücktritt, müssen Sie sicherstellen | NEIN |
Codieren Sie Ihren Patch
Der Eintrag ist bei +[IPAPatchEntry load] , Sie können von hier aus Code -Start schreiben. Um das Verhalten von Apps zu ändern, müssen Sie möglicherweise eine Methode für die Swizzling -Bibliothek wie Streifen/Aspekte verwenden.
Bauen und rennen
Wählen Sie ein echtes Gerät aus und klicken Sie in der oberen linken Ecke von Xcode auf die Schaltfläche "Ausführen". Der Code, den Sie geschrieben haben, und externe Frameworks, die Sie platziert haben, wird automatisch in die IPA -Datei injiziert.
Ich habe ein Demo -Projekt erstellt, das Ihnen zeigt, wie Sie IPAPatch verwenden:
F: Bibliothek nicht mit Vernunft geladen: mach-o, but wrong architecture ?
Valid Architectures von IPAPatch Target so festzulegen, dass sie der Architektur Ihres IPA -Binary entspricht.F: Prozessstart fehlgeschlagen: nicht spezifiziert (deaktiviert)?
F: Dyld: Symbol nicht gefunden: xxx, verwiesen aus: xxx, erwartet in: xxx/libSwiftxxx.dylib
Ipapatch ist unter der MIT -Lizenz lizenziert.
Copyright (c) 2017-present Wu Tian <[email protected]>.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Copyright (c) 2014, Alex Zielenski
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright (c) 2013, Facebook, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name Facebook nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.