본문 바로가기
WWDC

[WWDC20] Decipher and deal with common Siri errors

by 고고 2022. 5. 9.

링크: https://developer.apple.com/videos/play/wwdc2020/10074/

 

Decipher and deal with common Siri errors - WWDC20 - Videos - Apple Developer

“Sorry, there was a problem with the app...

developer.apple.com

 

 

Xcode에서 Scheme Editor를 통한 자동 Siri Query를 하는 방법은 Intents Extension의 Scheme Editor에서 Siri Intent Query에 질의할 내용을 넣는 것입니다.

 

 

 

Intents Extension을 실행할 때 host process를 선택할 수 있습니다.

 

 

 

Intents extension을 실행했을 때 Intents UI extension의 브레이크 포인트에 걸리지 않는 이유는 둘은 별개의 프로세스로 분리된 extension이기 때문입니다.

만약 동시에 두 프로세스를 실행하고 싶다면 Xcode의 Debug 메뉴에서 가능합니다.

 

 

 

아래와 같은 오류를 낼 때는 다음과 같습니다.

시간초과, 여러 번의 completion handler, crash

 

 

 

Xcode에서 View Device Logs를 사용하여 프로세스의 크래쉬를 볼 수 있습니다.

 

 

또한 os_log와 Console.app을 통한 디버깅이 가능합니다.

 

 

 

os_log로 로그를 찍고,

 

 

 

Console.app에서 확인 가능합니다.

 

 

이상으로 SiriKit의 디버깅에 대해 알아보았습니다.

댓글