Unable to find class error when building.

31 views
Skip to first unread message

Todd Freese

unread,
Jul 1, 2016, 6:25:02 PM7/1/16
to Cappuccino & Objective-J
I am getting "Unable to find class" errors when doing a jake release or jake deploy.

All of the classes it can not find are @import'ed in my AppController.j.

Do I need to import them somewhere else? They are just plain sub-classes referenced in a xib. They are not part of a framework or anything and live alongside all my code.

Todd

Martin Carlberg

unread,
Jul 4, 2016, 7:39:46 AM7/4/16
to objec...@googlegroups.com
Hi Todd,

Can you please provide more info and if possible the output when you get the error. If you get a ”Unable to find class” error it might not been from the compiler as I think it does not use those words.

You also say that they are referenced in a xib and that gives me the feeling that you are loading a cib file? The question then is why are you loading a cib file when doing ’jake release’ or ’jake deploy’?

Please give us more information on when and how you are receiving this error.


- Martin


--
You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to objectivej+...@googlegroups.com.
To post to this group, send email to objec...@googlegroups.com.
Visit this group at https://groups.google.com/group/objectivej.
For more options, visit https://groups.google.com/d/optout.

Todd Freese

unread,
Jul 5, 2016, 9:37:37 AM7/5/16
to Cappuccino & Objective-J
Here is the output in question from jake deploy:

Processing BoxView.j

Processing Frameworks/AppKit/CPBezierPath.j

2016-07-05 08:35:00.235 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:00.249 objj [error]: Unable to find class TouchTextField referenced in cib file.

Cib: Resources/Login.cib => _CPCibObjectData,CPArray,CPCibOutletConnector,_CPCibCustomObject,CPTextField,CPView,CPFont,CPColor,_CPCibClassSwapper,CPButton,_CPThemeAttribute,CPNull,CPDictionary,_CPCibWindowTemplate,CPCibControlConnector,CPSet,CPWindow,CPApplication

2016-07-05 08:35:00.388 objj [info]: Unknown class "AppController" in cib file

Cib: Resources/MainMenu.cib => _CPCibObjectData,CPArray,CPCibOutletConnector,_CPCibCustomObject,_CPCibCustomView,CPView,CPImageView,_CPCibCustomResource,CPDictionary,_CPKeyedArchiverValue,CPButton,CPFont,_CPThemeAttribute,CPNull,_CPCibWindowTemplate,CPCibControlConnector,CPSet,AppController,CPWindow,CPApplication

Cib: Resources/Products_1.cib => _CPCibObjectData,CPArray,CPCibRuntimeAttributesConnector,CPBox,_CPCibCustomView,CPView,CPCheckBox,CPFont,CPTextField,CPColor,CPCibOutletConnector,_CPCibCustomObject,CPCibControlConnector,CPSet,CPApplication

2016-07-05 08:35:00.722 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:00.775 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:00.778 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:00.787 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:00.811 objj [info]: Unknown class "BoxView" in cib file, using CPView instead.

2016-07-05 08:35:00.816 objj [info]: Unknown class "BoxView" in cib file, using CPView instead.

Cib: Resources/Products_1_Mobile.cib => _CPCibObjectData,CPArray,CPCibRuntimeAttributesConnector,_CPCibClassSwapper,_CPCibCustomView,CPCheckBox,CPFont,CPTextField,CPColor,CPCibOutletConnector,_CPCibCustomObject,CPCibControlConnector,CPSet,BoxView,CPView,CPApplication

Cib: Resources/Products_2.cib => _CPCibObjectData,CPArray,CPCibRuntimeAttributesConnector,CPBox,_CPCibCustomView,CPView,CPCheckBox,CPFont,CPTextField,CPColor,CPCibOutletConnector,_CPCibCustomObject,CPCibControlConnector,CPSet,CPApplication

2016-07-05 08:35:01.087 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.118 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.131 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.153 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.175 objj [info]: Unknown class "BoxView" in cib file, using CPView instead.

2016-07-05 08:35:01.186 objj [info]: Unknown class "BoxView" in cib file, using CPView instead.

Cib: Resources/Products_2_Mobile.cib => _CPCibObjectData,CPArray,CPCibRuntimeAttributesConnector,_CPCibClassSwapper,_CPCibCustomView,CPCheckBox,CPFont,CPTextField,CPColor,CPCibOutletConnector,_CPCibCustomObject,CPCibControlConnector,CPSet,BoxView,CPView,CPApplication

Cib: Resources/Products_3.cib => _CPCibObjectData,CPArray,CPCibRuntimeAttributesConnector,CPBox,_CPCibCustomView,CPView,CPTextField,CPFont,CPColor,CPCheckBox,CPCibOutletConnector,_CPCibCustomObject,CPCibControlConnector,CPSet,CPApplication

2016-07-05 08:35:01.476 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.500 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.504 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.515 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.542 objj [info]: Unknown class "BoxView" in cib file, using CPView instead.

2016-07-05 08:35:01.551 objj [info]: Unknown class "BoxView" in cib file, using CPView instead.

