Flex-Dump: A Header Conversion Tool for Flex 3
Flex-Dump is a Python tool designed to convert class-dumped headers from iOS frameworks into a format suitable for Flex 3 patches. By automating the conversion process, it simplifies the creation and modification of Flex 3 patches for developers and enthusiasts.
🚀 How to Use the Script
Step 1: Dump Headers Using class-dumpc
-
Download class-dumpc from this release.
-
Open a terminal and run the following command:
./class-dumpc -H <drag in the framework binary> -o <output directory>
How to Set Up Your Folders:
- Make a folder called
Frameworks - Copy your app's frameworks into it
For example, if you have GoogleCast in your app:
📁 Frameworks/ └── 📁 GoogleCast.framework/ ← Put all GoogleCast headers hereTo dump the headers:
./class-dumpc -H Frameworks/GoogleCast.framework/GoogleCast -o Frameworks/GoogleCast.framework
✅ Name each folder EXACTLY like your app's framework (e.g.,
GoogleCast.framework)
✅ All headers go inside their matching framework folder - Make a folder called
Step 2: Run the Flex-Dump Script
-
Place the script in the same directory as your Frameworks folder
-
Run the script to process all frameworks automatically:
python3 "convert_headers_to_extracted 2.py" -
The script will generate
.extractedfiles for each framework in your Frameworks folder
Step 3: Copy the Extracted File to Flex 3 Directory
-
Move the generated
.extractedfiles to the following directory:/var/mobile/Documents/Flex
-
Open Flex 3, and the new libraries should appear under the "Embedded Libraries" section.
📌 Current Status
🚧 Early Development: This tool is in its early stages and may contain bugs or incomplete functionality. Community contributions are highly encouraged to improve its reliability and feature set.
✨ Features
✅ Header Conversion: Converts headers dumped using class-dumpc.
✅ Flex 3 Compatibility: Simplifies header preparation for Flex 3 patches.
✅ Minimal Dependencies: Easy to run with a simple setup.
🤝 How You Can Help
We welcome contributions to fix bugs, improve conversion accuracy, and expand functionality. Here's how you can help:
- Submit Issues: Report bugs or suggest improvements.
- Fork & Pull Requests: Fix bugs or add features and submit pull requests.
- Testing: Test the tool on different frameworks and share your feedback.
Thank you for your support in making Flex-Dump better for everyone! 🚀