Logo von Duo Migrate

Duo Migrate

Community
Kimeur
duo-migrate

Moves an existing iOS app that already ships onto iPhone Duo, Apple's foldable, step by step: from an app built with Xcode 26 (iOS 26 SDK) or Xcode 27.0 to a build with Xcode 27.1 and the iOS 27.1 SDK. Use when an app shows up centred with empty space around it on the open iPhone Duo, when a UIKit app built with the new SDK crashes at launch because it has no scene life cycle (no UIApplicationSceneManifest, no configurationForConnecting, UIWindow(frame:) in didFinishLaunching), when replacing UIScreen.main, device orientation, userInterfaceIdiom, regular width treated as iPad, hard-coded device sizes or UIRequiresFullScreen, when toolbars and tab bars turn vertical after the rebuild, when moving CI off an older Xcode, or when planning for the April 2027 App Store rules (iOS 27 SDK or later, iOS 15 or later).

Übersicht

HerausgeberKimeur
Repositoryduology
Skill-Nameduo-migrate
Sterne
40
Forks
2
Mitgelieferte Dateien
2
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 2

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von Kimeur auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Duo Migrate in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/Kimeur/duology/tree/main/plugins/duology-ship/skills/duo-migrate
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Kimeur/duology.git /tmp/duology
mkdir -p .claude/skills
cp -r /tmp/duology/plugins/duology-ship/skills/duo-migrate .claude/skills/duo-migrate
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Duo Migrate in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Duo Migrate automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Duo Migrate nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

duo-migrate

Take an app that ships today and make it right on iPhone Duo, in an order where each step can be checked before the next: where the app stands, what stops it launching, the rebuild, the code Apple warns against, what the new SDK changes on its own, and the proof.

Load other skills for the detail of each fix: duo-start (it detects the SDK, the stack and the deployment target; run it first), duo-lint (finds the patterns), duo-layout (sizes, the fold), duo-navigation (vertical bars), duo-continuity (state through a fold), duo-scenes (windows, Split View), duo-testing and duo-pose-matrix (the proof).

Labels: measured means we ran it on the iPhone Duo simulator (iOS 27.1) on 23 October 2026; details in references/evidence.md. Unverified means we could not confirm it. Everything else comes from Apple's pages, linked inline.

What people see today

The SDK an app is built with decides how it looks on iPhone Duo, before any code change (prepare page, Tech Talk 111461):

Built withOpen (inner display)Closed (outer display)
iOS 26 SDK or older (Xcode 26)An iPhone-sized window in the middle, empty space around itContent beside the status bar and camera
iOS 27 SDK (Xcode 27.0)Fills most of the display, but keeps clear of the status bar on the right edgeApple doesn't say
iOS 27.1 SDK (Xcode 27.1)Edge to edge; toolbars and tab bars can turn vertical below the status barEdge to edge

So the first visible win is the rebuild. The rebuild also changes layout with no code change (the vertical bars), which is why Apple asks you to check content against vertical bars before shipping a 27.1 build.

Rules

  • One change at a time: the SDK first, then the code. Build, run and lint after each step, so a regression has one cause.
  • Never switch the Mac's default Xcode. Prefix commands with DEVELOPER_DIR=/Applications/Xcode-27.1.app/Contents/Developer, and never run sudo xcode-select.
  • Keep the deployment target the user ships with. Wrap iOS 27.1 APIs in if #available(iOS 27.1, *). Raising the target is the user's call.
  • Removing UIRequiresFullScreen is not the fix by itself. The app resizes on iPhone Duo with or without it; the fix is a layout that resizes.
  • Silence a duo-lint finding only for code that is not layout, with a reason. Never to get a clean run.
  • Report before and after in the user's words: what people saw, what they see now, what you could not check.

Step 1. Know where the app stands

Run duo-start's detection script (duo-start, references/detect.md). Write down five things before touching anything:

  1. The SDK it ships with: the CI pin first, then DTSDKName in the last build, then the default Xcode.
  2. The deployment target (IPHONEOS_DEPLOYMENT_TARGET).
  3. The life cycle: a SwiftUI App, a UIKit app with a scene delegate, or a UIKit app with no scenes.
  4. UIRequiresFullScreen, in the Info.plist or as INFOPLIST_KEY_UIRequiresFullScreen.
  5. Mac Catalyst (SUPPORTS_MACCATALYST), because some iOS 27.1 APIs need a compile-time guard there.

