UIView subclass not recognized when defined in CocoaPods (another project) and triggers XIB Reference to unknown class fatal error

Issue #16 closed
Dal Rupnik created an issue

In projects with CocoaPods that have UIView subclasses, the rule XIB Reference to unknown class is triggered. To reproduce:

  • Create a project with Storyboard
  • Add CocoaPods
  • Add Pod that is a subclass of UIView
  • Use this class on Storyboard view
  • App builds and works
  • Adding Faux Pas will fail build, because: XIB Reference to unknown class

Comments (3)

  1. Ali Rantakari repo owner

    Thanks for reporting this. Faux Pas has the capability to find exported classes from libPods.a, but this requires the “build project before checking” option to be enabled. However, there are some bugs in the latest version that prevent this feature from working correctly in the typical case of libPods.a. This should now be fixed for the next release.

  2. Dal Rupnik reporter

    Okay, but why would I need that object selected, if Xcode builds the project before running Faux Pas script automatically?

  3. Log in to comment