IOS - How to add a framework with bundle.

Hello,
I am trying a create a plugin for UE which requires me to add a framework and a bundle.
I know,how to add framework as i have been able to create few plugins successfully,but,i don’t know,how to add bundle.
I have looked into the source code and found that TapJoy plugin is using a bundle,but,when i try to create an alias and then move that alias in a new folder which is named as resources just like in TapJoy plugin it does not work during runtime.
It gives me an error something like. cp No such file or directory.

My build.cs

PublicAdditionalFrameworks.Add(
                new UEBuildFramework(
                    "MyPlugin",
                    "../../ThirdParty/MyPlugin.embeddedframework.zip",
                    "Resources/myPlugin.bundle"

                )
            );

Thank you!

Ok,today after playing around in XCode and Unreal engine,i finally found the solution for my problem.
It was really small and i should have read the XCode error more carefully before.
The problem was when UE was trying to unzip the file,it was ignoring the space in the folder name “Unreal Project” and was trying to consider it as “UnrealProject”,while it was trying copy the .bundle from the Resources folder during compiling in XCode.
I wonder whether it is a bug,because,i thought that this thing was fixed.
Anyways,i am posting the entire guide for including a framework with bundle just in case anybody else faces the same issue as i was facing.

  1. Make a something.embeddedframework (or any folder name you like) folder in a ThirdParty folder .

  2. Copy and paste the something.framework in this something.embeddedframework folder.

  3. Make a Resources folder in something.embeddedframework folder.

  4. Copy and paste the something.bundle in this something.embeddedframework/Resources folder.

  5. In your build.cs add this code…

    PublicAdditionalFrameworks.Add(
    new UEBuildFramework(
    “MyPlugin”,
    “…/…/ThirdParty/something.embeddedframework.zip”,
    “Resources/something.bundle”

                  )
              );  
    
  6. As of UE 4.10 make sure that you remove any spaces in your folder names in the entire path.
    The easiest way to check is by going to the folder you to check,open the terminal and just drag and drop the folder.
    Check if you have anything like \ in the path in any specific folder name,if you find anything like that,just rename the folder with no spaces in it.

I hope that,it helps you.

if i have 2 bundles in 1 framework what should i do using UEBuildFramework()? As i can only use one bundlename in the constructor

Sorry for being so late.
I was very busy with my work and other stuffs and also,due to some reasons i was not getting any notifications.
I hope that,you have found solution to your problem.

I have not tried it,but,i think, you can simply copy and paste the same code with different bundle name.
It should work.
I hope that it helps you.

Just noting that your framework cannot be a dynamic framework. It must be static. As of UE 4.20, dynamic frameworks don’t seem to be supported.

Hello, did you found a way to add 2 bundles?