【问题标题】:Unable to debug my xamarin forms app on iphone device无法在 iPhone 设备上调试我的 xamarin 表单应用程序
【发布时间】:2020-02-12 05:16:55
【问题描述】:

我有一个 Xamarin.Forms 应用程序。它在 Android 模拟器和 Android 设备上运行良好,它也适用于 iPhone 模拟器,但我无法让它在物理 iPhone 设备上运行。我在下面附上了我的输出日志。

========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
The app myapp.iOS is already deployed on mkimonos’s iPhone
Launching...
Using Xcode 11.1 found in /Applications/Xcode.app/Contents/Developer
Xamarin.Hosting: Xamarin.Hosting
Xamarin.Hosting:     Version: 3064e2c463 (d16-3)
Xamarin.Hosting:     Xcode: /Applications/Xcode.app
Xamarin.Hosting:     Xcode Version: 11.1
Xamarin.Hosting:     Verbosity: 1
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTiPhoneSimulatorRemoteClient.framework/DVTiPhoneSimulatorRemoteClient
Xamarin.Hosting: Loaded /Library/Developer/PrivateFrameworks/CoreSimulator.framework/CoreSimulator
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/DTDeviceKitBase
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/DVTKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKit.framework/DTDeviceKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DTXConnectionServices.framework/DTXConnectionServices
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTSourceControl.framework/DVTSourceControl
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTServices.framework/DVTServices
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTPortal.framework/DVTPortal
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTDocumentation.framework/DVTDocumentation
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTAnalyticsClient.framework/DVTAnalyticsClient
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTAnalytics.framework/DVTAnalytics
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/SourceKit.framework/SourceKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/IDEFoundation.framework/IDEFoundation
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/IDEProducts.framework/IDEProducts
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DTGraphKit.framework/DTGraphKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DVTDeveloperModeHelper.framework/DVTDeveloperModeHelper
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/IDEKit
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/IBFoundation.framework/IBFoundation
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/Frameworks/IBAutolayoutFoundation.framework/IBAutolayoutFoundation
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DebugHierarchyFoundation.framework/DebugHierarchyFoundation
Xamarin.Hosting: Loaded /Applications/Xcode.app/Contents/SharedFrameworks/DebugHierarchyKit.framework/DebugHierarchyKit
Xamarin.Hosting: Loaded Xcode plugins successfully.
Xamarin.Hosting: Device discovery started
Xamarin.Hosting: Device discovery event: Connected (63ba7f3b7fe2bcd6c40d475d75305bc223062f63)
Xamarin.Hosting: Connected to mkimonos???s iPhone (63ba7f3b7fe2bcd6c40d475d75305bc223062f63) in 00:00:00.0022729
Xamarin.Hosting: Connecting to 'mkimonos???s iPhone', token is 0x7fc348dd3a50
Xamarin.Hosting: Connected to 'mkimonos???s iPhone'
Xamarin.Hosting: Mounting developer image on 'mkimonos???s iPhone'
Xamarin.Hosting: Mounted developer image on 'mkimonos???s iPhone'
warning MT1043: Failed to launch the application using the instruments service. Will try launching the app using gdb service.
Launching 'com.mycompany.myapp' on the device 'mkimonos???s iPhone'
Launching /private/var/containers/Bundle/Application/EE713368-51AD-46E7-9DEA-86F339DFE26E/myapp.iOS.app -monodevelop-port 10000 -connection-mode usb
Xamarin.Hosting: Sending command: $A192,0,2f707269766174652f7661722f636f6e7461696e6572732f42756e646c652f4170706c69636174696f6e2f45453731333336382d353141442d343645372d394445412d3836463333394446453236452f53616c65734170702e694f532e617070,34,1,2d6d6f6e6f646576656c6f702d706f7274,10,2,3130303030,32,3,2d636f6e6e656374696f6e2d6d6f6465,6,4,757362#81
Xamarin.Hosting: Received command: OK
Xamarin.Hosting: Sending command: $qLaunchSuccess#a5
Xamarin.Hosting: Received command: EUnspecified


