IPAPatch provide a simple way to patch iOS Apps, without needing to jailbreak.
[ Features • Instructions • License ]
IPAPatch includes an template Xcode project, that provides following features:
-
Build & Run third-party ipa with your code injected
You can run your own code inside ipa file as a dynamic library. So you can change behavior of that app by utilize Objective-C runtime.
Presented an custom alert in Youtube app
-
Step-by-step Debugging with lldb
You can debug third-party apps like your own. For example:
- Step-by-Step debug your code inside other app
- Set Breakpoints
- Print objects in Xcode console with lldb
Debugging Youtube with Xcode
-
Link external frameworks
By linking existing frameworks, you can integrate third-party services to apps very easily, such as Reveal.
Inspect Youtube by linking RevealServer.framework
-
Clone or Download This Project
Download this project to your local disk
-
Prepare Decrypted IPA File
The IPA file you use need to be decrypted, you can get decrypted ipa from jailbroken device or download directly from ipa download site, such as http://www.iphonecake.com
-
Replace Placeholder IPA
Replace the IPA file located at
IPAPatch/Assets/app.ipa
with yours, this is a placeholder file. The filename should remainapp.ipa
after replacing. -
Place External Frameworks (If Any)
External frameworks can be placed at
IPAPatch/Assets/Frameworks
folder. Frameworks will linked automatically.For example
IPAPatch/Assets/Frameworks/RevealServer.framework
-
Configure Build Settings
- Open
IPAPatch.xcodeproj
- In the Project Editor, Select Target
IPAPatch-DummyApp
Display Name
defaults to "💊", this is used as prefix of final display name.- Change
Bundle Identifier
to match your provisioning profiles - Fix signing issues if any.
- Open
-
Code Your Patch
The entry is at
+[IPAPatchEntry load]
, you can write code start from here. To change apps' behavior, You may need to use some method swizzling library, such as steipete/Aspects. -
Build and Run
Select an real device, and hit "Run" button at the top-left corner of Xcode. The code your wrote and external frameworks you placed will inject to the ipa file automatically.
This project is licensed under the MIT license.
Copyright (c) 2017-present Wu Tian <wutian@me.com>.
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.