# Swift / Objective-C

This analyser is able to run on CocoaPods and/or SwiftPM projects.

For Cocoapods project, it is triggered when either a Podfile or a Podfile.lock file is found in the root folder. When operating on such project the analyser will use the “pod” command in order to load the dependencies graph. If a lock is present, no tooling is necessary.

For SwiftPM, it is triggered when a Package.swift file is found in the root folder. When operating on such project the analyser will use the “swift” command in order to load the dependencies graph. In absence of a Package.swit, the system will analyse the "Package.resolved" files that can be found (in that situation there's no need to have the Swift tooling installed).  Please note that, if using the [dockerized client](https://docs.meterian.io/the-client/the-meterian-client-dockerized), the default image will not contain the tool, and you will need to use the specific image for the language.&#x20;

The analyser automatically supports projects adopting an hybrid setup where both of the above tooling manage the dependencies. If the requirements listed above are all met the analyser will load dependencies from Cocoapods and SwiftPM.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.meterian.io/languages-support/swift-objective-c.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
