DTTableViewManager icon indicating copy to clipboard operation
DTTableViewManager copied to clipboard

Cannot build for simulator on M1 Mac

Open bstillitano opened this issue 4 years ago • 3 comments

When trying to build for simulator devices on an M1 mac, I get the following error: Could not find module 'DTModelStorage' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator

I am able to build and run on real devices as well as archive my project.

bstillitano avatar Mar 08 '21 22:03 bstillitano

Can you add more details please? What installation method are you using, what package manager/Xcode is used etc.

I found a bunch of related issues, https://github.com/ReactiveX/RxSwift/pull/2262, https://github.com/apollographql/apollo-ios/issues/1485, but I don't see definitive solution in those. Setting ONLY_ACTIVE_ARCH to NO leads to build failures in DTModelStorage, so it does not seem like a proper solution.

Unfortunately, I also don't have M1 Mac, so cannot test those myself, would love some help from your side, were you able to use some other libraries/frameworks with your setup?

DenTelezhkin avatar Mar 09 '21 11:03 DenTelezhkin

Sure

I’m using Xcode 12.2 & Installing via SPM. Building for physical devices works fine however I only receive a build failure when building for simulator devices.

I use multiple libraries in my project including https://github.com/bstillitano/Scyther.

I have set the only_active_arch to NO and this, as you said, causes build failures unfortunately.

On Tue, 9 Mar 2021 at 10:08 pm, Denys Telezhkin [email protected] wrote:

Can you add more details please? What installation method are you using, what package manager/Xcode is used etc.

I found a bunch of related issues, ReactiveX/RxSwift#2262 https://github.com/ReactiveX/RxSwift/pull/2262, apollographql/apollo-ios#1485 https://github.com/apollographql/apollo-ios/issues/1485, but I don't see definitive solution in those. Setting ONLY_ACTIVE_ARCH to NO leads to build failures in DTModelStorage, so it does not seem like a proper solution.

Unfortunately, I also don't have M1 Mac, so cannot test those myself, would love some help from your side, were you able to use some other libraries/frameworks with your setup?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DenTelezhkin/DTTableViewManager/issues/77#issuecomment-793726501, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJVMONSBQGW2CSTCT4FOYF3TCX6SDANCNFSM4Y2JIZNA .

bstillitano avatar Mar 09 '21 11:03 bstillitano

I tested the same settings on MacOS Big Sur (Intel) and Xcode 12.5 Beta 3, and changing ONLY_ACTIVE_ARCH to NO did not trigger any build errors, which leads me to believe this is an Xcode issue and not something we can do to project settings, which is unfortunate.

I'm going to leave this issue open, as it seems some projects are unaffected by this build failure, but I have no idea how to fix this in DTModelStorage / DTTableViewManager, especially given the fact, that build settings are generated by SPM, and most of them cannot be changed by user.

If you have any ideas how to work around this build failure, please let me know.

DenTelezhkin avatar Mar 09 '21 12:03 DenTelezhkin