Xamarin iOS部署到设备导致'mscorlib.dll无法找到'

时间:2017-01-27 16:22:28

标签: build xamarin.ios mscorlib

在iOS模拟器上部署我的应用程序时,它没有任何问题,但是当我在Mac上连接iPhone 5时,部署到该设备会导致Visual Studio调试控制台出现以下错误:

Tool /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch execution started with arguments: --cache [... paths and arguments ...]
AOT Compilation exited with code 1, command:
MONO_PATH= [...path...]

The assembly mscorlib.dll was not found or could not be loaded.
1>  It should have been installed in the `/Users/builder/data/lanes/3969/7beaef43/source/xamarin-macios/builds/install/cross64/lib/mono/4.5/mscorlib.dll' directory.

Xamarin.iOS.Common.targets(696,3): error : Could not AOT the assembly '/Users/blagoja/Library/Caches/Xamarin/mtbs/builds/MobApp.iOS/1be55aeb91c215df9342d3daa452982b/C:/Users/xxx/AppData/Local/Temp/vsF8C6.tmp/iPhone/Debug/mtouch-cache/64/Build/System.dll'

所以第五句话(或第六行)是说'mscorlib.dll'在指定的路径上找不到,但是从显示它应该驻留的路径,在我的Mac上我只看到第一个目录'用户'...没别的。

所以是的,我相信我应该把'mscorlib.dll'放在那里但复制粘贴是正确的选择?

我还设法找到mscorlib.dll的多个版本到Developer/Frameworks/Mono.framework/Versions/{version}/lib/mono/{mono_versions}/mscordlib.dll。那么配置可能有路径不匹配?

0 个答案:

没有答案