请问如何将Objective-C代码和虚幻4整合发布在IOS上?

如题,请问如何将Objective-C写的IOS原生XCODE代码整合进虚幻4引擎然后发布在IOS上?提前谢谢大家的回复,在线等!

build 系统
https://docs.unrealengine.com/latest/INT/Programming/UnrealBuildSystem/TargetFiles/

例子

打包以及发布

帮你整理下格式。赞收集。

简单结论

  1. How to add iOS Plugin's .bundle?? - Plugins - Epic Developer Community Forums

Build 系统

  1. https://docs.unrealengine.com/latest/CHN/Programming/UnrealBuildSystem/TargetFiles/index.html
  2. c# - Unreal Engine 4 linking iOS Libraries - Stack Overflow
  3. Can we use Objective-C code and iOS framework in UE4? - Mobile - Epic Developer Community Forums
  4. IOS - How to add a framework with bundle. - Plugins - Epic Developer Community Forums
  5. Universal Mobile Ads for iOS & Android - Marketplace - Epic Developer Community Forums
  6. IOS AdProvider with third party framework - Mobile - Epic Developer Community Forums

示例

  1. GitHub - getsetgames/Fabric: A plugin for Unreal Engine 4 that integrates Twitter's Fabric SDK.
  2. GitHub - gameDNAstudio/ParsePlatform: A plugin for Unreal Engine 4 that lets you integrate Parse.com native features into your project.
  3. GitHub - getsetgames/Sharing: A plugin for Unreal Engine 4 that enables native sharing on iOS
  4. GitHub - GameAnalytics/GA-SDK-UNREAL: A repository containing the GameAnalytics Unreal4 Plugin including documentation.
  5. GitHub - getsetgames/Upsight: Unreal plugin for integrating the Upsight SDK. Details can be found on their website http://www.upsight.com/

打包以及发布

  1. Publishing a game on ios - Mobile - Epic Developer Community Forums

肖吉星 收集整理

1 Like

谢谢你这么详细的回答,但是并没有解决我面临的问题。虽然可以改成.mm后缀让虚幻4识别并发布,但是必须全部整合进一个.mm中才能识别。有很多第三方的代码,要全部整合进一个.mm里很复杂也不利于管理和以后开发。请问有什么办法能让引擎识别这些Objective-C的第三方的代码? 不知道我表达清楚没有,再次感谢。 请先Uncheck accepted我的问题,谢谢。

这个问题就更清楚一些了。

看起来应该是将第三方的 mm 文件编译成静态库,然后通过 Unreal 的 UBT 把所需静态库链接到 Unreal 的编译链接环境中?

源码和静态库 framework 均可以 只要 build.cs 设置好 会自动复制 且链接库

谢谢你们的回复,我尝试着在Build.cs里面设置,但是报错称找不到TestViewControl.h。如图,为什么会找不到?

再次感谢你的回答,现有的功能基本上都能正常使用了。但是.a的文件还是无法识别。请问如何加载动态库?在APP里想使用第三方的支付,例如支付宝和微信。

至于framework 上面链接中已经提及
下面是windows 平台的

下面的是ios 静态库.a 的

你可以在像ios 开发那样 链接静态库

你也可以用示例中将静态库放在plugin 里你的module 或者ThirdParty module里 在 build.cs 指明库路径 库和头文件路径 加入宏定义也可 或者 引用plugin 里的ThirdParty 的module(

参照 ComScore/ComScore.Build.cs at master · getsetgames/ComScore · GitHub
里面的写法 已经文件结构 里面有静态库 和安卓包

而且 Get Set Games · GitHub 有客观的针对移动端的UE4 插件 既有 framework 也有静态包 也有安卓的jar 包 so 我没看到, 仔细参照 build.cs 写法 和 upplugin 里的 module type 和 loading phrase Plugins | Unreal Engine Documentation

十分感谢你耐心详细的解答,目前这个问题已经成功解决了。现在我面临着另一个问题,希望能得到帮助。
【如何在手机端[IOS][Android]使用APEX模拟布料?】

再次感谢。

提及不相关的 请另开主题 保持帖子 主题集中和篇幅 便于其他人查找
UE4 并不是3dmax
直接在3dmax 或者maya

Unreal Engine 4 Tutorial: APEX Cloth (english) - YouTube
PhysX SDK | NVIDIA Developer
一个是Physx Lab