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

Open
Perronef5 opened this issue Sep 18, 2022 · 6 comments

Comments

@Perronef5
Copy link

Describe the bug
When trying to use this package in swift I get the above error. To fix this there should be a package for both x86 and arm64.

@ajamaica
Copy link
Contributor

This uses Swift package manager. So it should compile right away. Can you give us more information?

@Perronef5
Copy link
Author

It compiles but not for x86.

Screen Shot 2022-09-18 at 4 15 18 PM

@ajamaica
Copy link
Contributor

This looks like an issue with your Xcode. Try running with roseta. I suspect you are using m1

Another hack is

s swiftSettings: [.unsafeFlags([
"--target x86_64-apple-ios11.0-simulator",
"--sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk"
], .when(configuration: .debug))]

@Perronef5
Copy link
Author

This looks like an issue with your Xcode. Try running with roseta. I suspect you are using m1

Another hack is

s swiftSettings: [.unsafeFlags([ "--target x86_64-apple-ios11.0-simulator", "--sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk" ], .when(configuration: .debug))]

Will try this thanks

@ajamaica
Copy link
Contributor

I am still trying to reproduce this. @Perronef5 let me know if you found something

@Perronef5
Copy link
Author

I am still trying to reproduce this. @Perronef5 let me know if you found something

Hey I ended up just going with @solana/web3. We can close this if you'd like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants