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 'NearbyConnections' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator #2533

Open
yerzhant opened this issue May 9, 2024 · 5 comments
Labels
needs-triage Issue still needs to be assigned, labeled and deduplicated type: bug Something is broken or not working as intended

Comments

@yerzhant
Copy link

yerzhant commented May 9, 2024

Project

Nearby Connections

Language

Swift

OS Platform

Apple

What happened?

When building a project getting this error:
Swift Compiler Error (Xcode): Could not find module 'NearbyConnections' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /Users/.../build/ios/Debug-iphonesimulator/NearbyConnections.swiftmodule

What did you expect to happen?

Successful build

How can we reproduce it (as minimally and precisely as possible)?

This happens on Apple Silicon machine. macOS: 14.4.1 (23E224)

How often does this bug happen?

Every time

Standalone code to reproduce the issue

No response

Relevant log output

No response

Anything else we need to know?

No response

@yerzhant yerzhant added needs-triage Issue still needs to be assigned, labeled and deduplicated type: bug Something is broken or not working as intended labels May 9, 2024
@anandgupadhyay
Copy link

Have you got any solution? I am facing same issue

@anandgupadhyay
Copy link

anandgupadhyay commented Jul 19, 2024

I tried this and it worked.

  1. git clone https://github.com/google/nearby
  2. cd nearby
  3. git submodule update --init --recursive
    then
  4. swift build
  5. Open Xcode project at /connections/swift/NearbyConnections/Example/iOS Example.xcodeproj
    And then Build and Run the Project in Xcode and It worked on Xcode 15.1 with Device running on iOS 17.4

@yerzhant
Copy link
Author

yerzhant commented Jul 20, 2024

@anandgupadhyay did it work on a device or a simulator?

@anandgupadhyay
Copy link

It worked on real device

@yerzhant
Copy link
Author

I have this issue with simulator only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Issue still needs to be assigned, labeled and deduplicated type: bug Something is broken or not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants