Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

plugin for iOS framework with bundle

I'd like to write UE4 plugin which links to iOS framework which uses iOS bundle. The bundle is outside that framework and to use this framework in Xcode project i would have to add both to project.

I know i can add frameworks to plugins but what about that bundle. Can UE4 plugin contain such bundle? And does Unreal Build Tool know how to handle it?

More details: that bundle contains xcdatamodel for Core Data purposes.

Product Version: Not Selected
more ▼

asked Oct 27 '14 at 02:44 PM in Packaging & Deployment

avatar image

1 1 2 4

avatar image mxmat Oct 27 '14 at 03:07 PM

additional info: A bundle is a directory with a standardized hierarchical structure that holds executable code and the resources used by that code.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

We don't have proper generalized support for plugins containing stuff like that - it's on the list for the next month or two. We have extra bundle support in the TapJoy plugin (Engine\Plugins\Runtime\Advertising\IOSTapJoy), you might be able to start there. It's a bit kludgey, but it does work.

more ▼

answered Oct 29 '14 at 10:46 PM

avatar image

joshbadams STAFF
1.3k 19 7 46

avatar image mxmat Nov 04 '14 at 08:34 AM

I cant get IOSTapJoy to work.
When i run puzzle game example or top down example i get message "Plugin 'IOSTapJoy' failed to load because module IOSTapJoy could not be found. "

I just created new project, enabled plugin in Window plugins, restarted editor.

Engine version 4.5.1. Xcode 6.1.
I run it on device ipad3 ios7.1.2.

How to get it run in some example?

avatar image joshbadams STAFF Nov 04 '14 at 04:24 PM

Can you verify that you have these settings in either your Config\DefaultEngine.ini or the Config\IOS\IOSEngine.ini (in your project):

[Advertising] DefaultProviderName=IOSTapJoy

[Plugins] +EnabledPlugins="IOSTapJoy"

avatar image mxmat Nov 05 '14 at 11:26 AM

I didn't have those settings.
So I added them to ConfigDefaultEngine.ini (in project) but it still the same. Log shows: LogPlayLevel:Display: env: LogModuleManager:Warning: ModuleManager: Module 'IOSTapJoy' not found - its StaticallyLinkedModuleInitializers function is null.

I also verified that .uproject file has: "Plugins": [ { "Name": "IOSTapJoy", "Enabled": true } ]

The ConfigIOSIOSEngine.ini is absent in my project but i found it in engine src. I also added blueprints to show banner and they show iads. btw. I run OSX 10.9.5.

avatar image joshbadams STAFF Nov 05 '14 at 06:52 PM

You don't need the IOSEngine.ini in your project, it's optional.

When you compile for IOS, I guess you aren't seeing the TapJoy module being compiled?

avatar image mxmat Nov 06 '14 at 10:34 AM

Right, no TapJoy compilation in log - only packaging. Importat thing: I noticed its not just IOSTapJoy problem becouse i get this plugin-not-found message for more plugins: IOSApsalar, even for refactored blank plugin.

avatar image joshbadams STAFF Nov 06 '14 at 01:59 PM

Okay, there is something keeping it from compiling. I currently don't have source code access (on a plane), but I would suggest debugging (or adding logging to) the UnrealBuildTool code in Plugin.cs (I believe) that looks over the plugins and see why it's not being compiled.

avatar image mxmat Nov 13 '14 at 08:21 AM

Im really gratefull for your guidance. Currently Im figuring out how to debug UBT. Do you have some more suggestions :) ?

avatar image mxmat Nov 13 '14 at 12:47 PM

I didnt mention i used Blueprints example projects. So i tried with code projects - build fails with error:

 clang: error: no such file or directory: '/Users/Shared/UnrealEngine/4.5/Engine/Plugins/Runtime/Advertising/IOSTapJoy/Binaries/IOS/IOSTapJoy-Static.a' 

same error for IOSApsalar plugin.

My steps for code projects:

  1. Updated settings in IOSEngine.ini

  2. Enabled plugins in Editor

  3. Verified settings in IOSEngine.ini

  4. Generated Xcode Project from .uproject

  5. Attempted to run in both editor and xcode

avatar image joshbadams STAFF Nov 13 '14 at 03:00 PM

Ahhh, you weren't compiling code, yeah, plugins can't work with the pre-made executables because iOS doesn't technically support DLLs. There is a hack for it to support .dylib files, but you can't ship a game with it.

As for the missing TapJoy static library, I will have to ask around about that one.


avatar image joshbadams STAFF Nov 14 '14 at 12:07 AM

Yes, that library was missing from the subscription binaries. I am working on getting a .a compiled with 4.5, but we should be good to go with 4.6 going forward (no more missing plugin libs).

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question