Ipapatch offre un moyen simple de corriger les applications iOS, sans avoir besoin de jailbreaker.
[Fonctionnalités • Instructions • Exemple • FAQ • Licence]
IPAPATCH comprend un projet de projet Xcode, qui fournit des fonctionnalités suivantes:
Créez et exécutez IPA tiers avec votre code injecté
Vous pouvez exécuter votre propre code dans le fichier IPA en tant que bibliothèque dynamique. Ainsi, vous pouvez modifier le comportement de cette application en utilisant l'objectif-C Objective-C.
A présenté une alerte personnalisée dans l'application YouTube
Débogage étape par étape avec LLDB
Vous pouvez déboguer des applications tierces comme les vôtres. Par exemple:
Débogage youtube avec xcode
Lier les cadres externes
En reliant les cadres existants, vous pouvez intégrer très facilement les services tiers aux applications, comme Reveal.
Inspectez YouTube en liant RevealServer.Framework
Générer des fichiers .IPA distribuables
Vous pouvez distribuer très facilement votre patch / travail à vos amis, avec une version modifiée générée par IPAPATCH des fichiers .IPA
Version modifiée de Facebook.ipa créée par ipapatch
Cloner ou télécharger ce projet
Téléchargez ce projet sur votre disque local
Préparer le fichier IPA déchiffré
Le fichier IPA que vous utilisez doit être déchiffré, vous pouvez obtenir un IPA déchiffré à partir d'un appareil jailbreaké ou le télécharger directement à partir d'un site de téléchargement IPA, tel que http://www.iphonecake.com
Remplacer l'IPA de l'espace réservé
Remplacez le fichier IPA situé sur IPAPatch/Assets/app.ipa par le vôtre, il s'agit d'un fichier d'espace réservé. Le nom de fichier doit rester app.ipa après le remplacement.
Placer les ressources / frameworks externes (facultatif)
Suivre les types de fichiers externes sont pris en charge:
IPAPatch/Assets/Frameworks .IPAPatch/Assets/Frameworks/RevealServer.frameworkIPAPatch/Assets/Dylibs .IPAPatch/Assets/ResourcesConfigurer les paramètres de construction
IPAPatch.xcodeprojIPAPatch-DummyAppDisplay Name par défaut "?", Ceci est utilisé comme préfixe du nom d'affichage final.Bundle Identifier pour correspondre à vos profils d'approvisionnementConfigurer les options IPPatch
Vous pouvez configurer le comportement d'Ipapatch avec Tools/options.plist
| Nom | Description | Défaut |
|---|---|---|
| Restore_symbols | Lorsque YES , IPAPATCH essaiera de restaurer la table de symboles de Mach-O pour Debugging Proposer (avec des outils de https://github.com/tobefuturer/restore-symbol, également grâce à @henRayLuo et @dannion) | NON |
| Create_ipa_file | Lorsque YES , IPAPATCH générera un fichier IPA sur chaque version. Le fichier génré est situé à SRCROOT/Product | NON |
| Ignore_ui_supported_devices | Lorsque YES , iPapatch supprimera UISupportedDevices à partir de Info.plist de l'application Source | NON |
| Retirer_watchplaceholder | Quand YES , ipapatch supprimera le dossier com.apple.WatchPlaceholder du bundle de l'application source | OUI |
| Use_original_entilements | Lorsque YES , iPapatch utilisera les droits de l'application source à démissionner, vous devez vous assurer que votre profil d'approvisionnement correspond aux droits, ou vous devez désactiver AMFI sur l'appareil cible | NON |
Codez votre patch
L'entrée est à +[IPAPatchEntry load] , vous pouvez écrire le code à partir d'ici. Pour modifier le comportement des applications, vous devrez peut-être utiliser une bibliothèque swizzling de méthode, telles que Steipete / Aspects.
Construire et courir
Sélectionnez un réel appareil et appuyez sur le bouton "Exécuter" dans le coin supérieur gauche de Xcode. Le code que vous avez écrit et les cadres externes que vous avez placés injecteront automatiquement au fichier IPA.
J'ai créé un projet de démonstration, qui vous montre comment utiliser IPAPatch :
Q: Bibliothèque non chargée de raison: mach-o, but wrong architecture ?
Valid Architectures d' IPAPatch Target pour correspondre à l'architecture de votre binaire IPA.Q: Le lancement du processus a échoué: non spécifié (désactivé)?
Q: Dyld: symbole introuvable: xxx, référencé de: xxx, attendu dans: xxx / libswiftxxx.dylib
IPAPATCH est concédé sous licence MIT.
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.