Cib: Resources/Products_3_Mobile.cib => _CPCibObjectData,CPArray,CPCibRuntimeAttributesConnector,_CPCibClassSwapper,_CPCibCustomView,CPCheckBox,CPFont,CPTextField,CPColor,CPCibOutletConnector,_CPCibCustomObject,CPCibControlConnector,CPSet,BoxView,CPView,CPApplication

Cib: Resources/Products_5.cib => _CPCibObjectData,CPArray,CPCibRuntimeAttributesConnector,CPBox,_CPCibCustomView,CPView,CPCheckBox,CPFont,CPTextField,CPColor,CPCibOutletConnector,_CPCibCustomObject,CPCibControlConnector,CPSet,CPApplication

2016-07-05 08:35:01.792 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.803 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.812 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.815 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.826 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:01.838 objj [info]: Unknown class "BoxView" in cib file, using CPView instead.

2016-07-05 08:35:01.845 objj [info]: Unknown class "BoxView" in cib file, using CPView instead.

Cib: Resources/Products_5_Mobile.cib => _CPCibObjectData,CPArray,CPCibRuntimeAttributesConnector,_CPCibClassSwapper,_CPCibCustomView,CPTextField,CPFont,CPColor,CPCheckBox,CPCibOutletConnector,_CPCibCustomObject,CPCibControlConnector,CPSet,BoxView,CPView,CPApplication

Cib: Resources/Quote.cib => _CPCibObjectData,CPArray,CPCibOutletConnector,_CPCibCustomObject,CPPopUpButton,CPView,CPTextField,CPFont,CPColor,CPMenu,CPMenuItem,_CPThemeAttribute,CPNull,CPDictionary,_CPCibCustomView,CPCheckBox,CPButton,CPRadio,CPRadioGroup,_CPCibWindowTemplate,CPCibControlConnector,CPSet,CPWindow,CPApplication

Processing Frameworks/AppKit/CPRadio.j

2016-07-05 08:35:02.408 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:02.440 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:02.448 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:02.457 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:02.472 objj [error]: Unable to find class TouchTextField referenced in cib file.

2016-07-05 08:35:02.524 objj [error]: Unable to find class TouchScrollView referenced in cib file.

Cib: Resources/Quote_Mobile.cib => _CPCibObjectData,CPArray,CPCibRuntimeAttributesConnector,_CPCibClassSwapper,_CPCibCustomView,CPRadio,CPFont,CPRadioGroup,CPCheckBox,CPPopUpButton,CPMenu,CPMenuItem,_CPThemeAttribute,CPNull,CPTextField,CPColor,CPDictionary,CPCibOutletConnector,_CPCibCustomObject,CPButton,CPView,CPClipView,CPScroller,_CPCibWindowTemplate,CPCibControlConnector,CPSet,CPWindow,CPApplication

2016-07-05 08:35:02.773 objj [error]: Unable to find class TouchScrollView referenced in cib file.

Cib: Resources/Schedule.cib => _CPCibObjectData,CPArray,CPCibOutletConnector,_CPCibCustomObject,CPPopUpButton,_CPCibCustomView,CPButton,CPFont,_CPThemeAttribute,CPNull,_CPCibClassSwapper,CPClipView,CPTableView,CPColor,CPTableColumn,_CPTableColumnHeaderView,_CPImageAndTextView,CPTextField,CPTrackingArea,_CPKeyedArchiverValue,CPTableHeaderView,_CPCornerView,CPScroller,CPView,CPMenu,CPMenuItem,CPArrayController,CPMutableDictionary,_CPManagedProxy,CPCibControlConnector,CPCibBindingConnector,CPDictionary,CPSet,CPApplication

Processing Frameworks/AppKit/CPArrayController.j

Processing Frameworks/Foundation/CPPredicate.j

Processing Frameworks/Foundation/_CPPredicate.j



Each of the classes are @import'ed in my AppController.j.


Todd

Martin Carlberg

unread,
Jul 5, 2016, 10:28:15 AM7/5/16
to objec...@googlegroups.com
Hi Todd,

You get this error when you do ’press’ in ’jake deploy'. ’press' will try to figure out what classes you are using and remove those that is not needed. To do that it needs to load the cib files to figure out what classes are referenced from them. It looks like when it is loading the cib files it can’t find your classes.

I have never seen this problem before and I’m not very familiar with the ’press’ tool.

It might be that your jake file is not up to date? One thing that you could try is to create a new project with ’capp gen’ and add one of your cib files along with your referenced files. Maybe your Login.cib might be a good candidate? Then test if you can do ’jake deploy’ on the new project.

On a sidenote it should be interesting to know if and how you solved your problem with 'Program too complex’ that you had some week ago?

- Martin



Todd Freese

unread,
Jul 5, 2016, 2:09:28 PM7/5/16
to Cappuccino & Objective-J
I solved last weeks Program too complex problem by rolling back to an old version of Capp which works fine. I'll try to track this down when I get some free time. 

I'll try a new app for my class not found issue.

T
Reply all
Reply to author
Forward
0 new messages