The app has been terminated.
Launch failed. The app 'myapp.iOS' could not be launched on 'mkimonos’s iPhone'. Error: error MT1007: Failed to launch the application '/Users/sedev/Library/Caches/Xamarin/mtbs/builds/myapp.iOS/f5f8a43c46ecffa0b819bda005d93907/bin/iPhone/Debug/myapp.iOS.app' on the device 'mkimonos???s iPhone': Failed to launch the application 'com.mycompany.myapp' on the device 'mkimonos???s iPhone': Application failed to launch: EUnspecified. You can still launch the application manually by tapping on it.. Please check the logs for more details.
The app has been terminated.

---日志----

Xamarin.Messaging.Client.MessagingClient|Error|0|An error occurred on the receiver while executing a post for topic xvs/idb/16.3.0.275/launch-app and client vs16132oolad
Xamarin.Messaging.Exceptions.MessagingRemoteException: An error occurred on client IDB1630275 while executing a reply for topic xvs/idb/16.3.0.275/launch-app ---> Xamarin.Messaging.Exceptions.MonotouchException: error MT1007: Failed to launch the application '/Users/sedev/Library/Caches/Xamarin/mtbs/builds/myapp.iOS/f5f8a43c46ecffa0b819bda005d93907/bin/iPhone/Debug/myapp.iOS.app' on the device 'mkimonos???s iPhone': Failed to launch the application 'com.mycompany.myapp' on the device 'mkimonos???s iPhone': Application failed to launch: EUnspecified. You can still launch the application manually by tapping on it.
  at Xamarin.Messaging.IDB.MTouch.RunAsync (System.Collections.Generic.IList`1[T] parameters, System.Threading.CancellationToken cancellationToken, System.Func`2[T,TResult] exitCondition, Xamarin.Messaging.IDB.MTouchProcessType processType, System.Action`1[T] reportProgress, System.Action`1[T] handleOutput) [0x00255] in <d8be3adffa5b48778dec947885285f36>:0 
  at Xamarin.Messaging.IDB.MTouch.LaunchAsync (Xamarin.Messaging.IDB.Contracts.AppInfo appInfo, Xamarin.Messaging.IDB.Contracts.Simulator simulator, System.Boolean debugging, System.Int32 port, System.Action`1[T] reportProgress) [0x001d0] in <d8be3adffa5b48778dec947885285f36>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.RunMTouchAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message, System.Int32 port) [0x001a8] in <d8be3adffa5b48778dec947885285f36>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.ExecuteOnPhysicalDeviceWithoutAssetsAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message) [0x00091] in <d8be3adffa5b48778dec947885285f36>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.ExecuteOnPhysicalDeviceAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message) [0x0019b] in <d8be3adffa5b48778dec947885285f36>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.ExecuteAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message) [0x00104] in <d8be3adffa5b48778dec947885285f36>:0 
  at Xamarin.Messaging.Client.RequestHandler`2[TMessage,TResult].HandleAsync (TMessage message) [0x0010e] in <7a4eb22bf69741c1ae63de89827712f0>:0 
  at Xamarin.Messaging.Client.MessageHandlerManager+<>c__DisplayClass17_1`2[TMessage,TResult].<RegisterHandlerAsync>b__2 () [0x00084] in <7a4eb22bf69741c1ae63de89827712f0>:0 
  at Xamarin.Messaging.Client.MessagingClient.ReplyAsync[TRequest,TResponse] (Xamarin.Messaging.Client.IRequest`1[T] request, Xamarin.Messaging.MessagePriority priority, System.Func`1[TResult] replyFunctionAsync) [0x000c5] in <7a4eb22bf69741c1ae63de89827712f0>:0 
   --- End of inner exception stack trace ---
   at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext() in E:\A\_work\171\s\External\messaging\src\Xamarin.Messaging.Client\MessagingClient.cs:line 183
Xamarin.VisualStudio.IOS.IdbClient|Error|0|Launch failed. The app 'myapp.iOS' could not be launched on 'mkimonos’s iPhone'. Error: error MT1007: Failed to launch the application '/Users/sedev/Library/Caches/Xamarin/mtbs/builds/myapp.iOS/f5f8a43c46ecffa0b819bda005d93907/bin/iPhone/Debug/myapp.iOS.app' on the device 'mkimonos???s iPhone': Failed to launch the application 'com.mycompany.myapp' on the device 'mkimonos???s iPhone': Application failed to launch: EUnspecified. You can still launch the application manually by tapping on it.. Please check the logs for more details.
Xamarin.Messaging.Exceptions.MonotouchException: error MT1007: Failed to launch the application '/Users/sedev/Library/Caches/Xamarin/mtbs/builds/myapp.iOS/f5f8a43c46ecffa0b819bda005d93907/bin/iPhone/Debug/myapp.iOS.app' on the device 'mkimonos???s iPhone': Failed to launch the application 'com.mycompany.myapp' on the device 'mkimonos???s iPhone': Application failed to launch: EUnspecified. You can still launch the application manually by tapping on it.
  at Xamarin.Messaging.IDB.MTouch.RunAsync (System.Collections.Generic.IList`1[T] parameters, System.Threading.CancellationToken cancellationToken, System.Func`2[T,TResult] exitCondition, Xamarin.Messaging.IDB.MTouchProcessType processType, System.Action`1[T] reportProgress, System.Action`1[T] handleOutput) [0x00255] in <d8be3adffa5b48778dec947885285f36>:0 
  at Xamarin.Messaging.IDB.MTouch.LaunchAsync (Xamarin.Messaging.IDB.Contracts.AppInfo appInfo, Xamarin.Messaging.IDB.Contracts.Simulator simulator, System.Boolean debugging, System.Int32 port, System.Action`1[T] reportProgress) [0x001d0] in <d8be3adffa5b48778dec947885285f36>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.RunMTouchAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message, System.Int32 port) [0x001a8] in <d8be3adffa5b48778dec947885285f36>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.ExecuteOnPhysicalDeviceWithoutAssetsAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message) [0x00091] in <d8be3adffa5b48778dec947885285f36>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.ExecuteOnPhysicalDeviceAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message) [0x0019b] in <d8be3adffa5b48778dec947885285f36>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.ExecuteAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message) [0x00104] in <d8be3adffa5b48778dec947885285f36>:0 
  at Xamarin.Messaging.Client.RequestHandler`2[TMessage,TResult].HandleAsync (TMessage message) [0x0010e] in <7a4eb22bf69741c1ae63de89827712f0>:0 
  at Xamarin.Messaging.Client.MessageHandlerManager+<>c__DisplayClass17_1`2[TMessage,TResult].<RegisterHandlerAsync>b__2 () [0x00084] in <7a4eb22bf69741c1ae63de89827712f0>:0 
  at Xamarin.Messaging.Client.MessagingClient.ReplyAsync[TRequest,TResponse] (Xamarin.Messaging.Client.IRequest`1[T] request, Xamarin.Messaging.MessagePriority priority, System.Func`1[TResult] replyFunctionAsync) [0x000c5] in <7a4eb22bf69741c1ae63de89827712f0>:0 