Then tell the user which row of the table above their users see today.

Step 2. Make it launch on the new SDK

From iOS 27, a UIKit app built with the latest SDK must adopt the scene life cycle, or it fails to launch (Transitioning to the UIKit scene-based life cycle). Two signs it hasn't: no UIApplicationSceneManifest with a configuration in the Info.plist, and no application(_:configurationForConnecting:options:) in the app delegate. Older systems already log a console message for such apps (from iOS 18.4, reworded in iOS 26). SwiftUI apps that use the App protocol already have scenes; skip to Step 3.

Measured: a UIKit app with no scene manifest and no configurationForConnecting, built with Xcode 27.1, stopped 3.8 s after launch on the iPhone Duo simulator: EXC_BREAKPOINT, raised inside UIKit's check for apps that have not adopted scenes. The same app with a scene delegate launched and kept running.

The move, in short (full code and the mapping of app-delegate callbacks in references/fixes.md):

  1. Add a scene manifest (UIApplicationSceneManifest) to the Info.plist, or let Xcode generate it (INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES).
  2. Name your scene delegate class: in the manifest's scene configuration, or by returning a UISceneConfiguration from application(_:configurationForConnecting:options:).
  3. Move the window from application(_:didFinishLaunchingWithOptions:) to scene(_:willConnectTo:options:), created with UIWindow(windowScene:). UIWindow(frame:) is deprecated since iOS 26.
  4. Move foreground and background work from the app delegate to the scene delegate (sceneDidBecomeActive(_:), sceneDidEnterBackground(_:) and the rest). Once the app has scenes, UIKit stops calling the app delegate's versions. For the state of the whole app, across scenes, observe UIApplication notifications such as willEnterForegroundNotification.

Apple's App Resizability skill in Xcode 27.1 can do this conversion; duo-start (references/routing.md, "Apple's skills in Xcode 27.1") says how to run it next to Duology.

Step 3. Rebuild with Xcode 27.1

Build locally first, on the shared iPhone Duo simulator:

