Xamarin iOS Tool exited with code1: Output: ditto: Can't get real path for source

ぐ巨炮叔叔 提交于 2020-04-16 03:24:32

问题


I added a Notification Service Extension project to my Xamarin project. Then I added a reference to it in the Xamarin main iOS project. When building i get this error:

Severity Code Description Project File Line Suppression State Error Tool exited with code: 1. Output: ditto: can't get real path for source '../../NotifServiceExtension/ac83d35a0ee368097132b3463a52c5b0/bin/iPhone/Debug/NotifServiceExtension.appex' SARR1.iOS

Any ideas please?


回答1:


Try to remove Notification Service Extension and add it again




回答2:


I figured it out.

Like @LucasZ said, remove the reference to the iOS app extension (in my case Notification Service Extension) from the host iOS project WHEN you want to build the project in DEBUG mode.

Add the iOS Extension reference to the host iOS Xamarin iOS project when you build in RELEASE mode.

For some reason you cant have the iOS project reference an iOS Extension project when you build in DEBUG mode. It will give the above error as of the current version of Visual Studio with Xamarin.

When in RELEASE mode, make sure you start the project with "without debugging".



来源:https://stackoverflow.com/questions/52212557/xamarin-ios-tool-exited-with-code1-output-ditto-cant-get-real-path-for-sourc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!