我创建了一个新项目并创建了一个新的配置文件来对其进行签名。 我在 .iOS 属性中添加了“-v -v -v -v”mtouch 参数。 我附上了构建输出日志和调试日志以提供更多详细信息。

注意:这个问题也存在于直接来自模板的新 xamarin 表单应用

构建日志

1>------ Rebuild All started: Project: TestXamarinApp, Configuration: Debug Any CPU ------
1>TestXamarinApp -> C:\Users\ooladejo\source\repos\TestXamarinApp\TestXamarinApp\TestXamarinApp\bin\Debug\netstandard2.0\TestXamarinApp.dll
2>------ Rebuild All started: Project: TestXamarinApp.iOS, Configuration: Debug iPhone ------
2>  Executing SayHello Task to establish a connection to a Mac Server. 
2>                           Properties: SessionId=b2d95c84baf5210e5ace46d00f31f3f1, 
2>                              ServerPort=53786, 
2>                              ServerAddress=182.1.1.1, 
2>                              ServerUser=Sedev, 
2>                              ServerPassword=, 
2>                              SSHKey=, 
2>                              SSHPassPhrase=,
2>                              AppName=TestXamarinApp.iOS,
2>                              ContinueOnDisconnected=False
2>  Connecting to Mac server 182.1.1.1...
2>  Executing SayHello Task to establish a connection to a Mac Server. 
2>                           Properties: SessionId=b2d95c84baf5210e5ace46d00f31f3f1, 
2>                              ServerPort=53786, 
2>                              ServerAddress=182.1.1.1, 
2>                              ServerUser=Sedev, 
2>                              ServerPassword=, 
2>                              SSHKey=, 
2>                              SSHPassPhrase=,
2>                              AppName=TestXamarinApp.iOS,
2>                              ContinueOnDisconnected=False
2>  Connecting to Mac server 182.1.1.1...
2>  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -q -iphone -f 0 Resources/tab_about.png obj/iPhone/Debug/optimized/tab_about.png 
2>  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -q -iphone -f 0 "Resources/tab_about@2x.png" "obj/iPhone/Debug/optimized/tab_about@2x.png" 
2>  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -q -iphone -f 0 "Resources/tab_about@3x.png" "obj/iPhone/Debug/optimized/tab_about@3x.png" 
2>  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -q -iphone -f 0 Resources/tab_feed.png obj/iPhone/Debug/optimized/tab_feed.png 
2>  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -q -iphone -f 0 "Resources/tab_feed@2x.png" "obj/iPhone/Debug/optimized/tab_feed@2x.png" 
2>  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -q -iphone -f 0 "Resources/tab_feed@3x.png" "obj/iPhone/Debug/optimized/tab_feed@3x.png" 
2>  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -q -iphone -f 0 Resources/xamarin_logo.png obj/iPhone/Debug/optimized/xamarin_logo.png 
2>  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -q -iphone -f 0 "Resources/xamarin_logo@2x.png" "obj/iPhone/Debug/optimized/xamarin_logo@2x.png" 
2>  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -q -iphone -f 0 "Resources/xamarin_logo@3x.png" "obj/iPhone/Debug/optimized/xamarin_logo@3x.png" 
2>  No way to resolve conflict between "System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "System.Numerics" that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.
2>  TestXamarinApp.iOS -> C:\Users\ooladejo\source\repos\TestXamarinApp\TestXamarinApp\TestXamarinApp.iOS\bin\iPhone\Debug\TestXamarinApp.iOS.exe
2>  Detected signing identity:
2>    Code Signing Key: "iPhone Developer: Marios Kimonos (************)" (182CD0EEF*************************)
2>    Provisioning Profile: "Test App Profile" (23666d10******************************)
2>    Bundle Id: com.testdomain.testxamarinapp
2>    App Id: 27R4SA28KL.com.testdomain.testxamarinapp
2>  /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch @/Users/sedev/Library/Caches/Xamarin/mtbs/builds/TestXamarinApp.iOS/b2d95c84baf5210e5ace46d00f31f3f1/obj/iPhone/Debug/response-file.rsp -v -v -v -v 
2>  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil -t 4 -z -o bin/iPhone/Debug/TestXamarinApp.iOS.app.dSYM bin/iPhone/Debug/TestXamarinApp.iOS.app/TestXamarinApp.iOS 
2>  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -i -s obj/iPhone/Debug/mtouch-symbols.list bin/iPhone/Debug/TestXamarinApp.iOS.app/TestXamarinApp.iOS 
2>  /usr/bin/mdimport bin/iPhone/Debug/TestXamarinApp.iOS.app/../ 
2>  /usr/bin/codesign --verify -vvvv -R='anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.1] exists and (certificate leaf[field.1.2.840.113635.100.6.1.2] exists or certificate leaf[field.1.2.840.113635.100.6.1.4] exists)' bin/iPhone/Debug/TestXamarinApp.iOS.app 
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

