This page gives you an overview how to produce bundles from XCode Projects for Libraries and how to consume them out of a XCode Application. This feature is available starting with version 1.1.0 of the Maven Xcode Plugin.
|-- project-root |-- src | |-- xcode The "xcode" folder contains the whole XCode project. Copy your project here. | |-- <sources>, ... | |-- MyNewProject.xcodeproj | |-- MyNewProject.bundle This folder contains the default bundle to be packaged for the library. Optional. | |-- <AdditionalBundle1.bundle> Additional bundles could be defined in parallel folders or in sub-folders | |-- Resources |-- <AdditionalBundle2.bundle> | |-- MyNewProjectTests | |-- <sources>, ... | ..... | |-- pom.xml The pom.xml has to be created on the same level as the "src" folder
The bundle, located parallel to the MyNewProject.xcodeproj and called MyNewProject.bundle will be packaged automatically during the library build from the Maven Xcode Plugin. No configuration steps needed.
A Library project could expose arbitrary number of bundles. In this case they must be explicitly declared in your pom file.
Example snippet:
pom.xml.... <build> <plugins> <plugin> <groupId>com.sap.prd.mobile.ios.mios</groupId> <artifactId>xcode-maven-plugin</artifactId> <extensions>true</extensions> <configuration> <bundles> <bundle>AdditionalBundle1</bundle> <bundle>Resources/AdditionalBundle2</bundle> </bundles> </configuration> </plugin> .... </plugins> </build>
The dependent project is already specified in the dependencies section of the pom.xml.