I am trying to import the DDMathParser framework into my Swift app. I tried following the installation instructions from the DDMathParser wiki, though it did not work:
DDMathParser is packaged as a Swift framework.
Add DDMathParser.xcodeproj to your workspace and link MathParser.framework into your app.
(Link: https://github.com/davedelong/DDMathParser/wiki/Installing)
Here's what I did:
- I dragged in the .xcodeproj file into my project (from Finder to Xcode), and the file shows up under my project in the sidebar.
- I went to my project settings and clicked the '+' under "Linked Frameworks and Libraries" and neither "MathParser.framework" or "DDMathParser.framework" are showing up in the list of available frameworks.
- I tried building my application after adding the xcodeproj, but the framework files are still not showing up.
What am I doing wrong, or how do I correctly install this framework?
(Using Xcode 7.2.1)
Navigate to your project using the "Terminal app" once at the root folder type
pod initaPodfilewill be created you can open it withnano Podfileand add these changes with updated paths to your specific project.Then save your file.
type
pod installand hit enter.Now open your new .xcworkspace that was created. In any file that you want to use the
DDMathParser frameworkjust addimport DDMathParserto the top of your file.