How to embed ParseKit as a private framework in a Mac App bundle

前端 未结 4 811
后悔当初
后悔当初 2020-12-15 10:32

I need to install ParseKit to compile with cocoa under Mac Os X, I use xcode 4. I have searched online but there is only a guide for installing parse kit for iPhone. Where d

4条回答
  •  轮回少年
    2020-12-15 11:14

    1. Open your project in Xcode 4
    2. Make sure Project Navigator is shown
    3. Ctrl click on your project file (the blue page icon)
    4. Select Add Files to "YourProjectName"
    5. Select ParseKit.xcodeproj
    6. In Project Navigator select your project file
    7. Go to Build Phases
    8. Disclose Link Binary With Libraries and either add ParseKit.framework by clicking + or drag'n'drop it from Project Navigator's Products directory of ParseKit.framework
    9. Add Copy File phase by clicking bottom right Add Build Phase button.
    10. Set destination to frameworks
    11. Repeat 8, but for new build phase

    You may also need to add Target Dependency: repeat step 8, but for this phase. But looks like Xcode can sort out them itself.

    I also recommend you to create a Workspace, it makes managing of subproject much easier and looks like this fixes most part of potential problems, because if Xcode fails to resolve dependencies, you can always add script to copy files manually, since products of projects will share the same build directory.

提交回复
热议问题