Logo di 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).

Panoramica

AutoreKimeur
Repositoryduology
Nome della skillduo-migrate
Stelle
40
Fork
2
File inclusi
2
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 2 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da Kimeur su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Duo Migrate in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Kimeur/duology/tree/main/plugins/duology-ship/skills/duo-migrate
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Duo Migrate in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Duo Migrate non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Duo Migrate non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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...

Perché usare Duo Migrate su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Duo Migrate è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Duo Migrate in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Kimeur/duology/tree/main/plugins/duology-ship/skills/duo-migrate. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Duo Migrate?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Duo Migrate?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Duo Migrate: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Duo Migrate è gratuita?

Sì. È pubblicata su GitHub da Kimeur con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