Prepare your migration environment
- Visit https://github.com/blackberry/BlackBerry-Dynamics-SDK-migration-toolkit to download the BlackBerry Dynamics SDK migration toolkit.
- Verify that your environment meets the migration toolkit prerequisites.
- Create a working copy of your app so that you can preserve the original project:
cp -R /path/to/your-app /path/to/your-app-dynamics cd /path/to/your-app-dynamics - Verify that the working copy builds successfully:
For an
.xcworkspaceproject (CocoaPods or a multi-project workspace):xcodebuild -workspace YourApp.xcworkspace \ -scheme YourApp -configuration Debug \ -destination 'generic/platform=iOS Simulator' buildFor a
.xcodeproj-only project (pure SPM or no Pods):xcodebuild -project YourApp.xcodeproj \ -scheme YourApp -configuration Debug \ -destination 'generic/platform=iOS Simulator' buildResolve any build issues before you continue. The migration tool requires a working project.
If Git identity is not configured and prompt
00pre-bootstrap.mdwill initialize Git, setuser.nameanduser.emaillocally or globally. - Copy the migration tool (
dynamics-migration-tool) into the root of your working copy:cp -R /path/to/dynamics-migration-tool ./dynamics-migration-tool - Run the setup script for your AI agent:
chmod +x dynamics-migration-tool/tooling/*.sh \ dynamics-migration-tool/tooling/lib/*.sh ./dynamics-migration-tool/tooling/migrate.sh --agent <agent_name>For <agent_name>, type
cursor, or if you are using another agent (for example, GitHub Copilot or Cody), typegeneric.To run an optional pre-flight compile before you start, add
--verify-buildand optionally--scheme YourScheme.If you specify--agent generic, you must do the following for each prompt that you run in the migration process:- Paste
steering/00-context.mdas initial context. - Paste the steering files referenced by that prompt (always include
06-inline-migration-comments.md,14-api-provenance-and-replacement-catalog.md, and79-migration-plan-state-and-call-site-closure.md). - Paste the prompt file.
- After the prompt work, run
validate.sh --check-prompt <id>when required, thenrecord-prompt-execution.sh. - Review and accept changes.
The script verifies your project structure, installs steering or rules for the agent, and prints a ready-to-paste migration prompt. Copy the migration prompt for use in the next task (Migrate your iOS app to use the BlackBerry Dynamics SDK for iOS). Steering or rule files are installed in these locations:- Cursor:
.cursor/rules/ - Kiro:
.kiro/steering/
- Paste