简体   繁体   English

无法在 iOS 15 模拟器上运行 iOS 应用程序

[英]Unable to run iOS app on iOS 15 Simulator

I do not have a iPhone 13 and need to debug my app on iOS 15.4 as apparently there's a screen resolution issue or some other issue which causes the app's screen to be bigger than the phone screen.我没有 iPhone 13,需要在 iOS 15.4 上调试我的应用程序,因为显然存在屏幕分辨率问题或其他导致应用程序屏幕大于手机屏幕的问题。 The app runs fine on my test device, an iPhone 6, but obviously its a tad out of date.该应用程序在我的测试设备 iPhone 6 上运行良好,但显然它有点过时了。 The app crashes immediately when the simulator attempts to run it.当模拟器尝试运行应用程序时,应用程序会立即崩溃。 The error I get is:我得到的错误是:

错误信息

I think this may be a permission issue, no?我认为这可能是一个许可问题,不是吗? Not sure as the only feature the app uses, other than the internet, is the camera and the permission is set in info.plist.不确定该应用程序使用的唯一功能(除了互联网)是相机,并且权限在 info.plist 中设置。 Any suggestions?有什么建议么?

******* UPDATE: Added Simulator Log ******* 更新:添加了模拟器日志

Startup:
    arguments: --device=27495837-1C30-49ED-B814-DC14E7112DB8 --launchsim=//Users/prescottchartier/Library/Caches/Xamarin/mtbs/builds/iOSPhotoManager/d4a378afae087127b50d68ae980e92c7568732fc756e3455147359d52176d94a/bin/iPhoneSimulator/Debug/iOSPhotoManager.app -argument=-monodevelop-port -argument=53149 -setenv=__XAMARIN_DEBUG_PORT__=53149 --sdkroot=/Applications/Xcode.app -h=192.168.1.8 -ssh=prescottchartier 
    version: 17.3.0.471 (97213889733ed3f399d3574c2f4f20e614e9dc7a)
Connection state changed:
    State: Connecting
SSH Connect:
    target: 192.168.1.8
Using SSH pass phrase
SSH connected
Connection state changed:
    State: SshConnected
Connection state changed:
    State: CheckingServer
Connection state changed:
    State: SettingUpServer
Starting server
[Server] ready:50593
Connection state changed:
    State: Connecting
Connection state changed:
    State: CheckingServer
Connection state changed:
    State: Connected
Start device request:
    Current State: Unknown
    UUID: 27495837-1C30-49ED-B814-DC14E7112DB8
    Name: iPhone 13
    Platform: iOS
    Version: 15.5
Device state changed:
    UUID: 27495837-1C30-49ED-B814-DC14E7112DB8
    State: Starting
Device state changed:
    UUID: 27495837-1C30-49ED-B814-DC14E7112DB8
    State: Started
SizeForScreen:
    Monitor: 0,0,1366,728
    Scale: 1,1
    Source: 1170,2532
    extraHeight: 84
Warning: App failed to install+launch
System.Exception: Could not launch the app 'com.CGAssociates.PhotoManager' on the device 'iOS 15.5 (19F70) - iPhone 13': simctl returned exit code 3
   at Xamarin.Simulator.Core.Protocol.SimulatorClient.<InstallAndLaunchRemoteAppAsync>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Simulator.Windows.App.<HandleApp>d__19.MoveNext()
    ErrorCode: 0

    Device: 27495837-1C30-49ED-B814-DC14E7112DB8
    Path: //Users/prescottchartier/Library/Caches/Xamarin/mtbs/builds/iOSPhotoManager/d4a378afae087127b50d68ae980e92c7568732fc756e3455147359d52176d94a/bin/iPhoneSimulator/Debug/iOSPhotoManager.app
    Arguments: -argument=-monodevelop-port -argument=53149 -setenv=__XAMARIN_DEBUG_PORT__=53149 
Connection state changed:
    State: Disconnected
Connection state changed:
    State: Connecting
SSH Connect:
    target: 192.168.1.8
Using SSH pass phrase
SSH connected
Connection state changed:
    State: SshConnected
Connection state changed:
    State: CheckingServer
Connection state changed:
    State: SettingUpServer
Starting server
[Server] ready:50634
Connection state changed:
    State: Connecting
Connection state changed:
    State: CheckingServer
Connection state changed:
    State: Connected
Device state changed:
    UUID: 27495837-1C30-49ED-B814-DC14E7112DB8
    State: Starting
Device state changed:
    UUID: 27495837-1C30-49ED-B814-DC14E7112DB8
    State: Started

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM