Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8471469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:48:16+00:00 2026-06-10T16:48:16+00:00

Can someone tell me why I am getting Undefined symbols for architecture i386: _OBJC_CLASS_$_ScramblerModel,

  • 0

Can someone tell me why I am getting

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ScramblerModel", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

My project is at This zip

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T16:48:17+00:00Added an answer on June 10, 2026 at 4:48 pm

    Your code clearly is referencing this ScramblerModel class, but you haven’t included the ScramblerModel.m file in your project.

    So, first, if you look at your Compile Sources, it says:

    no model included

    Go ahead and click on the “+” button at add your model. You probably want to do this for ScramblerPlayer, too, because you use that class, as well, so if you don’t add that as well, you’ll get another linker error.

    now added scrambler model

    Second, don’t forget to tell the app what storyboard to use:

    storyboard

    Third, your .h has instance variables (ivars) defined for all of your IBOutlet properties. This is a problem, because your @synthesize statement is instantiating ivars with a leading underscore, but your .h (and your code) are referring to duplicative ivars that aren’t hooked up to anything. For example, you have a property remainingTime, you have a @synthesize remainingTime = _remainingTime (which is creating a _remainingTime ivar). So your explicitly declared ivar remainingTime isn’t connected to your remainingTime property, and thus no user interface updates will result if you use that ivar, despite the similar name.

    You can fix the problem and simplify your code by (a) getting rid of the explicitly declared ivars for your properties; and (b) change your code to reference the property, e.g. self.remainingTime or the ivar _remainingTime. So, your .h is simplified and becomes:

    //
    //  ViewController.h
    //  Scrambler
    //
    //  Created by Alex Grossman on 8/26/12.
    //  Copyright (c) 2012 Alex Grossman. All rights reserved.
    //
    
    #import <UIKit/UIKit.h>
    
    @class ScramblerModel;
    
    @interface ViewController : UIViewController{
        ScramblerModel* gameModel;
        NSTimer* gameTimer;
    }
    @property (weak, nonatomic) IBOutlet UILabel *high;
    @property (weak, nonatomic) IBOutlet UIBarButtonItem *skipButton;
    @property (weak, nonatomic) IBOutlet UIBarButtonItem *restartButton;
    @property (weak, nonatomic) IBOutlet UILabel *playerScore;
    @property (weak, nonatomic) IBOutlet UILabel *remainingTime;
    @property (weak, nonatomic) IBOutlet UILabel *scrambledWord;
    @property (weak, nonatomic) IBOutlet UITextField *guessTxt;
    
    -(IBAction)guessTap:(id)sender;
    -(IBAction)restart:(id)sender;
    -(IBAction)skip:(id)sender;
    -(IBAction)category:(id)sender;
    -(void) endGameWithMessage:(NSString*) message;
    
    @end
    

    When you compile your project, you’ll get lots of errors, though, because your code was erroneously referencing those old, redundant (and misnamed) ivars. Thus, for example, in your viewDidLoad you had lines like:

    remainingTime.text = [NSString stringWithFormat:@"%i", gameModel.time];
    playerScore.text = [NSString stringWithFormat:@"%i", gameModel.score];
    

    Those should be:

    self.remainingTime.text = [NSString stringWithFormat:@"%i", gameModel.time];
    self.playerScore.text = [NSString stringWithFormat:@"%i", gameModel.score];
    

    Just repeat this correction to everywhere you were referring to the erroneous ivars.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone tell me why I am getting undefined method print_hash() error? I have
Can someone tell why i'm getting this error when compling this class? class C
Can someone tell me why I am getting this error? Call to undefined method
Can someone tell me why I'm getting successCallback is not a function in my
Can someone please tell me why I'm getting the error object reference is required
Can someone please tell me whats wrong with this code. I'm not getting complete
In the above scenario I am getting the following compile error. Can someone tell
Can someone tell me what the difference is between these two conventions for getting
can someone tell me what i am doing wrong here.. i am not getting
Can someone tell me why it seems I am not getting the right results

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.