diff --git a/packages/amplify-frontend-ios/index.js b/packages/amplify-frontend-ios/index.js index e56ccba92e9..4acfcbc162e 100644 --- a/packages/amplify-frontend-ios/index.js +++ b/packages/amplify-frontend-ios/index.js @@ -91,7 +91,7 @@ async function handleAmplifyEvent(context, args) { const projectPath = pathManager.findProjectRoot(); switch (args.event) { case 'PostInit': - if (context.input?.options?.quickstart) { + if (context.input && context.input.options && context.input.options.quickstart) { postInitQuickStart(projectPath); } await importConfig({ path: projectPath });