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 6241197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:43:08+00:00 2026-05-24T11:43:08+00:00

I know this is a very simple question but I have been struggling with

  • 0

I know this is a very simple question but I have been struggling with it for a while. I have read a few threads but still can seem to find the answer.

I am trying to add this DDMathParser library to my existing project. The math parser documentation states

“Simply copy the “DDMathParser” subfolder into your project, #import “DDMathParser.h”, and you’re good to go.”

I added the subfolder to my project and added the header `#import “DDMathParser.h’ to my first view controller. At first Xcode was stating that it can’t find the file. I took the advice from another thread and changed my header to include the folder

#import "DDMathParser/DDMathParser.h"

Xcode seems to find the folder and header file but when I run a test from the documentation such as

NSLog(@"%@", [@"1 + 2" numberByEvaluatingString]);

I am getting the error ‘Thread 1: Program received sginal: “SIGABRT”‘ I can see in the DDMathParser sample file that there is a target, I am wondering if this is my problem.

To clarify the question I am trying to add the DDMathParser library to a simple view controller and run the staement NSLog(@"%@", [@"1 + 2" numberByEvaluatingString]);
Any help/clarification in doing so would be greatly appreciated.

  • 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-05-24T11:43:09+00:00Added an answer on May 24, 2026 at 11:43 am

    First, please do not add the DDMathParser code to your project via a subfolder copy. Doing so will make it a pain to easily grab any future updates to the code and in general is not a very good approach to including external code in your projects.

    Instead, you should add the git repo as a submodule of your project (you are using git, right?) and import the relevant files to your project. Here’s a step-by-step solution:

    1. Add the DDMathParser repo as a submodule to your project. Here are instructions on how to add a submodule in your project directory. Take a look at that answer, but for brevity’s sake, you’ll issue this command from terminal in your project’s root directory: git submodule add https://github.com/davedelong/DDMathParser.git External/DDMathParser. This will create a new subdirectory named External to your project root directory and inside External the DDMathParser project will be copied.
    2. Add the DDMathParser directory to your project. It will be found in <Your Root Project Dir>/External/DDMathParser/DDMathParser directory. Be sure to check the “add to targets” checkbox and not to check the “copy items” checkbox.
    3. Add #import "DDMathParser.h" to your viewcontroller.

    DDMathParser should now work as you expect. If the author comes out with an update to the code you can just issue the following command from terminal to pull the latest updates from github: git submodule update.

    Note: I created a new project from scratch, followed these steps and included your NSLog() example to ensure that there aren’t any issues.

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

Sidebar

Related Questions

This may seem like a very simple question, but I have been struggling with
I know this is a very basic question but I have kinda been thrown
I know this is probably a very simple question but how would I do
This may be very simple question,But please help me. i wanted to know what
I know this is very similar to a few other questions, but I can't
guys I know this question is very basic but I've met in few publications
I realize this question is very likely to have been asked before, but I've
I know this might be very easy to some,, I have a simple string
I know it might be a very simple solution for this, but I am
I know this is a very broadly scoped question, but what do I need

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.