bash
DEVELOPER_DIR=/Applications/Xcode-27.1.app/Contents/Developer \
  xcodebuild -project MyApp.xcodeproj -scheme MyApp \
  -destination "id=<UDID of the iPhone Duo simulator>" build
  • Fix new errors before anything else. Don't count on warnings to find the rest: Xcode 27.1 flags UIScreen.main and UIWindow(frame:) as deprecated only when the deployment target is iOS 26 or later. With an iOS 16 target, the same code built without a warning (measured). duo-lint finds them at any target (Step 4).
  • Then move the CI to the same Xcode. The detection script names the file that pins the old one (.xcode-version, a workflow's DEVELOPER_DIR or xcode-version, fastlane). The path of Xcode 27.1 on a hosted runner depends on its image; read the runner's list of installed Xcodes rather than guessing. Xcode Cloud picks its Xcode in the workflow settings, not in the repo.
  • Open the app on the iPhone Duo simulator, closed and open, before changing code. Note what moved: that is what the SDK changed by itself.

Step 4. Find the patterns

Apple groups what to remove into a few patterns (prepare page). Two tools find them: Apple's App Resizability skill, which Apple says finds most issues but not all, and duo-lint, which flags them in seconds without the model reading the codebase:

Apple's patternduo-lintWhere the fix lives
Sizing from the main screenDUO001fixes.md, duo-layout
Layout from device orientationDUO002, DUO003fixes.md
Idiom or size class as a device checkDUO004, DUO005fixes.md, duo-layout
Checks for known device sizesDUO006, DUO007, DUO009fixes.md, duo-layout
UIRequiresFullScreenDUO008fixes.md
Full-bleed images and video cropped on wide windowsnot linted: search for .scaleAspectFill and contentMode: .fillfixes.md

Run duo-lint from the app's folder (duo-lint) and keep its report as the list for Step 5.

Step 5. Fix, in this order

  1. Launch blockers (Step 2), if any are left.
  2. duo-lint errors: deprecated APIs. Each one is a crash or a wrong size waiting for a fold.
  3. duo-lint warnings: one rule at a time, build and re-run duo-lint after each rule.
  4. Full-bleed media found by the search above.

Use the size of the view or window you are in, never the screen's, and read it again whenever it changes: a fold changes it while the app runs. The before-and-after code for each pattern, UIKit and SwiftUI, is in references/fixes.md.

Step 6. What the new SDK changes on its own

These need no lint finding to break; check them on the rebuilt app:

  • Vertical bars. Toolbars and tab bars can move to the side under the status bar. Content and custom controls must leave room for them (duo-navigation).
  • State through a fold. A fold resizes the window while the app runs. Anything a layout switch rebuilds loses its state (duo-continuity). Pushing a screen when the phone is closed and popping it during the unfold animation left stale insets in our recipes (measured there; duo-continuity, references/swiftui.md).
  • Split View and windows. Every app takes part in Split View on the inner display, and only the inner display can open a new window (duo-scenes).
  • Regular width on a phone. Open, iPhone Duo reports regular width and regular height. Code that meant "iPad" by "regular" now runs on a phone.

Step 7. Prove it

  • duo-lint reports 0 findings, or only findings silenced with a reason.
  • The app builds and its tests pass on the iPhone Duo simulator (duo-testing).
  • Screenshots closed, open, in book pose and in tabletop (/duo-poses, duo-pose-matrix), compared with the screenshots from Step 3.
  • Apple also suggests resizing tests in Device Hub's resizable simulator and in iPhone Mirroring on macOS 27, at extreme sizes both ways (prepare page).
  • On a real iPhone Duo: the hinge, 120 Hz resizing and the camera. Say so if no device was available (unverified here).

Deployment target and the App Store

  • iPhone Duo always runs iOS 27.1 or later, so iOS 27.1 APIs behind #available are safe on it, and the fallback serves older iPhones.
  • From April 2027, App Store uploads must be built with the iOS 27 SDK or later and target iOS 15 or later (Submitting). That floor gives the iOS 27 behaviour in the table above, not the full 27.1 layout.
  • iPhone Duo screenshots in App Store Connect add a badge to the product page saying the app is optimized for iPhone Duo (prepare page). Apple's news of 5 October 2026 says Duo screenshots will be required from April 2027 (news).

Report to the user

text
Before: built with <SDK>, so on iPhone Duo people saw <row of the table>.
Launch: <scene life cycle adopted | already had scenes>.
Rebuild: Xcode 27.1 locally and in CI (<file changed>).
Fixed: <n> duo-lint findings (<rules>), <media fixes>. Silenced: <finding, reason> or none.
Checked: <build, tests, poses, Split View>. Not checked: <real device, …>.
Deployment target: <unchanged | changed, at the user's request>.

Checklist

  • The SDK, deployment target, life cycle, UIRequiresFullScreen and Catalyst are written down before any change.
  • A UIKit app has a scene manifest, a scene delegate and UIWindow(windowScene:); it launches on the iPhone Duo simulator.
  • The app builds with Xcode 27.1 locally and in CI; the old Xcode pin is gone.
  • duo-lint reports 0 findings, or each one left is silenced with a reason.
  • Full-bleed images and video were checked on the wide inner display.
  • Vertical bars, state through a fold and Split View were checked on the rebuilt app.
  • Screenshots in each pose, before and after, are in the report.
  • The deployment target is unchanged unless the user asked.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Duo Migrate?

Moves an existing iOS app that already ships onto iPhone Duo, Apple's foldable, step by step: from an app built with Xcode 26 (iOS 26 SDK) or Xcode 27.0 to a build with Xcode 27.1 and the iOS 27.1 SDK. Use when an app shows up centred with empty space around it on the open iPhone Duo, when a UIKit app built with the new SDK crashes at launch because it has no scene life cycle (no UIApplicationSceneManifest, no configurationForConnecting, UIWindow(frame:) in didFinishLaunching), when replacing UIScreen.main, device orientation, userInterfaceIdiom, regular width treated as iPad, hard-coded de...

Warum Duo Migrate in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Duo Migrate besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Duo Migrate in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/Kimeur/duology/tree/main/plugins/duology-ship/skills/duo-migrate ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Duo Migrate nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Duo Migrate verwenden?

So viele Sie möchten. In TypingMind können Sie Duo Migrate mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Duo Migrate kostenlos?

Ja. Der Skill wird von Kimeur auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