---
page_title: Installing Assets Plugin
product: UPI Plugin SDK
platform: iOS
page_source: https://juspay.io/in/docs/upi-plugin-sdk/ios/getting-the-sdk/adding-plugin
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/upi-plugin-sdk/llms.txt
---


## Installing Assets Plugin



UPI In-app SDK depends on certain assets to function. These are available over the air and are supposed to be present while building the SDK. The Assets Plugin is a build time dependency that downloads all required assets and ensures the availability of the latest assets at build time.

To install Assets Plugin follow the below steps:


### Step 1 Add Post Install Script to Podfile


This Ruby Script will download all the latest assets required for proper functioning of your SDK integration



#### Code Snippets: -

#### Objective-C Code Snippet:

```objective-c
use_frameworks!


target '<project_target>' do       # To be added by merchant
  # Adding Hyper SDK dependecy
  # block:start:adding-hyper-sdk-pod
  pod 'HyperQR', '2.2.4'         # Has to be removed for plugin and direct integration
  pod 'HyperSDK', '2.2.4'
  pod 'HyperUPI', '2.2.4'
  
  # block:end:adding-hyper-sdk-pod
end


# Adding Hyper SDK dependecy
# block:start:adding-plugin-installation-script
post_install do |installer|
 fuse_path = "./Pods/HyperSDK/Fuse.rb"
 clean_assets = false # Pass true to re-download all the assets
 if File.exist?(fuse_path)
   if system("ruby", fuse_path.to_s, clean_assets.to_s)
   end
 end
end
# block:end:adding-plugin-installation-script
```

#### Swift Code Snippet:

```swift
use_frameworks!


target '<project_target>' do       # To be added by merchant
  # Adding Hyper SDK dependecy
  # block:start:adding-hyper-sdk-pod
  pod 'HyperQR', '2.2.4'         # Has to be removed for plugin and direct integration
  pod 'HyperSDK', '2.2.4'
  pod 'HyperUPI', '2.2.4'
  
  # block:end:adding-hyper-sdk-pod
end


# Adding Hyper SDK dependecy
# block:start:adding-plugin-installation-script
post_install do |installer|
 fuse_path = "./Pods/HyperSDK/Fuse.rb"
 clean_assets = false # Pass true to re-download all the assets
 if File.exist?(fuse_path)
   if system("ruby", fuse_path.to_s, clean_assets.to_s)
   end
 end
end
# block:end:adding-plugin-installation-script
```



### Step 2 Add MerchantConfig.txt


The MerchantConfig.txt contains a clientId which helps the Assets plugin to download assets specific to your application

Create a .txt file named `MerchantConfig.txt` inside the directory of your project. Add `clientId = your_client_id`to this file. Please note to add this to the folder where Podfile is present



#### Code Snippets: -

#### Swift Code Snippet:

```swift
clientId = <clientId> shared by Juspay Team
```

#### Objective-C Code Snippet:

```objective-c
clientId = <clientId> shared by Juspay Team
```



### Step 3 Install Podfile


Post adding all dependencies of Podfile, In terminal, run command the following commands:`pod repo update``pod install`

> **Note**
> **The Output of pod install should give below logs in addition to other logs.** [HyperSDK] Client ID - clientId shared by Juspay Team[HyperSDK] Downloading assets...[HyperSDK] XX file(s) downloaded/updated.[HyperSDK] Adding the required URL Schemes & Queries Schemes in plist files[HyperSDK] Plist file path: ./{Project Name}/Info.plist[HyperSDK] Done.





---

## Complete Code Reference

The following code files are referenced in the steps above:

### Podfile

```
use_frameworks!


target '<project_target>' do       # To be added by merchant
  # Adding Hyper SDK dependecy
  # block:start:adding-hyper-sdk-pod
  pod 'HyperQR', '2.2.4'         # Has to be removed for plugin and direct integration
  pod 'HyperSDK', '2.2.4'
  pod 'HyperUPI', '2.2.4'
  
  # block:end:adding-hyper-sdk-pod
end


# Adding Hyper SDK dependecy
# block:start:adding-plugin-installation-script
post_install do |installer|
 fuse_path = "./Pods/HyperSDK/Fuse.rb"
 clean_assets = false # Pass true to re-download all the assets
 if File.exist?(fuse_path)
   if system("ruby", fuse_path.to_s, clean_assets.to_s)
   end
 end
end
# block:end:adding-plugin-installation-script
```

### MerchantConfig.txt

```
clientId = <clientId> shared by Juspay Team
```


---

## See Also

- [Installing the SDK](https://juspay.io/in/docs/upi-plugin-sdk/ios/getting-the-sdk/getting-sdk)
- [Adding Frameworks](https://juspay.io/in/docs/upi-plugin-sdk/ios/getting-the-sdk/adding-frameworks)
