Xamarin使用模拟器构建iOS部署无法安装ERROR

fat*_*kus 5 xamarin.ios ios xamarin.forms

我安装xamarin在Mac和遵循的指示在这里允许远程登录(这样我可以在我的Windows机器上使用模拟器),我是能够通过MAC代理时,我跑我得到这个错误连接没有问题,但是:

在此输入图像描述

想知道你们有没有这些问题吗?

当我在我的MAC上的xamarin工作室中创建一个解决方案并在MAC上运行应用程序时它没有出现任何错误...任何可能有帮助的想法?

MAC更新日志:

[2016-06-22 15:25:21.5] PERF:      - Bridge loaded in 358.017ms
[2016-06-22 15:25:21.5] PERF: Total time for bootstrapping process: 413ms
[2016-06-22 15:25:21.5] ERROR: com.xamarin.MTHosting.cb5bcd1: InstallAndLaunch (attempt 3): System.IO.DirectoryNotFoundException: /Users/Christian Agius/Library/Caches/Xamarin/mtbs/builds/DAAppiOS/6a5cceef9b57993d401c68f8154370ef/bin/iPhoneSimulator/Debug/DAAppiOS.app
 at MonoTouch.Hosting.Session.InstallApplication (System.String bundlePath) <0x87438e0 + 0x00213> in <filename unknown>:0 
 at MonoTouch.Hosting.Session.InstallAndLaunch (System.String appBundlePath, System.String[] appArgs) <0x87435e8 + 0x00047> in <filename unknown>:0 
[2016-06-22 15:25:21.5] ERROR: com.xamarin.MTHosting.cb5bcd1: InstallAndLaunch (attempt 4): System.IO.DirectoryNotFoundException: /Users/Christian Agius/Library/Caches/Xamarin/mtbs/builds/DAAppiOS/6a5cceef9b57993d401c68f8154370ef/bin/iPhoneSimulator/Debug/DAAppiOS.app
 at MonoTouch.Hosting.Session.InstallApplication (System.String bundlePath) <0x87438e0 + 0x00213> in <filename unknown>:0 
 at MonoTouch.Hosting.Session.InstallAndLaunch (System.String appBundlePath, System.String[] appArgs) <0x87435e8 + 0x00047> in <filename unknown>:0 
system: Jun 22 15:25:21 Christians-MacBook-Pro distnoted[10419]: # distnote server daemon  absolute time: 13226.136720649   civil time: Wed Jun 22 15:25:21 2016   pid: 10419 uid: 501  root: yes
Jun 22 15:25:21 Christians-MacBook-Pro locationd[10409]: BLP: Need a bundle path or a bundle identifier.
System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: src
 at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:copy_from_unmanaged (intptr,int,System.Array,int)
 at System.Runtime.InteropServices.Marshal.Copy (IntPtr source, System.Byte[] destination, Int32 startIndex, Int32 length) <0x1a89fe0 + 0x00032> in <filename unknown>:0 
 at Xamarin.Simulator.Server.ScreenManager+<OnDisplayUpdated>c__AnonStorey0.<>m__0 (Int32 i) <0x8740140 + 0x000e7> in <filename unknown>:0 
 at System.Threading.Tasks.Parallel+<ForWorker>c__AnonStorey3`1[TLocal].<>m__1 () <0x1b833d0 + 0x00318> in <filename unknown>:0 
 --- End of inner exception stack trace ---
 at System.Threading.Tasks.Task.ThrowIfExceptional (Boolean includeTaskCanceledExceptions) <0x1955280 + 0x00049> in <filename unknown>:0 
 at System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken) <0x1956a70 + 0x000c8> in <filename unknown>:0 
 at System.Threading.Tasks.Task.Wait () <0x1956890 + 0x00033> in <filename unknown>:0 
 at System.Threading.Tasks.Parallel.ForWorker[TLocal] (Int32 fromInclusive, Int32 toExclusive, System.Threading.Tasks.ParallelOptions parallelOptions, System.Action`1 body, System.Action`2 bodyWithState, System.Func`4 bodyWithLocal, System.Func`1 localInit, System.Action`1 localFinally) <0x194a680 + 0x00688> in <filename unknown>:0 
---> (Inner Exception #0) System.ArgumentNullException: Value cannot be null.
Parameter name: src
 at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:copy_from_unmanaged (intptr,int,System.Array,int)
 at System.Runtime.InteropServices.Marshal.Copy (IntPtr source, System.Byte[] destination, Int32 startIndex, Int32 length) <0x1a89fe0 + 0x00032> in <filename unknown>:0 
 at Xamarin.Simulator.Server.ScreenManager+<OnDisplayUpdated>c__AnonStorey0.<>m__0 (Int32 i) <0x8740140 + 0x000e7> in <filename unknown>:0 
 at System.Threading.Tasks.Parallel+<ForWorker>c__AnonStorey3`1[TLocal].<>m__1 () <0x1b833d0 + 0x00318> in <filename unknown>:0 <---

system: Jun 22 15:25:21 --- last message repeated 1 time ---
Jun 22 15:25:21 Christians-MacBook-Pro CoreSimulatorBridge[10414]: Request received to remove pairs that are no longer paired by the host.
        hostPairedArray = (
    )
        simPairedArray=(
    )
        unpairArray=(
    )
Run Code Online (Sandbox Code Playgroud)

小智 15

我有同样的问题.在搜索解决方案4小时...并且读取所有没有结果的互联网之后,我发现问题是在用户帐户配置的Mac机器上你有不同的NAME帐户和全名帐户.这两个字段必须以相同的名称提交.否则,VS iosEMualtor的路径不匹配(需要FULL NAME).

为此,请按照Apple-KB-Article的步骤进行操作:https://support.apple.com/en-us/HT201548(优胜美地说明如下所示)

  1. 选择Apple菜单>系统偏好设置,然后单击用户和组.
  2. 单击锁定按钮,然后输入管理员名称和密码.
  3. 在用户列表中,按住Control键单击或右键单击要重命名的用户.从快捷菜单中选择"高级选项".
  4. 在"全名"字段中更改名称,然后单击"确定".