Search code examples
iosxcodeinterfacebuilder

Cannot create new outlets in interface builder, old ones have a warning symbol


I am not sure what is causing this problem, but I now cannot create outlets. When I create an outlet it appears and works fine in code, but does not appear under the view controller in storyboard. Old outlets have a warning symbol on them like this

When I remove this outlet, its gone and does not appear back to connect. I am running Xcode beta 6.2 because moving to 6.2 temporarily fixed this problem because I was having it beforehand in 6.1.

Here is the .h file of this class

#import <UIKit/UIKit.h>

@interface DashboardViewController : UITableViewController {
   NSString *currentDay;
}
@property (nonatomic, weak) IBOutlet UILabel *dayLabel;
@property (nonatomic, weak) IBOutlet UILabel *blockLabel;
@property (nonatomic, weak) IBOutlet UILabel *currentClassLabel;

@end

and here are the outlets listed in storyboard enter image description here

enter image description hereThese are the details of the warning, but this is .h file's code for this class

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>

@interface InfoViewController : UIViewController {
  IBOutlet UIScrollView *AISScrollView;
  IBOutlet MKMapView *AISMapView;
}
 -(IBAction)studentHandbook:(id)sender;
 @end

Solution

  • Oddly enough, I ended up finding a solution and that was moving the project out of the directory that it was in. It was in my Dropbox folder and moving it out fixed. If anyone has this problem in the future and also happens to have the proj in their Dropbox, move it out.