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

Could not find module 'RealmSwift' for target 'arm64-apple-ios-simulator'; #7468

Closed
eguchi-t opened this issue Oct 5, 2021 · 8 comments
Closed

Comments

@eguchi-t
Copy link

eguchi-t commented Oct 5, 2021

How frequently does the bug occur?

All the time

Description

In Xcode13, when I install and build with carthage, I get the following error.

The Mac is an M1 Mac mini.

carthage has been run with the following commands and exited successfully.

carthage update --platform iOS --no-use-binaries --use-xcframeworks

It was fine in Xcode12.

Stacktrace & log output

Could not find module 'RealmSwift' for target 'arm64-apple-ios-simulator'; found: i386, x86_64-apple-ios-simulator, x86_64, i386-apple-ios- simulator, at:`path`

Can you reproduce the bug?

Yes, always

Reproduction Steps

No response

Version

v10.16.0

What SDK flavour are you using?

Local Database only

Are you using encryption?

No, not using encryption

Platform OS and version(s)

MacOS 11.5.2

Build environment

Xcode version: Xcode13
Dependency manager and version: Carthage 0.38.0

@Sam-Davis
Copy link

We can replicate this on xcdode 12.5.1 with Carthage 0.38.0 and an M1 chip.
Works on same versions, but without the M1 chip.

@dianaafanador3
Copy link
Contributor

dianaafanador3 commented Oct 6, 2021

Closing this as it is a duplicate of this issue #7151

@dianaafanador3
Copy link
Contributor

@Sam-Davis @eguchi-t If you can use this branch as a workaround #7158

@eguchi-t
Copy link
Author

eguchi-t commented Oct 6, 2021

@dianaafanador3 Thank you. I'll try it tomorrow.

@eguchi-t
Copy link
Author

eguchi-t commented Oct 7, 2021

@dianaafanador3 The workaround you provided solved the problem.

@theLastOrbit
Copy link

theLastOrbit commented Feb 8, 2022

is this problem solved? i'm facing same problem for M1 mac mini after cocoapod install, version 10.22.0
Here is the error:

Could not find module 'RealmSwift' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator, at: /Users/username/Library/Developer/Xcode/DerivedData/app-name-fexncfaxdkhiqpaooqdgayaicvlg/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Modules/RealmSwift.swiftmodule

@harshad1242
Copy link

Any solution for those who using Swift package manager?

@dianaafanador3
Copy link
Contributor

dianaafanador3 commented Apr 17, 2023

@harshad1242 this is fixed for Carthage as mentioned on the original issue. If this is happening for SPM it is not related to this, and most probably has to do with your project settings, please open an issue if that's the case.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants