Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can I install my app on iOS 14.1 but not 14.2?

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:

Cozi Needs To Be Updated

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!!

like image 233
dacoinminster Avatar asked Dec 03 '22 17:12

dacoinminster


2 Answers

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.

like image 175
Saqib Avatar answered Dec 27 '22 09:12

Saqib


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:

  1. Try to set Legacy build system (File -> Workspace Settings... -> Build System -> Legacy Build System). It shows errors in better way.
  2. I've got smth like this: enter image description here
  1. Removed VALID_ARCHS settings from my extension target
like image 25
Nadzeya Avatar answered Dec 27 '22 09:12

Nadzeya