2016-11-25 3 views
9

NuGet이 PCL iOS 프로젝트에 Xamarin.Mobile을 설치하려고하는데이 오류가 발생합니다!PCL iOS 프로젝트에 Xamarin.Mobile을 설치할 수 없습니다.

'xamstore-xamarin.mobile 0.7.1'패키지를 설치할 수 없습니다. 'Xamarin.iOS, Version = v1.0'을 대상으로하는 프로젝트에이 패키지를 설치하려고 시도했지만 패키지에 해당 프레임 워크와 호환 가능한 어셈블리 참조 또는 콘텐츠 파일이 포함되어 있지 않습니다. 자세한 내용은 패키지 작성자에게 문의하십시오.

// The UIApplicationDelegate for the application. This class is responsible for launching the 
// User Interface of the application, as well as listening (and optionally responding) to 
// application events from iOS. 
[Register("AppDelegate")] 
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate 
{ 
    // 
    // This method is invoked when the application has loaded and is ready to run. In this 
    // method you should instantiate the window, load the UI into it and then make the window 
    // visible. 
    // 
    // You have 17 seconds to return from this method, or iOS will terminate your application. 
    // 
    public override bool FinishedLaunching(UIApplication app, NSDictionary options) 
    { 
     global::Xamarin.Forms.Forms.Init(); 
     Xamarin.FormsMaps.Init(); 
     LoadApplication(new App()); 

     return base.FinishedLaunching(app, options); 
    } 
} 

내 SDK 버전은 10.1입니다 내 AppDelegate에 있습니다.

Xamarin.Mobile은 Android Project에서 잘 작동합니다.

어떻게 해결할 수 있습니까?

답변

2

NuGet을 사용하여 Xamarin.Mobile 패키지를 추가하는 대신 Xamarin.Mobile을 구성 요소로 추가 할 수 있습니다.

Right click the Components folder

검색을하고 자 마린 구성 요소 창에 Xamarin.Mobile를 선택 :

오른쪽 구성 요소 폴더를 클릭

Search and select Xamarin.Mobile

그것은 작동 할 수 있습니다!

+0

Thx !! 효과가있다. –

3

Microsoft의 문제 해결 방법을 사용하십시오.

솔루션을 청소하고 다시 작성하십시오.

+0

OmG, 이것은 실제로 작동 중입니다 !!! – Danilo

+0

그건 해결책이 아닙니다 !! 여전히 동일한 문제가 있습니다 –

2

Xamarin.Mobile NuGet 패키지는 PCL과 호환되지 않으므로 오류가 발생합니다. 이 DLL은 iOS/Android/Windows 앱 프로젝트에 설치됩니다. PCL 용 크로스 플랫폼 API는 없습니다.

대신 공유 라이브러리에서 사용할 수 있습니다. 또는 각 플랫폼 프로젝트에서 작업해야합니다.

+0

Xamarin.Mobile을 iOs 프로젝트에 이미 설치하고 있습니다. 나는 이미 iOS 및 Android 용 구현을 주저했지만 iOS에서는 추가 할 수 없습니다. –