问题描述
我已将设备上的IOS更新为12.0.1,并将XCode更新为版本10.我能够构建该应用程序,并在使用IOS 12的Mac上将其部署到模拟器上,但是当我将该应用程序部署到它启动的设备时,会显示一个启动屏幕并退出.图标保持不变,但应用程序启动后始终会掉落.
I have updated IOS on device to 12.0.1 and XCode to version 10. I am able to build the app, deploy to simulator on mac with IOS 12 but when I deploy the app to the device it starts, shows a splash screen and quits. The icon stays but the app will always fall after start.
我尝试调试,但是它甚至都无法以本机或PCL代码到达Main或App的任何构造函数.
I tried debuging but it doesn't even get to any of the constructors of Main or App in Native or PCL code.
我什至不知道下一步该怎么做.我所拥有的所有信息是:
I don't even know what to try next. All information I have is:
启动失败.无法在"iPhone(Yuriy)"上启动应用程序"Tempick.iOS".错误:错误MT1007:无法在设备"iPhone( Yuriy)':指定的演员表无效.您仍然可以通过点击它来手动启动该应用程序.请查看日志以获取更多详细信息.
Launch failed. The app 'Tempick.iOS' could not be launched on 'iPhone (Yuriy)'. Error: error MT1007: Failed to launch the application '/Users/yzolotarev/Library/Caches/Xamarin/mtbs/builds/Tempick.iOS/896e108cc5f36e1ca3def01022a148c7/bin/iPhone/Debug/Tempick.iOS.app' on the device 'iPhone (Yuriy)': Specified cast is not valid.. You can still launch the application manually by tapping on it.. Please check the logs for more details.
我在网络上能找到的只是重启XCode,重启设备,删除应用程序,重启MAC.我尝试了所有这些,但没有用.
All I could find on the web was restart XCode, restart device, delete app, restart MAC. All of that I tried and it doesn't work.
我拥有的所有应用程序都遇到这种情况.我感觉这与在设备上更新IOS之后无法识别的配置文件/证书有关.有没有人遇到过类似的问题?
I am experiencing this for all apps I have. I have a feeling its something to do with the provisioning profile/certificate that doesn't get recognised after the update of the IOS on the divice. Has anyone come across a similar problem?
更新
我能够跟踪读取以下内容的设备日志:
I was able to trace the device log which reads the following:
Time Device Name Type PID Tag Message
Oct 23 17:37:23 iPhone-Yuriy Error 52 SpringBoard(AssertionServices) [com.maddyz.Tempick] Bootstrap failed with error: <NSError: 0x282837d80; domain: BKSProcessErrorDomain; code: 1 (bootstrap-failed); reason: "Failed to start job">
______
Time Device Name Type PID Tag Message
Oct 23 17:37:23 iPhone-Yuriy Error 52 SpringBoard(FrontBoard) Bootstrapping failed for <FBApplicationProcess: 0x10a7dda10; com.maddyz.Tempick; pid: -1> with error: Error Domain=BKSProcessErrorDomain Code=1 "Unable to bootstrap process with bundleID com.maddyz.Tempick" UserInfo={NSLocalizedDescription=Unable to bootstrap process with bundleID com.maddyz.Tempick, BKSProcessExitReason=0, NSLocalizedFailureReason=Failed to start job, NSUnderlyingError=0x282836e20 {Error Domain=NSPOSIXErrorDomain Code=3 "No such process" UserInfo={BKLaunchdOperation=launch_get_running_pid_4SB, NSLocalizedDescription=Unable to get pid for label UIKitApplication:com.maddyz.Tempick[0x482d][62], BKLaunchdJobLabel=UIKitApplication:com.maddyz.Tempick[0x482d][62], NSLocalizedFailureReason=No such process}}, BKSProcessJobLabel=UIKitApplication:com.maddyz.Tempick[0x482d][62], BSErrorCodeDescription=bootstrap-failed}
推荐答案
在尝试了多种方法之后,我终于找到了一条设备日志通知,其中显示了以下内容:
After I have tried numerous approaches I finally found a device log notice that printed this:
Time Device Name Type PID Tag Message
Oct 24 12:50:41 iPhone-Yuriy Notice 0 kernel(AppleMobileFileIntegrity) AMFI: '/private/var/containers/Bundle/Application/4D4359E4-8947-425E-95B4-82AC4D910449/IOS12Test.iOS.app/IOS12Test.iOS' does not pass CT evaluation, result: 0x80008
Oct 24 12:50:41 iPhone-Yuriy Notice 0 kernel(AppleMobileFileIntegrity) AMFI: '/private/var/containers/Bundle/Application/4D4359E4-8947-425E-95B4-82AC4D910449/IOS12Test.iOS.app/IOS12Test.iOS': Unrecoverable CT signature issue, bailing out.
在谷歌搜索了一下之后,我遇到了另一个堆栈消息 iOS应用在iOS 12下将无法再在设备上运行:不可恢复的CT签名问题
After googling this a little I came across another stack messageiOS app won't run on device any more under iOS 12: Unrecoverable CT signature issue
将苹果全球开发者关系认证中心的权限更改为使用系统默认值后,我便能够启动演示应用程序.
After changing permissions to Apple Worldwide Developer Relations Certification Authority to Use System Defaults I was able to start the demo app.
这篇关于设备更新到IOS 12后Xamarin App无法在IOS设备上启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!