# Packaging iOS as a framework

**URL:** <https://forums.unrealengine.com/t/packaging-ios-as-a-framework/474101>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, iOS, framework, packaging-projects, question\
**Created:** [November 6, 2020, 5:27pm UTC](https://forums.unrealengine.com/t/packaging-ios-as-a-framework/474101 "2020-11-06T17:27:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_82cfda8a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_82cfda8a](https://forums.unrealengine.com/u/anonymous_user_82cfda8a)\
**Post date:** [November 6, 2020, 5:27pm UTC](https://forums.unrealengine.com/t/packaging-ios-as-a-framework/474101/1 "2020-11-06T17:27:44Z")

</div>

I’m running into some issues with packaging up the iOS version as a framework. Here’s what I’ve tried so far:

- checked “export as a framework”
- Set provisioning profile & certificate
- File → Package Project → iOS

This is where the first errors pops up

```
UATHelper: Packaging (iOS): ERROR: MyProject modifies the value of bShouldCompileAsDLL. This is not allowed, as MyProject has build products in common with UE4Game.
UATHelper: Packaging (iOS): Remove the modified setting, change MyProject to use a unique build environment by setting 'BuildEnvironment = TargetBuildEnvironment.Unique;' in the MyProjectTarget constructor, or set bOverrideBuildEnvironment = true to force this setting on.
PackagingResults: Error: MyProject modifies the value of bShouldCompileAsDLL. This is not allowed, as MyProject has build products in common with UE4Game.

```

- In attempt to fix, I open MyProject.Target.cs and modify it to look like this:

- I rebuild, but get this message:

- This regenerates the MyProject.Target.cs file without the added ‘ BuildEnvironment = TargetBuildEnvironment.Unique;’ line.

- I disable the plugins so that the file is not regenerated (just attempting to get it to work, I know this isn’t a permanent solution).

- The build succeeds this time, however the file created. Is a .ipa file and I’m looking for a .framework file.

I’ve tried this process on both 4.25 and the 4.26 preview.

I must be doing something wrong? There must be some sort of intermediary step in there?
