# Chapter 21 (4th ed.): findclass.py does not work after fix

**URL:** <https://forums.kodeco.com/t/chapter-21-4th-ed-findclass-py-does-not-work-after-fix/201838>\
**Category:** Advanced Apple Debugging\
**Created:** [January 25, 2024, 4:01pm UTC](https://forums.kodeco.com/t/chapter-21-4th-ed-findclass-py-does-not-work-after-fix/201838 "2024-01-25T16:01:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hackvlix](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hackvlix/32/110937_2.png) [@hackvlix](https://forums.kodeco.com/u/hackvlix)\
**Post date:** [January 25, 2024, 4:01pm UTC](https://forums.kodeco.com/t/chapter-21-4th-ed-findclass-py-does-not-work-after-fix/201838/1 "2024-01-25T16:01:42Z")

</div>

After fixing _findclass.py_ by casting the return types in the Objective-C code to the proper types, it still does not list the classes but causes the error:

`error: Error [IRForTarget]: Couldn't resolve the class for an Objective-C static method call`

Can you anyone explain where this comes from and how to fix it?

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [July 10, 2024, 8:02am UTC](https://forums.kodeco.com/t/chapter-21-4th-ed-findclass-py-does-not-work-after-fix/201838/2 "2024-07-10T08:02:12Z")

</div>

Closed on July 10, 2024, 8:02am UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
