adding a simple library to an xcode 4 project

后端 未结 2 596
一向
一向 2020-12-30 14:22

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 t

2条回答
  •  佛祖请我去吃肉
    2020-12-30 15:02

    I followed these steps too, until I could make it work. The suggested method has some flaws.

    1. As the guy before me had it --- You only bring in the SOURCES of DDMathParser, and compile them as part of your target. This binds you to use the same build-settings, SDK version and deployment system-version as the author of DDMathParser. Examples:

      • didn't use ARC in my target --- now I must.
      • I intended to use MacOS 10.8 SDK in my project (for many good reasons) but I got strange ARC compilation error in one DDMathParser source, that only disappeared as I switched to SDK 10.9 (version used by author in his samples and docs).
      • I MUST provide my application for MacOS 10.8 and above, now I'm unsure it will work
    2. I don't know what happens if I push my parent repo to the server, and another friend pulls it. Will he receive the DDMathParser repo automatically? How? He must have access to it! The scheme does not seem complete to me.

    I will suggest to aid the author in packaging his DDMathParser as a framework, and then you will be able to import the PROJECT FILE of DDMAthParser into your project --- not the sources, and simply link against the product of DDMathParser project (a private framework). Seems much nicer. the framework can be compiled using the author's settings, and we just receive the nicely-packaged binary.

提交回复
热议问题