> For the complete documentation index, see [llms.txt](https://docs.movesdk.com/move-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.movesdk.com/move-platform/sdk/troubleshooting/ios.md).

# iOS

## Cocoapods

When setting up a new project with XCode 15.0 or above you need to make sure **User Script Sandboxing** is turned off.&#x20;

Error:&#x20;

```
Command PhaseScriptExecution failed with a nonzero exit  code
```

Build log:

```
Run custom shell script '[CP] Embed Pods Frameworks'
```

Solution:

Set **User Script Sandboxing** to **No** in the project or target **Build Settings**.

<figure><img src="/files/asviHZw6HG7eXJBudGYD" alt=""><figcaption><p>Target <strong>Build Settings</strong>.</p></figcaption></figure>

## Swift Package Manager

Package resolution fails with:

```
failed with: invalid archive returned from 'https://storage.googleapis.com/cdn.dolph.in/sdk/.../DolphinMoveSDK.xcframework.zip'
```

Solution:

```
# this is required
rm -rf ~/Library/Caches/org.swift.swiftpm

# this may be required
rm -rf ~/Library/org.swift.swiftpm
```

"File > Packages > Reset Package Caches" is not sufficient.

Neither is  `swift package purge-cache`.

## Derived Data

Sometimes build issues can arise when updating to a new version, such as from 2.14 -> 2.15, and it is necessary to clear the build data. By default this is located at "*\~/Library/Developer/Derived Data*".

This may also be a necessary step in a build system, i.e:

#### Fastlane

This is often a common step. See: <https://docs.fastlane.tools/actions/clear_derived_data/>

```ruby
clean_build_artifacts
clear_derived_data
```


---

# 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.movesdk.com/move-platform/sdk/troubleshooting/ios.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.
