Xcode 12 Beta 5 arm 64 issue as building for iOS Simulator, but linking in dylib built for iOS

While trying to download dependencies via Carthage in our project with Xcode 12 beta 5 and 6 version. I am getting dylib linking error as below:

ld: building for iOS Simulator, but linking in dylib built for iOS, file 'Carthage/Build/iOS//XXXFrameworkName.framework/XXXFrameworkName' for architecture arm64

It is working as expected in below Xcode 12 version(i.e Xcode 11.x).
Could you please help on this? Is this a Xcode 12 beta version issue?

Any luck?
The new MacBooks will have ARM processors. Your libraries will need an appropriate "slice" to support running in the simulator on these new MacBooks.

What I am trying to figure out is what is this slices architecture so I can rebuild these dependencies? (It doesn't appear to be ARM64)
The appropriate "slice" would be a version of "XXXFrameworkName" that is ARM64 and compiled for the iOS Simulator. You have ARM64, but compiled for the iOS Platform. I'd imagine that you will have 2 ARM64 binaries in one static library.

Hi,

Same problem here with an 3 years old iOS project I've been working on for 3 days with a MacBook Pro M2 :

Building for iOS Simulator, but linking in dylib built for iOS, file ... for architecture arm64

If I understood well, it is because the CocoaPod library isn't compatible with the ARM processor.

I tried to upgrade the library from CocoaPod but same problem, CocoaPod isn't compatible with ARM processor, I need to upgrade Ruby and so on...

But all the projects libraries exist as a Git repo (I have to check) so if I migrate from CocoaPods to Swift Package Manager (which what it will have to be done anyway) as described in many articles, it will be fine right ?

Thx.

Xcode 12 Beta 5 arm 64 issue as building for iOS Simulator, but linking in dylib built for iOS
 
 
Q