How to work with Cocoa application and plugins in parallel?

I have a relatively simple goal: I want to create a Cocoa application that does not have much functionality, but expands through plugins. In addition, I want to work on several plugins to provide users with real functionality (and working examples).

Since I plan to make the application and each plugin separate open-source projects (and Git repositories), now I am looking for the best way to organize my files and Xcode projects. I am not very experienced with Xcode, and right now I don’t see a simple way to make it work without copying files after the build.

This is a simple monolithic installation that I have used for development so far: There is only one Xcode project with several products:

  • Main application
  • Plugin development framework
  • Multiple Plugin Packages

I am looking for a convenient way to divide them into several Xcode projects (one for the application and the framework) and one for each plugin. Since my application is still at an early stage of development, I am still changing a lot of things in both the application and the plugins. So, what I mean by “convenient” is that I don’t want to copy files manually or similar inconveniences.

I need plug-in projects to know where they can find the current development structure, and the application should know where to find development plug-ins. Something like a dependency between projects would be best, but I could not find a way to configure something like this in Xcode.

, , ( ) " " , . /tmp/development, .

, , , , . .

+3
1

-, " ", . ; . ( , "" , ), , / , .

, ( ), Target "Get Info", Direct Dependency .

. , :

/MyProject
    /Framework
    /Application
    /Plugins
        /Plugin1
        /Plugin2

. , .

script, "xcodebuild". ( , Xcode), , , "xcodebuild" , , script.

+4

Source: https://habr.com/ru/post/1727264/


All Articles