반응형
홈화면 위젯을 개발하던 도중 위젯을 누르면 자꾸 해당 에러가 뜨면서 앱이 terminate됐다
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
해결방법은 생각보다 아주 간단했다..
위젯화면 swift 코드에서 widgetURL을 안 넣어줘서 그랬던것..!
물론 info.plist에 URL scheme도 설정해줘야한다
<key>CFBundleURLTypes</key>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>myapp</string>
</array>
</dict>
728x90
반응형
'Computer Science > swift 뽀개기 - 참고 사이트 저장소' 카테고리의 다른 글
[swift] Xcode가 내 기기를 못 찾을 때 해결방법 (18) | 2024.09.27 |
---|---|
[xcode] Info.plist 파일의 정체 알아보기 (0) | 2022.07.31 |
[Pod error] sudo gem install cocoapods 실행 시 에러 (해결법 포함) (0) | 2022.06.24 |
[xcode] xcode에 audio asset 추가 (local말고..!) (0) | 2022.01.28 |
[ios] swift MVVM vs MVC 차이 (0) | 2022.01.26 |
[xcode] xcode빌드시 컴퓨터 죽음/xcode 메모리 누수현상/xcode memory leak (해결방법O) (0) | 2022.01.09 |
[swift] Alamofire란? Alamofire 사용법 뽀개기 (0) | 2022.01.02 |
[swift] Metal vs OpenGL (0) | 2021.12.27 |