# Troubleshooting

Here's how to troubleshoot when integrating PubStar SDK in your project

### 1. Operation not permitted error

When you build your project, you may see the error `... : Operation not permitted`. This means that your project entered a `User Script Sandbox` mode. To fix this, you need to disable the `User Script Sandbox` mode in your project settings. Following this instrusction:

* Open `Your_Project` in Xcode.
* Select `Your_Project` in the Project Navigator.
* Select `Your_Target`.
* Go to the `Build Settings` tab.
* Expand the `Build Options` section.
* Set the `User Script Sandbox` option to `No`.

### 2. When runtime, you are facing error `Library not loaded: @rpath/PrebidMobile.framework/PrebidMobile`

Enable use\_frameworks! in your Podfile.

**Required Fix** Update your `Podfile` as follows:

```ruby
platform :ios, '13.0'

target 'YourAppName' do
  use_frameworks!

  pod 'Pubstar'
end
```

Then run:

```ruby
pod install
```

Clean and rebuild the project before running again.


---

# 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://pub-star.gitbook.io/docs/1.5.0/ios-sdk/troubleshooting.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.
