2

I am facing some issues into XCode with Apple New Macmini with M1 chip.

Into My Application i used RazorPay so it is throwing below error even after updating pods.

Module 'Razorpay' was created for incompatible target arm64-apple-ios10.0: /Pods/razorpay-pod/Pod/Razorpay.framework/Modules/Razorpay.swiftmodule/arm64.swiftmodule

There is an another error for GooglePlaces.framework

building for iOS Simulator, but linking in object file built for iOS, file '/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/GooglePlaces' for architecture arm64

I tried some possible solution available here but non of them worked for me.

I am using Xcode Version 12.4.Can someone please help me how can i fix this. This same things working well with intel based apple machine.

Frant
  • 5,382
  • 1
  • 16
  • 22
Mitesh Dobareeya
  • 970
  • 1
  • 11
  • 36

2 Answers2

2
  1. With Xcode closed (Important) Go to finder -> Applications
  2. Right Click on Xcode and select "Get Info"
  3. On the info panel check "Open using Rosetta"
  4. Open Xcode again and build
Sinac
  • 11,374
  • 2
  • 17
  • 23
0

The easiest way I found to solve this problem for Silicon Chip Macbooks.

  • Go into the project Build Settings
  • Set "Build Active Architecture Only" as "Yes" for both Debug and Release options
  • Clean the build folder (must)
  • Run your project in Xcode and it will work.
Hamid
  • 21
  • 2