[unreal] 制作第三方 SDK 注意事项

https://answers.unrealengine.com/questions/338300/ios-how-to-add-a-framework-with-bundle.html

  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"
 
 )
 ); 
  1. 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.

  1. 创建一个 sb.embeddedframework 文件夹
  2. 拷贝 .framework 框架到这个文件
  3. 拷贝 sb.bundle 文件夹到 sb.embeddedframework/Resources 目录
  1. 如何调试输出

SdkboxChartboostPrivatePCH.h 中定义

DECLARE_LOG_CATEGORY_EXTERN(LogChartboost, Log, All);

SdkboxChartboost.cpp 中定义

DEFINE_LOG_CATEGORY(LogChartboost);

使用:

UE_LOG(LogChartboost, Log, TEXT("onChartboostFailedToLoad"));

你可能感兴趣的:([unreal] 制作第三方 SDK 注意事项)