Xcode and making rules

Discussion in 'Mac Programming' started by talguy, Sep 18, 2009.

  1. talguy macrumors member

    Joined:
    Jun 17, 2009
    #1
    I am building an interpreter in c++ and xcode as my IDE for a scripting language I have to develop. when I build the project xcode gives me a warning saying there is no rule to process file '$(PROJECT_DIR)/test.s' of type text for architecture x86_64. test.s is my script file I created. how could I make a rule to handle the script file as a text file.
     
  2. lloyddean macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #2
    For each of the targets whose rules you need to modify:

    • Double-click the target in your "Targets" sub group located in the "Groups and Files" list of the project. A dialog titled "Target <your target name> Info" will appear.
    • Click the "Rules" tab near the top of dialog.
    It should be self evident what to do.
     
  3. talguy thread starter macrumors member

    Joined:
    Jun 17, 2009
    #3
    actually all I had to do was move the file into targets>my executable>copy files
     
  4. lloyddean macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #4
    The question was so ambiguous I read it as asking something completely different.
     
  5. gnasher729 macrumors P6

    gnasher729

    Joined:
    Nov 25, 2005
    #5
    To copy files, add a "copy files" build phase.
     

Share This Page