IPAPATCH menyediakan cara sederhana untuk menambal aplikasi iOS, tanpa perlu melakukan jailbreak.
[Fitur • Instruksi • Contoh • FAQ • Lisensi]
IPAPATCH mencakup proyek Template Xcode, yang menyediakan fitur berikut:
Bangun & jalankan IPA pihak ketiga dengan kode Anda disuntikkan
Anda dapat menjalankan kode Anda sendiri di dalam file IPA sebagai pustaka dinamis. Jadi Anda dapat mengubah perilaku aplikasi itu dengan memanfaatkan runtime Objective-C.
Menyajikan peringatan khusus di aplikasi YouTube
Debugging langkah demi langkah dengan LLDB
Anda dapat men-debug aplikasi pihak ketiga seperti Anda. Misalnya:
Debugging YouTube dengan Xcode
Tautan kerangka kerja eksternal
Dengan menghubungkan kerangka kerja yang ada, Anda dapat mengintegrasikan layanan pihak ketiga ke aplikasi dengan sangat mudah, seperti mengungkapkan.
Periksa YouTube dengan menautkan Depresserver.Framework
Menghasilkan file .ipa yang dapat didistribusikan
Anda dapat mendistribusikan tambalan/bekerja dengan sangat mudah kepada teman Anda, dengan ipapatch yang dihasilkan versi dimodifikasi dari file .ipa
Versi Modifikasi dari Facebook.ipa Dibuat oleh IPAPATCH
Klon atau unduh proyek ini
Unduh proyek ini ke disk lokal Anda
Siapkan file IPA yang didekripsi
File IPA yang Anda gunakan perlu didekripsi, Anda bisa mendapatkan IPA yang didekripsi dari perangkat Jailbroken atau mengunduhnya langsung dari situs unduhan IPA, seperti http://www.iphonecake.com
Ganti placeholder IPA
Ganti file IPA yang terletak di IPAPatch/Assets/app.ipa dengan milik Anda, ini adalah file placeholder. Nama file harus tetap app.ipa setelah mengganti.
Tempatkan Sumber Daya/Kerangka Eksternal (Opsional)
Ikuti jenis file eksternal didukung:
IPAPatch/Assets/Frameworks .IPAPatch/Assets/Frameworks/RevealServer.frameworkIPAPatch/Assets/Dylibs .IPAPatch/Assets/ResourcesKonfigurasikan pengaturan build
IPAPatch.xcodeprojIPAPatch-DummyAppDisplay Name default ke "?", Ini digunakan sebagai awalan dari nama tampilan akhir.Bundle Identifier agar sesuai dengan profil penyediaan AndaKonfigurasikan opsi iPpatch
Anda dapat mengonfigurasi perilaku ipapatch dengan Tools/options.plist
| Nama | Keterangan | Bawaan |
|---|---|---|
| Restore_symbols | Saat YES , IpAPatch akan mencoba mengembalikan tabel simbol dari Mach-O untuk debugging usulkan (dengan alat dari https://github.com/tobefuturer/restore-ymbol, juga berkat @henrayluo dan @dannion) | TIDAK |
| Create_ipa_file | Saat YES , IPAPATCH akan menghasilkan file IPA pada setiap build. File GenRated terletak di SRCROOT/Product | TIDAK |
| Abaikan_ui_supported_devices | Saat YES , ipapatch akan menghapus UISupportedDevices dari Info.plist aplikasi sumber | TIDAK |
| Remove_watchplaceHolder | Saat YES , ipapatch akan menghapus folder com.apple.WatchPlaceholder dari bundel aplikasi sumber | YA |
| Use_original_entitlements | Saat YES , IPAPATCH akan menggunakan hak aplikasi sumber untuk mengundurkan diri, Anda perlu memastikan profil penyediaan Anda cocok dengan hak, atau Anda perlu menonaktifkan AMFI pada perangkat target | TIDAK |
Kode tambalan Anda
Entri adalah di +[IPAPatchEntry load] , Anda dapat menulis kode mulai dari sini. Untuk mengubah perilaku aplikasi, Anda mungkin perlu menggunakan beberapa metode perpustakaan swizzling, seperti steipete/aspek.
Membangun dan menjalankan
Pilih perangkat nyata, dan tekan tombol "Jalankan" di sudut kiri atas Xcode. Kode yang Anda tulis dan kerangka kerja eksternal yang Anda tempatkan akan menyuntikkan ke file IPA secara otomatis.
Saya membuat beberapa proyek demo, yang menunjukkan kepada Anda cara menggunakan IPAPatch :
T: Perpustakaan yang tidak dimuat dengan alasan: mach-o, but wrong architecture ?
Valid Architectures IPAPatch Target untuk mencocokkan arsitektur IPA Binary Anda.T: Peluncuran proses gagal: tidak ditentukan (dinonaktifkan)?
T: Dyld: Simbol tidak ditemukan: xxx, direferensikan dari: xxx, diharapkan dalam: xxx/libswiftxxx.dylib
IPAPATCH dilisensikan di bawah lisensi 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.