Home > OS >  iOS The project does not compile
iOS The project does not compile

Time:12-22

I use M1 Pro Mac, the project uses CocoaPods. After running the project it fails.

Build Active Architecture Only

Debug: Yes

Release: No

Excluded Architectures

Empty

error build: In /Project/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a(GAIUtil.o), building for iOS Simulator, but linking in object file built for iOS, file '/Project/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a' for architecture arm64

I found this solution. Building for iOS Simulator, but linking in object file built for iOS in xcode

When I add arm64 for all targets this error comes.

error build: Command PhaseScriptExecution failed with a nonzero exit code

Excluded Architectures .plist value:

Excluded Architectures .plist value

I tried to clean Build folder and Derived data, restarted Mac and Xcode but it does not help.

Please help me to find the way to fix it. Thanks.

CodePudding user response:

Go to build phases | Embed pod frameworks

Remove any entries in the output file list. Clean and rebuild.

  • Related