Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: could not find module 'amplify_auth_cognito' for target 'arm64-apple-macos'; found: x86_64-apple-macos, #5275

Open
2 of 14 tasks
richard457 opened this issue Aug 13, 2024 · 7 comments
Labels
auth Issues related to the Auth Category macOS Issues specific to the macOS Platform pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days. pending-community-response Pending response from the issue opener or other community members question A question about the Amplify Flutter libraries

Comments

@richard457
Copy link

Description

Launching lib/main.dart on macOS in debug mode...
/Users/richard/Documents/GitHub/flipper/apps/flipper/macos/Flutter/GeneratedPluginRegistrant.swift:8:8: error: could not find module 'amplify_auth_cognito' for target 'arm64-apple-macos'; found: x86_64-apple-macos, at: /Users/richard/Documents/GitHub/flipper/apps/flipper/build/macos/Build/Products/Debug/amplify_auth_cognito/amplify_auth_cognito.framework/Modules/amplify_auth_cognito.swiftmodule
import amplify_auth_cognito
^
#import "Headers/amplify_auth_cognito-Swift.h"
^
** BUILD FAILED **

Error: Build process failed

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Notifications (Push)
  • Storage

Steps to Reproduce

Add amplify_auth_cognito to flutter app and run debug mode on macos

Screenshots

No response

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.24.0

Amplify Flutter Version

2.3.0

Deployment Method

Amplify CLI

Schema

No response

@khatruong2009 khatruong2009 added auth Issues related to the Auth Category pending-triage This issue is in the backlog of issues to triage macOS Issues specific to the macOS Platform labels Aug 13, 2024
@khatruong2009
Copy link
Member

Hi @richard457, thank you for submitting this issue. We will take a look at it and get back to you with any updates or questions.

@khatruong2009 khatruong2009 added the to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided label Aug 15, 2024
@khatruong2009
Copy link
Member

Hi @richard457, are you using the gen2 backend to create your app?

@khatruong2009 khatruong2009 added the pending-community-response Pending response from the issue opener or other community members label Aug 20, 2024
@NikaHsn
Copy link
Member

NikaHsn commented Aug 20, 2024

@richard457 do you see this issue when running a sample flutter app (without adding amplify_auth_cognito)? I suspect that you may have installed a Flutter SDK for x64 architecture on a macOS with arm64 architecture.
you may run flutter doctor -v to check the version of Flutter installed and if it matches your mscOS system architecture

@NikaHsn NikaHsn added question A question about the Amplify Flutter libraries and removed to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided pending-triage This issue is in the backlog of issues to triage labels Aug 20, 2024
@richard457
Copy link
Author

I have flutter version 3.24.0

@richard457
Copy link
Author

Hi @richard457, are you using the gen2 backend to create your app?

I think so, I started using amplify recently, and I did a bunch of things that I do not know which led to what.

@richard457
Copy link
Author

but I think in general error might be related to the recent change in flutter to adopt new package manager for swift etc....

@NikaHsn
Copy link
Member

NikaHsn commented Aug 23, 2024

@richard457 I was not able to reproduce this issue using Flutter 3.24.1.

when you get a chance would you please responde to these questions:

  • do you see this issue when running a sample flutter app (without adding amplify_auth_cognito)? I suspect that you may have installed a Flutter SDK for x64 architecture on a macOS with arm64 architecture.
  • what is the output of ruunning flutter doctor -v (you may check the version of Flutter installed and if it matches your mscOS system architecture)
  • Have you followed the macOS Platform setup here?

@NikaHsn NikaHsn added the pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days. label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues related to the Auth Category macOS Issues specific to the macOS Platform pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days. pending-community-response Pending response from the issue opener or other community members question A question about the Amplify Flutter libraries
Projects
None yet
Development

No branches or pull requests

3 participants