Logo de Duo Migrate

Duo Migrate

Comunidade
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).

Visão geral

Publicado porKimeur
Repositórioduology
Nome da habilidadeduo-migrate
Estrelas
40
Forks
2
Arquivos incluídos
2
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 2

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por Kimeur no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Duo Migrate no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/Kimeur/duology/tree/main/plugins/duology-ship/skills/duo-migrate
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Duo Migrate em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Duo Migrate automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Duo Migrate não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo 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.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Duo Migrate faz?

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...

Por que usar Duo Migrate no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Duo Migrate é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Duo Migrate no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/Kimeur/duology/tree/main/plugins/duology-ship/skills/duo-migrate. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Duo Migrate?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Duo Migrate?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Duo Migrate com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Duo Migrate é gratuita?

Sim. A habilidade é publicada no GitHub por Kimeur sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