728x90
반응형

 

아래와 같은 에러가 발생되었다

 

 

1>C:\Users\kjun\.nuget\packages\xamarin.forms\5.0.0.1931\buildTransitive\Xamarin.Forms.targets(188,5): error XF005: The $(TargetFrameworkVersion) for COVID.Android (v9.0) is less than the minimum required $(TargetFrameworkVersion) for Xamarin.Forms (10.0). You need to increase the $(TargetFrameworkVersion) for COVID.Android.

 

 

확인해보니 Android 의 프로젝트에서 속성에서

Android 매니패스트 의  대상 Android 버전을 Android 10.0 으로 올렸는데

애플리케이션Android 버전을 사용하여 컴파일:(대상프레임워크) 부분을 올리지 않고 9.0 으로 둔게 문제 였다

이를 Android 10.0 으로 바꾸니 오류가 사라졌다.

 

728x90
반응형
728x90
반응형

Html 문자열 나타내기

 

 

<Label Text="{Binding cntt}" FontSize="Body" TextColor="Black" Margin="10" TextType="Html"/>

 

 

728x90
반응형
728x90
반응형

iOS 에서 api를 호출하는데 앱이 그냥 강제 종료가 되는 이슈가 있어서 확인해 보니

아래와 같은 에러가 발생되었다.

 

System.AggregateException: One or more errors occurred. (The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.) ---> System.Net.Http.HttpRequestException: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection. ---> Foundation.NSErrorException: Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection., NSErrorFailingURLStringKey=http://store261.softp.kr/api/storemaster_list.asp, NSErrorFailingURLKey=http://store261.softp.kr/api/storemaster_list.asp, _NSURLErrorRelatedURLSessionTaskErrorKey=(

    "LocalDataTask <36626D02-EB1C-40C4-A40A-F66913B92860>.<1>"

),

 _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <36626D02-EB1C-40C4-A40A-F66913B92860>.<1>, NSUnderlyingError=0x280e16490 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "(null)"}}

   --- End of inner exception stack trace ---

  at System.Net.Http.NSUrlSessionHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x001d4] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.4.1.3/src/Xamarin.iOS/Foundation/NSUrlSessionHandler.cs:527

  at System.Net.Http.HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x0017e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:506

   --- End of inner exception stack trace ---

  at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTas

kCanceledExceptions) [0x00013] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:2029

  at System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) [0x0002b] in <3fe48c4c600840c0ba57ff7c65150717>:0

  at System.Threading.Tasks.Task`1[TResult].get_Result () [0x0000f] in <3fe48c4c600840c0ba57ff7c65150717>:0

  at MemberShip.Helper.GetPostData[T] (System.String url) [0x00011] in <8a457d6bb9d24b0c95cd15e165d4d34f>:0

---> (Inner Exception #0) System.Net.Http.HttpRequestException: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection. ---> Foundation.NSErrorException: Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." UserInfo={NSLocalizedDescription=The resource could not be loaded because the App Trans

port Security policy requires the use of a secure connection., NSErrorFailingURLStringKey=http://store261.softp.kr/api/storemaster_list.asp, NSErrorFailingURLKey=http://store261.softp.kr/api/storemaster_list.asp, _NSURLErrorRelatedURLSessionTaskErrorKey=(

    "LocalDataTask <36626D02-EB1C-40C4-A40A-F66913B92860>.<1>"

), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <36626D02-EB1C-40C4-A40A-F66913B92860>.<1>, NSUnderlyingError=0x280e16490 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 "(null)"}}

   --- End of inner exception stack trace ---

  at System.Net.Http.NSUrlSessionHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x001d4] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.4.1.3/src/Xamarin.iOS/Foundation/NSUrlSessionHandler.cs:527

2020-12-16 00:02:48.508 MemberShip.iOS[1478:1643755]

  at System.Net.Http.HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMe

ssage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x0017e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:506 <---

 

 

위 에러의 해결 방법은

Info.plist 파일에 아래 내용을 추가하면된다.

 

 

<key>NSAppTransportSecurity</key>

<dict>

  <key>NSAllowsArbitraryLoads</key>

  <true />

</dict>

 

 

728x90
반응형
728x90
반응형

ListView 를 쓸때 iOS 는 마지막에 약 2줄 정도가 비어서 보이게 된다.

이때 ListView 속성의 Footer 를 공백으로 주면 해결된다.

<ListView SeparatorColor="Gray" SeparatorVisibility="Default" BackgroundColor="Transparent" Footer="">

728x90
반응형
728x90
반응형

이전에도 들어는 보기했는데 시도를 안해보다가

mac 이 없는 환경과 있는 환경을 오가며 개발을 해야하는

상황이 생겨 시도를 해보았고 아래 방법을 공유합니다. (난이도 하)

 

결론은 기기로 디버깅이 가능하다는!!

(단, 개발자 계정이 있어야함 2020.11.17 일 기준)

 

먼저 Microstft Store 에서 iTunes 를 검색하여 설치합니다.

 

 

실행하고 동의