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

m1 SPM/CocoaPods #1244

Closed
panviktor opened this issue Apr 28, 2022 · 2 comments
Closed

m1 SPM/CocoaPods #1244

panviktor opened this issue Apr 28, 2022 · 2 comments

Comments

@panviktor
Copy link

When I add the generated my.pb.swift file from my.proto, i make import SwiftProtobuf and my project stop buildings on simulator on M1 CPU with error:

Error: could not find module 'SwiftProtobuf' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /Users/viktor/Library/Developer/Xcode/DerivedData/CryptoWallet-fbwdqnqkhkqztadztepvckaicvmc/Build/Products/Debug-iphonesimulator/PackageFrameworks/SwiftProtobuf.framework/Modules/SwiftProtobuf.swiftmodule

Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64

I try both install options: SPM and CocaoPods.

@panviktor panviktor changed the title m1 SPM/CocaoPods m1 SPM/CocoaPods Apr 29, 2022
@thomasvl
Copy link
Collaborator

thomasvl commented May 2, 2022

You don't have a lot of details here, but it sounds like this isn't a problem with this project as much as it likely is in how your project is set up with either packaging system. Some how you seem to having it build for the wrong architecture. Maybe try making a small test case that shows the problem and others might be able to help you out by looking at that?

@thomasvl
Copy link
Collaborator

Closing this since there hasn't been other reports and no follow up here either.

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