Can't build Watch App to simulator due to App needs to be updated

女生的网名这么多〃 提交于 2021-01-04 05:41:27

问题


I've been stuck on this for a few days. Really appreciate it if anyone can point me the directions.

All of a sudden I can't build the Watch App onto the simulator - I can still build to the device tho. It shows an error as below. It looks like target architecture issue but the build settings Architectures is set to $(ARCHS_STANDARD).

After the error message was shown, the simulator had the App with unfinished install. Tapping on it triggers another dialog: This app needs to be updated by the developer to work on this version of watchOS.

Details

“xxx” 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 watchOS.
Recovery Suggestion: Failed to find matching arch for input file: /Users/xxx/Library/Developer/CoreSimulator/Devices/D5BAD233-3780-483A-BD6C-880255002917/data/Library/Caches/com.apple.mobile.installd.staging/temp.V1pK3n/extracted/Watch.app/PlugIns/Watch Extension.appex/Watch Extension
--
Failed to find matching arch for input file: /Users/xxx/Library/Developer/CoreSimulator/Devices/D5BAD233-3780-483A-BD6C-880255002917/data/Library/Caches/com.apple.mobile.installd.staging/temp.V1pK3n/extracted/Watch.app/PlugIns/Watch Extension.appex/Watch Extension
Domain: MIInstallerErrorDomain
Code: 15
User Info: {
    FunctionName = MIMachOFileMatchesMyArchitecture;
    LegacyErrorString = IncorrectArchitecture;
    SourceFileLine = 51;
}

System Information

macOS Version 11.0.1 (Build 20B29)
Xcode 12.2 (17535) (Build 12B45b)
Timestamp: 2020-11-30T15:27:57+11:00

来源:https://stackoverflow.com/questions/65068111/cant-build-watch-app-to-simulator-due-to-app-needs-to-be-updated

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!