> For the complete documentation index, see [llms.txt](https://docs.meterian.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meterian.io/languages-support/swift-objective-c.md).

# 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](/the-client/the-meterian-client-dockerized.md), 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
