Could not build Xcode Project on my new Mac mini

Hi

I have brought a new Mac mini (M1 Chip), so I'm trying to transfer all my Xcode projects onto it.

Unfortunately, when I come to build one of my projects, it doesn't work. it's giving me the Link error:

Code Block Ld /Users/danielchen/Library/Developer/Xcode/DerivedData/Hode_The_Line-ewrknsvxdhcqomdazjmewvdxswtf/Build/Products/Debug-iphonesimulator/Hode\ The\ Line.app/Hode\ The\ Line normal (in target 'Hode The Line' from project 'Hode The Line')
    cd /Users/danielchen/Documents/LittleGoblinStudios/HodeTheLine
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios11.1-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk -L/Users/danielchen/Library/Developer/Xcode/DerivedData/Hode_The_Line-ewrknsvxdhcqomdazjmewvdxswtf/Build/Products/Debug-iphonesimulator -F/Users/danielchen/Library/Developer/Xcode/DerivedData/Hode_The_Line-ewrknsvxdhcqomdazjmewvdxswtf/Build/Products/Debug-iphonesimulator -F/Users/danielchen/Library/Developer/Xcode/DerivedData/Hode_The_Line-ewrknsvxdhcqomdazjmewvdxswtf/Build/Products/Debug-iphonesimulator/GoogleUtilities -F/Users/danielchen/Library/Developer/Xcode/DerivedData/Hode_The_Line-ewrknsvxdhcqomdazjmewvdxswtf/Build/Products/Debug-iphonesimulator/nanopb -F/Users/danielchen/Documents/LittleGoblinStudios/HodeTheLine/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current -F/Users/danielchen/Documents/LittleGoblinStudios/HodeTheLine/Pods/GoogleAppMeasurement/Frameworks -filelist /Users/danielchen/Library/Developer/Xcode/DerivedData/Hode_The_Line-ewrknsvxdhcqomdazjmewvdxswtf/Build/Intermediates.noindex/Hode\ The\ Line.build/Debug-iphonesimulator/Hode\ The\ Line.build/Objects-normal/arm64/Hode\ The\ Line.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/danielchen/Library/Developer/Xcode/DerivedData/Hode_The_Line-ewrknsvxdhcqomdazjmewvdxswtf/Build/Intermediates.noindex/Hode\ The\ Line.build/Debug-iphonesimulator/Hode\ The\ Line.build/Objects-normal/arm64/Hode\ The\ Line_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/danielchen/Library/Developer/Xcode/DerivedData/Hode_The_Line-ewrknsvxdhcqomdazjmewvdxswtf/Build/Intermediates.noindex/Hode\ The\ Line.build/Debug-iphonesimulator/Hode\ The\ Line.build/Objects-normal/arm64/Hode_The_Line.swiftmodule -ObjC -lc -lsqlite3 -lz -framework AVFoundation -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreMedia -framework CoreTelephony -framework CoreVideo -framework GoogleAppMeasurement -framework GoogleMobileAds -framework GoogleUtilities -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework nanopb -weak_framework AdSupport -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -Xlinker -sectcreate -Xlinker TEXT -Xlinker __entitlements -Xlinker /Users/danielchen/Library/Developer/Xcode/DerivedData/Hode_The_Line-ewrknsvxdhcqomdazjmewvdxswtf/Build/Intermediates.noindex/Hode\ The\ Line.build/Debug-iphonesimulator/Hode\ The\ Line.build/Hode\ The\ Line.app-Simulated.xcent -framework Pods_Hode_The_Line -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/danielchen/Library/Developer/Xcode/DerivedData/Hode_The_Line-ewrknsvxdhcqomdazjmewvdxswtf/Build/Intermediates.noindex/Hode\ The\ Line.build/Debug-iphonesimulator/Hode\ The\ Line.build/Objects-normal/arm64/Hode\ The\ Line_dependency_info.dat -o /Users/danielchen/Library/Developer/Xcode/DerivedData/Hode_The_Line-ewrknsvxdhcqomdazjmewvdxswtf/Build/Products/Debug-iphonesimulator/Hode\ The\ Line.app/Hode\ The\ Line
ld: in /Users/danielchen/Documents/LittleGoblinStudios/HodeTheLine/Pods/GoogleAppMeasurement/Frameworks/GoogleAppMeasurement.framework/GoogleAppMeasurement(APMAdExposureReporter_bb650a1be7d0111585967cf662327aac.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/danielchen/Documents/LittleGoblinStudios/HodeTheLine/Pods/GoogleAppMeasurement/Frameworks/GoogleAppMeasurement.framework/GoogleAppMeasurement' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Code Block
In /Users/danielchen/Documents/LittleGoblinStudios/HodeTheLine/Pods/GoogleAppMeasurement/Frameworks/GoogleAppMeasurement.framework/GoogleAppMeasurement(APMAdExposureReporter_bb650a1be7d0111585967cf662327aac.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/danielchen/Documents/LittleGoblinStudios/HodeTheLine/Pods/GoogleAppMeasurement/Frameworks/GoogleAppMeasurement.framework/GoogleAppMeasurement' for architecture arm64



The app uses Google AdMob and it seems like it's something to do with that, but I have no idea how to fix an error/issue like this. Please help or advise me how to fix this problem.

Thanks
I’m still looking for support/help on this. If anyone knows or has an idea of what it could be then please let me know. Thanks
I'm hoping for a solution to this too. I have a new M1 and im unfortunately using my 2015 MacBook Air for my Xcode projects. Very thankful I'm able to get it to work.
The problem here is that there are now multiple platforms that use arm64, macOS, iOS, and the iOS Simulator. The file you’re linking was built for one platform (iOS Simulator) and you’re trying to use it another (iOS). This won’t work because arm64 code build for iOS is different from arm64 code build for the simulator.

As to how you fix that, it depends. Based on the build transcript it looks like you’re using CocoaPods. If so, you should escalate this via their support channel. They should be able to tell you whether this is a CocoaPods issue or an issue with the actual pod. And if it’s the latter then you’ll need to escalate that wit the pod’s author.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"

Hi Please how were you able to fix this issue

Could not build Xcode Project on my new Mac mini
 
 
Q