user4951
user4951

Reputation: 33110

Can we search inside xib files?

I once had a bug where the xib still have a reference to a certain variable.

The reason why the bug is so tough to find is if I search for that variable it doesn't show at all.

Say I want to know which xib still have a reference iboutlet to certain pictures. How do I do so?

Upvotes: 1

Views: 611

Answers (1)

justin
justin

Reputation: 104698

Yes. XIBs are human readable. Simply search for the name of an image using your text editor or grep the image name.

During the build process, they are typically converted to another, smaller representation (known as "flattening"). So you want to look specifically at the XIBs you edit, rather than the ones converted and copied to the app bundle's contents.

Upvotes: 2

Related Questions