-
DescriptionI've been playing with TCA for a while now on a side project and everything worked great, and now I've decided to bring it into our main app - The app itself, like many other projects, is heavily dependent on 3rd party pods, which they are excluding arm64 for the simulator (['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64') when I added TCA to the project I received the following error: Could not find module 'ComposableArchitecture' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: .../ComposableArchitecture.swiftmodule
This error goes away if I'll run xCode using Roessta - but this causes inconvenience to other team members.
Any ideas on how to solve this?
### Checklist
- [X] I have determined whether this bug is also reproducible in a vanilla SwiftUI project.
- [X] If possible, I've reproduced the issue using the `main` branch of this package.
- [X] This issue hasn't been addressed in an [existing GitHub issue](https://github.com/pointfreeco/swift-composable-architecture/issues) or [discussion](https://github.com/pointfreeco/swift-composable-architecture/discussions).
### Expected behavior
To be able to run TCA on x86_64-apple-ios-simulator
### Actual behavior
when I added TCA to the project I received the following error:
```swift
Could not find module 'ComposableArchitecture' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: .../ComposableArchitecture.swiftmodule Steps to reproduce
['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64' The Composable Architecture version information0.44.0 Destination operating systemiOS 15 Xcode version information13.4.1 (13F100) Swift Compiler version informationswift-driver version: 1.45.2 Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
Target: x86_64-apple-macosx12.0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@shshalom I don't think the library does anything peculiar with architecture (arm64, etc.), so this seems like more of a CocoaPods question than a bug in our library. Since we use issues for bug tracking, I'm going to convert this to a discussion where folks with CocoaPods experience may be able to help. |
Beta Was this translation helpful? Give feedback.
-
This happens when excluding archs and trying to use SPM through Xcode, as Xcode doesn't pass the excluded archs setting down to the package. I'm not sure there's any way to get this to work properly but others may have suggestions. I'd suggest getting rid of (or maybe updating) whatever dependency you're using that requires you to exclude arm64. |
Beta Was this translation helpful? Give feedback.
This happens when excluding archs and trying to use SPM through Xcode, as Xcode doesn't pass the excluded archs setting down to the package. I'm not sure there's any way to get this to work properly but others may have suggestions. I'd suggest getting rid of (or maybe updating) whatever dependency you're using that requires you to exclude arm64.