Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Plug It In, Plug It In
Subject:   Can't build bundle - fixed - new compile error
Date:   2002-10-20 19:23:36
From:   johnts
Response to: Can't build bundle

It turns out, my error was I had the wrong target set when I created the new Copy Files section - it was trying to copy itself...I changed that and that compiled.


However (I still haven't done the second part of the article) I'm getting a compile warning:
AImageView.m: In function `-[IAImageView validateScrollers]':
IAImageView.m:34: warning: initialization from incompatible pointer type


At this line in the validateScrollers: method:


NSScrollView *scrollView = [[self superview] superview];


?????

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • ran through article again with my own BlackAndWhite plugin
    2002-10-21 14:45:05  psheldon [View]

    Took about 1 and 1/2 hours this last time around. Things do get faster once you've learned to make decisions especially pruning one's understanding search space.

    That was heartening. It meant I could study a column after going through the struggle and not have to struggle so hard. It is important to review fundamentals and getting the confidence that I didn't have to struggle so hard as the first time was like a liberation.

    I think I had to add to Build Phases Frameworks & Libraries something beyond the column :
    AppKit.Framework.

    But, Mike didn't have to add that in his project, so I must have done something else. It is hard to keep track of what I did right, even after recapitulating most everything.

    At one point copyfiles was on the wrong target and the right one for a long path recursion that log got confused about. I don't recall doing that mistake again.
  • Can't build bundle - fixed - new compile error
    2002-10-21 09:57:57  psheldon [View]

    I too had the wrong target set at one time. It led to a deeper and deeper pathname to the plugin. Every once in awhile I got pathname too long. I started getting desperate and deleted from the build folder in addition to cleaing from PB. Then that error message would disappear for awhile until the file got too deep.

    I don't know whether that was associated with the target not renaming itself. I think it was the PB restart that insured the renaming from bundle to plugin.

    I too got IAImageView.m:34: warning: initialization from incompatible pointer type but didn't know what to do and got my version working even with the warning, so left understanding this alone.

    So, that single warning is not enough to let you know if and why your program is not working.

    If you rebuild without a clean all warnings go away and you forget that you ever had them.

    ;-)

    You must ask yourself "Does my program work?" and not assume the warning means that you have still dones something wrong.

    Does your program work now?