nothingsh/Cutaway
حول
macOS app for inspecting the layer hierarchy of iOS apps
تطوير الويب والتطبيقاتما يمكنك فعله
- See how the interface is built. The layer tree of every window, with view controllers and the member variables that hold each view marked. The layer list
- Take it apart in 3D. A screenshot of every layer, flat in 2D or spread apart in 3D; turn, zoom and change the spacing. The preview
- Follow the app. The preview refreshes by itself when the app’s layers change, and marks what changed. In 2D it shows the window as the app composited it, with blurs and Liquid Glass. Refresh
- Measure. Hold ⌥ and point at another layer, in the preview or in the list, to see the distances in points. Measuring
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- +٨
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل
English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Español | Français | Deutsch
Cutaway is a macOS app for looking inside the interface of a running iOS app. Add CutawayServer to your app, run it in the Simulator or on a device connected over USB, and Cutaway lists it. Choose it, and Cutaway shows the app's layer tree, a screenshot of every layer laid out in 2D or spread apart in 3D, and the attributes and Auto Layout constraints of whichever layer you select. Edits you make to attributes are applied to the running app.
Features
- See how the interface is built. The layer tree of every window, with view controllers and the member variables that hold each view marked. The layer list
- Take it apart in 3D. A screenshot of every layer, flat in 2D or spread apart in 3D; turn, zoom and change the spacing. The preview
- Follow the app. The preview refreshes by itself when the app’s layers change, and marks what changed. In 2D it shows the window as the app composited it, with blurs and Liquid Glass. Refresh
- Measure. Hold ⌥ and point at another layer, in the preview or in the list, to see the distances in points. Measuring
- Change it while it runs. Edit attributes and they apply in the running app at once; ⌘Z undoes them. Attributes
- Follow the constraints. Every Auto Layout constraint of a view, the ones not in effect marked, and their other ends. Constraints
- Try dark mode and larger text. Override the app’s appearance, text size, layout direction and size classes. Environment
- Jump to your code. Open a class in Xcode, see asset and string catalog names, copy an LLDB command. Source code
- Keep what you found. Save an inspection and open it on any Mac without the device; export a layer as PNG. Archives and export
Cutaway talks only to apps on this Mac and over the USB cable: no analytics, no crash reports. It is in English, Simplified Chinese, Traditional Chinese, Japanese and Korean.
Requirements
- macOS 14 or later, on a Mac with a GPU that supports Metal (every Mac that runs macOS 14).
- An app that includes CutawayServer, running in the iOS Simulator or on an iPhone or iPad connected to the Mac over USB.
Installation
Download Cutaway-<version>.dmg from the Releases page, open it and drag
Cutaway to Applications. Cutaway is open source and its builds are not notarized by Apple, so the
first time you open it macOS says it cannot verify the developer. Open System Settings › Privacy
& Security and choose Open Anyway, or run:
xattr -dr com.apple.quarantine /Applications/Cutaway.app
Cutaway › Check for Updates… tells you when a newer release is out.
Quick Start
- Add CutawayServer to your iOS app and call
CutawayServer.start()once at launch. It is compiled only into Debug builds. - Run your app in the Simulator, or on a device connected to the Mac with a cable.
- Open Cutaway. Your app appears in the list within a few seconds. Choose it.
The getting started guide has every step, the code for UIKit and SwiftUI, and what to check when your app does not appear.
Documentation
Everything else is on the Cutaway website:
- Guide: using Cutaway, task by task, and every keyboard shortcut.
- Integrate: adding CutawayServer to your app, Debug and Release builds, and showing your app’s own details.
- Protocol: how Cutaway and CutawayServer talk, and which versions work together.
- FAQ and troubleshooting, Privacy and security, Performance, Release notes, Roadmap.
Development
How to build and test Cutaway, and how changes are reviewed, is in CONTRIBUTING.md. The Contributing page explains how the three repositories fit together.
License
Cutaway is free software, released under the GNU General Public License v3.0; see
LICENSE. It is built with FlatBuffers (Apache
License 2.0), DeclarativeAppKit (MIT) and
DeclarativeCombine (MIT); their licenses are in
the About panel and in CutawayKit/Sources/CutawayUI/Resources/Acknowledgements. The Cutaway protocol is under the
MIT License.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…