Ever since installing Xcode 12.2, I can't install our app on simulators running iOS 14.2. I downloaded 14.1 and simulators running 14.1 install the app just fine. Tellingly, my coworker does not have this problem even though he's running the same version of Xcode, so a problem with my setup seems likely.
I've tried uninstalling Xcode and reinstalling. I've deleted the derivedData folder. Nothing seems to help.
The app builds just fine, but when it goes to install on a simulator running iOS 14.2, I get this popup:
When I click the "Details" button, I get the following:
Details
“Cozi” Needs To Be Updated Domain: IXUserPresentableErrorDomain Code: 4 Failure Reason: This app needs to be updated by the developer to work on this version of iOS. Recovery Suggestion: Failed to find matching arch for input file: /Users/j.r.willett/Library/Developer/CoreSimulator/Devices/662A1CB0-4E54-4DEC-8F4B-E2CA5FCB0DE8/data/Library/Caches/com.apple.mobile.installd.staging/temp.o8dPqi/extracted/iCozi-Free.app/PlugIns/NotificationService.appex/NotificationService -- Failed to find matching arch for input file: /Users/j.r.willett/Library/Developer/CoreSimulator/Devices/662A1CB0-4E54-4DEC-8F4B-E2CA5FCB0DE8/data/Library/Caches/com.apple.mobile.installd.staging/temp.o8dPqi/extracted/iCozi-Free.app/PlugIns/NotificationService.appex/NotificationService Domain: MIInstallerErrorDomain Code: 15 User Info: { FunctionName = MIMachOFileMatchesMyArchitecture; LegacyErrorString = IncorrectArchitecture; SourceFileLine = 51; } --
System Information
macOS Version 10.15.7 (Build 19H15) Xcode 12.2 (17535) (Build 12B45b) Timestamp: 2020-11-20T13:33:05-08:00
I don't see other people on StackOverflow reporting this error, so I seem to have stumbled into something a bit unique. I'd really appreciate any pointers!!
Edit 11/30/2020: Despite creating a bounty, I still haven't found any solution to this problem. My current plan is to wait or iOS 14.3 and hope that fixes the problem somehow.
Edit 12/16/2020: iOS 14.3 didn't help, but some more answers came in which led me to the solution, which you can see below. Thank you!!
This might help someone if still not too late. The issue in my case was caused after I added NotificationService The steps: Select your project -> Targets -> NotificationService (or any name you chose). Select Build Settings -> search for VALID_ARCHS and add the value $(ARCHS_STANDARD)
Hope this helps someone struggling with the same.
I've bumped into the same problem while trying to build Messages Extension on Xcode 12.2 for iOS 14.2.
This is how I've solved this problem:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With