调试日志

Xamarin.Messaging.Client.MessagingClient|Error|0|An error occurred on the receiver while executing a post for topic xvs/idb/16.3.0.277/launch-app and client vs2980oolad
Xamarin.Messaging.Exceptions.MessagingRemoteException: An error occurred on client IDB1630277 while executing a reply for topic xvs/idb/16.3.0.277/launch-app ---> Xamarin.Messaging.Exceptions.MonotouchException: error MT1007: Failed to launch the application '/Users/sedev/Library/Caches/Xamarin/mtbs/builds/TestXamarinApp.iOS/b2d95c84baf5210e5ace46d00f31f3f1/bin/iPhone/Debug/TestXamarinApp.iOS.app' on the device 'mkimonos???s iPhone': Failed to launch the application 'com.testdomain.testxamarinapp' on the device 'mkimonos???s iPhone': Application failed to launch: EUnspecified. You can still launch the application manually by tapping on it.
  at Xamarin.Messaging.IDB.MTouch.RunAsync (System.Collections.Generic.IList`1[T] parameters, System.Threading.CancellationToken cancellationToken, System.Func`2[T,TResult] exitCondition, Xamarin.Messaging.IDB.MTouchProcessType processType, System.Action`1[T] reportProgress, System.Action`1[T] handleOutput) [0x00255] in <1d6787a7a52349bd95d3beb793a73b9d>:0 
  at Xamarin.Messaging.IDB.MTouch.LaunchAsync (Xamarin.Messaging.IDB.Contracts.AppInfo appInfo, Xamarin.Messaging.IDB.Contracts.Simulator simulator, System.Boolean debugging, System.Int32 port, System.Action`1[T] reportProgress) [0x001d0] in <1d6787a7a52349bd95d3beb793a73b9d>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.RunMTouchAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message, System.Int32 port) [0x001a8] in <1d6787a7a52349bd95d3beb793a73b9d>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.ExecuteOnPhysicalDeviceWithoutAssetsAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message) [0x00091] in <1d6787a7a52349bd95d3beb793a73b9d>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.ExecuteOnPhysicalDeviceAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message) [0x0019b] in <1d6787a7a52349bd95d3beb793a73b9d>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.ExecuteAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message) [0x00104] in <1d6787a7a52349bd95d3beb793a73b9d>:0 
  at Xamarin.Messaging.Client.RequestHandler`2[TMessage,TResult].HandleAsync (TMessage message) [0x0010e] in <8eeac389ee7c4078bb43eca6a43b5be2>:0 
  at Xamarin.Messaging.Client.MessageHandlerManager+<>c__DisplayClass17_1`2[TMessage,TResult].<RegisterHandlerAsync>b__2 () [0x00084] in <8eeac389ee7c4078bb43eca6a43b5be2>:0 
  at Xamarin.Messaging.Client.MessagingClient.ReplyAsync[TRequest,TResponse] (Xamarin.Messaging.Client.IRequest`1[T] request, Xamarin.Messaging.MessagePriority priority, System.Func`1[TResult] replyFunctionAsync) [0x000c5] in <8eeac389ee7c4078bb43eca6a43b5be2>:0 
   --- End of inner exception stack trace ---
   at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__23`2.MoveNext() in E:\A\_work\275\s\External\messaging\src\Xamarin.Messaging.Client\MessagingClient.cs:line 183
Xamarin.VisualStudio.IOS.IdbClient|Error|0|Launch failed. The app 'TestXamarinApp.iOS' could not be launched on 'mkimonos’s iPhone'. Error: error MT1007: Failed to launch the application '/Users/sedev/Library/Caches/Xamarin/mtbs/builds/TestXamarinApp.iOS/b2d95c84baf5210e5ace46d00f31f3f1/bin/iPhone/Debug/TestXamarinApp.iOS.app' on the device 'mkimonos???s iPhone': Failed to launch the application 'com.testdomain.testxamarinapp' on the device 'mkimonos???s iPhone': Application failed to launch: EUnspecified. You can still launch the application manually by tapping on it.. Please check the logs for more details.
Xamarin.Messaging.Exceptions.MonotouchException: error MT1007: Failed to launch the application '/Users/sedev/Library/Caches/Xamarin/mtbs/builds/TestXamarinApp.iOS/b2d95c84baf5210e5ace46d00f31f3f1/bin/iPhone/Debug/TestXamarinApp.iOS.app' on the device 'mkimonos???s iPhone': Failed to launch the application 'com.testdomain.testxamarinapp' on the device 'mkimonos???s iPhone': Application failed to launch: EUnspecified. You can still launch the application manually by tapping on it.
  at Xamarin.Messaging.IDB.MTouch.RunAsync (System.Collections.Generic.IList`1[T] parameters, System.Threading.CancellationToken cancellationToken, System.Func`2[T,TResult] exitCondition, Xamarin.Messaging.IDB.MTouchProcessType processType, System.Action`1[T] reportProgress, System.Action`1[T] handleOutput) [0x00255] in <1d6787a7a52349bd95d3beb793a73b9d>:0 
  at Xamarin.Messaging.IDB.MTouch.LaunchAsync (Xamarin.Messaging.IDB.Contracts.AppInfo appInfo, Xamarin.Messaging.IDB.Contracts.Simulator simulator, System.Boolean debugging, System.Int32 port, System.Action`1[T] reportProgress) [0x001d0] in <1d6787a7a52349bd95d3beb793a73b9d>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.RunMTouchAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message, System.Int32 port) [0x001a8] in <1d6787a7a52349bd95d3beb793a73b9d>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.ExecuteOnPhysicalDeviceWithoutAssetsAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message) [0x00091] in <1d6787a7a52349bd95d3beb793a73b9d>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.ExecuteOnPhysicalDeviceAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message) [0x0019b] in <1d6787a7a52349bd95d3beb793a73b9d>:0 
  at Xamarin.Messaging.IDB.LaunchAppMessageHandler.ExecuteAsync (Xamarin.Messaging.IDB.Contracts.LaunchAppMessage message) [0x00104] in <1d6787a7a52349bd95d3beb793a73b9d>:0 
  at Xamarin.Messaging.Client.RequestHandler`2[TMessage,TResult].HandleAsync (TMessage message) [0x0010e] in <8eeac389ee7c4078bb43eca6a43b5be2>:0 
  at Xamarin.Messaging.Client.MessageHandlerManager+<>c__DisplayClass17_1`2[TMessage,TResult].<RegisterHandlerAsync>b__2 () [0x00084] in <8eeac389ee7c4078bb43eca6a43b5be2>:0 
  at Xamarin.Messaging.Client.MessagingClient.ReplyAsync[TRequest,TResponse] (Xamarin.Messaging.Client.IRequest`1[T] request, Xamarin.Messaging.MessagePriority priority, System.Func`1[TResult] replyFunctionAsync) [0x000c5] in <8eeac389ee7c4078bb43eca6a43b5be2>:0 

【问题讨论】:

  • 这很常见并且发生在很多人身上。应用程序输出为Please check the logs for more details,您能否检查您的设备日志并分享这些信息?
  • 您已经拥有用于在真实设备中进行测试的配置文件?
  • @Saamer 我已经分享了日志
  • @GuilhermeNimer 是的,我愿意
  • 您是否尝试过 1) 从设备中删除应用程序 2) 重新启动设备 3) 退出 Visual Studio 4) 清理所有临时文件和文件夹、bin 和 obj 文件夹然后重试?

标签: ios xcode xamarin xamarin.forms xamarin.ios


【解决方案1】:

你不见了Provisioning Profile

您还需要将设备添加到Developer portal 才能在设备上运行。

【讨论】:

  • 我都做到了。我有一个配置文件,应用程序已签名,设备在我的开发者门户上,并且还链接到我的配置文件
  • @OlaleyeOladejo 它运行什么版本的 ios?我希望您信任该设备。当您手动点击应用打开时会发生什么?
  • 12.4.2 iphone 6。是的,我信任该设备。当我点击它时,它会立即打开和关闭。一闪而过
【解决方案2】:

删除用于构建的 Mac 上的 Apple Worldwide Certificate 解决了这个问题。

在此处查看解决方案iPhone has denied the launch request Unspecified

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-06-11
    • 2011-06-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多