# Package Native Shader Library failed for IOS

**URL:** <https://forums.unrealengine.com/t/package-native-shader-library-failed-for-ios/446758>\
**Category:** Mobile\
**Tags:** xcode, windows, metal, unreal-engine, iOS, building, question\
**Created:** [April 6, 2019, 5:32pm UTC](https://forums.unrealengine.com/t/package-native-shader-library-failed-for-ios/446758 "2019-04-06T17:32:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick58d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@patrick58d](https://forums.unrealengine.com/u/patrick58d)\
**Post date:** [April 6, 2019, 5:32pm UTC](https://forums.unrealengine.com/t/package-native-shader-library-failed-for-ios/446758/1 "2019-04-06T17:32:48Z")

</div>

Hello,

Using 4.22, building for iOS 11/Metal 2.0. I am remotely building on windows, my mac has Xcode 10.1. I can build fine, however when I enable " Enable Remote Shader Compile " I get this error:

LogShaders: Error: Shader stripping failed: shader G:/git/Dodo\_Peak/DodoPeak/Saved/Shaders/SF\_METAL/ShaderDebug-DodoPeak-SF\_METAL (Native: true, Offline Compiled: 0) was not compiled to bytecode for native archiving!  
PackagingResults: Error: Shader stripping failed: shader G:/git/Dodo\_Peak/DodoPeak/Saved/Shaders/SF\_METAL/ShaderDebug-DodoPeak-SF\_METAL (Native: true, Offline Compiled: 0) was not compiled to bytecode for native archiving!  
UATHelper: Packaging (iOS): CookResults: Error: Package Native Shader Library failed for IOS.  
UATHelper: Packaging (iOS): LogCook: Display: Saved scl.csv G:/git/Dodo\_Peak/DodoPeak/Saved/Cooked/IOS/DodoPeak/Metadata/PipelineCaches/ShaderStableInfo-Global-SF\_METAL.scl.csv for platform IOS  
UATHelper: Packaging (iOS): LogCook: Display: Saved scl.csv G:/git/Dodo\_Peak/DodoPeak/Saved/Cooked/IOS/DodoPeak/Metadata/PipelineCaches/ShaderStableInfo-DodoPeak-SF\_METAL.scl.csv for platform IOS  
UATHelper: Packaging (iOS): LogCook: Display: ---- NOT Running UShaderPipelineCacheToolsCommandlet for platform IOS shader format SF\_METAL, no files found at G:/git/Dodo\_Peak/DodoPeak/Build/IOS/PipelineCaches/\*DodoPeak\_SF\_METAL.stablepc.csv  
UATHelper: Packaging (iOS): LogShaderLibrary: Display:

I can build without “Enable Remote Shader Compile” however when running the app on an iOS device, I experience significant hitches and slow downs as the shaders are compiled in runtime. I have also tried PSO caching (new feature in 4.21) however this seems to make no difference whatsoever in reducing these hitches. If anyone has any advice please let me know. Thank you!

---

<div class="post-metadata">

**Author:** ![patrick58d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@patrick58d](https://forums.unrealengine.com/u/patrick58d)\
**Post date:** [April 8, 2019, 1:20pm UTC](https://forums.unrealengine.com/t/package-native-shader-library-failed-for-ios/446758/2 "2019-04-08T13:20:51Z")

</div>

If anyone has general advice on reducing hitches on iOS too, that be great! Android and Windows run great.

---

<div class="post-metadata">

**Author:** ![patrick58d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@patrick58d](https://forums.unrealengine.com/u/patrick58d)\
**Post date:** [May 5, 2019, 12:19pm UTC](https://forums.unrealengine.com/t/package-native-shader-library-failed-for-ios/446758/3 "2019-05-05T12:19:40Z")

</div>

Anyone else having this issue?

---

<div class="post-metadata">

**Author:** ![Pirate\_Tony](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pirate\_Tony](https://forums.unrealengine.com/u/Pirate_Tony)\
**Post date:** [June 27, 2020, 12:39pm UTC](https://forums.unrealengine.com/t/package-native-shader-library-failed-for-ios/446758/4 "2020-06-27T12:39:33Z")

</div>

PSO still broken …

---

<div class="post-metadata">

**Author:** ![Alex\_Gimson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alex\_Gimson](https://forums.unrealengine.com/u/Alex_Gimson)\
**Post date:** [June 30, 2020, 3:44pm UTC](https://forums.unrealengine.com/t/package-native-shader-library-failed-for-ios/446758/5 "2020-06-30T15:44:37Z")

</div>

I’m also having issues compiling the Metal shaders. I can move the project onto the local Mac hardware and package from there with no problems, it’s just the remote compiling that seems to fail.
