Post

Replies

Boosts

Views

Activity

ld: building for iOS Simulator, but linking in object file built for iOS, file for architecture arm64
Hi! Running Xcode 12.5 using Rosetta 2 on simulator with iOS 14.5, and I get the following error: ld: building for iOS Simulator, but linking in object file built for iOS, file '.../Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/GoogleMaps' for architecture arm64 I've tried several things, including adding 'arm64' to Excluded Architectures for GoogleMaps and project targets, setting Build Active Architectures Only to Yes, setting Validate Workspace (under Build Options) to Yes, but nothing has worked for me. The previous error I got before this one was "Undefined symbol: _OBJC_CLASS$_GULAppEnvironmentUtil". For that error, I followed https://github.com/firebase/firebase-ios-sdk/issues/8137 (add GoogleUtilities framework to Link Binary with Libraries) in hopes it would fix the problem, but it only gave me the GoogleMaps arm64 error. I've been trying to fix this for a week now and am desperately running out of ideas, so any suggestions are appreciated. Thanks in advance! Here is the Podfile, in case this is useful: target 'WorkspaceName' do  use_frameworks!  pod 'SwiftGen'  pod 'PromiseKit'  pod 'Kingfisher'  pod 'GoogleMaps'  pod 'GooglePlaces'  pod 'Firebase/Crashlytics'  pod 'Firebase/Analytics'  pod 'Firebase/Messaging'  pod 'Branch'  pod 'SwiftConfettiView' end
4
1
8.9k
Jul ’21