# Saving shared material shader code library failed for IOS

**URL:** <https://forums.unrealengine.com/t/saving-shared-material-shader-code-library-failed-for-ios/511509>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS, UE4-27, question\
**Created:** [April 1, 2022, 11:18am UTC](https://forums.unrealengine.com/t/saving-shared-material-shader-code-library-failed-for-ios/511509 "2022-04-01T11:18:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kurumi\_Kakako](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurumi_kakako/32/983515_2.png) [@Kurumi\_Kakako](https://forums.unrealengine.com/u/Kurumi_Kakako)\
**Post date:** [April 1, 2022, 11:18am UTC](https://forums.unrealengine.com/t/saving-shared-material-shader-code-library-failed-for-ios/511509/1 "2022-04-01T11:18:39Z")

</div>

When I tried to deploy the project to iPhone, I got such an error. Could someone help me? Thanks!!!

```auto
LogMetalShaderCompiler: Display: Archiving 3830 shaders for shader platform: SF_METAL
LogMetalShaderCompiler: Error: Archiving failed: metal-ar failed with code 1: 
OVERVIEW: LLVM Archiver (llvm-ar)
  This program archives bitcode files into single libraries
USAGE: llvm-ar [options] [relpos] [count] <archive-file> [members]...
OPTIONS:
  -M -
  -format - Archive format to create
    =default - default
    =gnu - gnu
    =darwin - darwin
    =bsd - bsd
  -plugin=<string> - plugin (ignored for compatibility
  -help - Display available options
  -version - Display the version of this program
OPERATIONS:
  d[NsS] - delete file(s) from the archive
  m[abiSs] - move file(s) in the archive
  p[kN] - print file(s) found in the archive
  q[ufsS] - quick append file(s) to the archive
  r[abfiuRsS] - replace or insert file(s) into the archive
  t - display contents of archive
  x[No] - extract file(s) from the archive
MODIFIERS (operation specific):
  [a] - put file(s) after [relpos]
  [b] - put file(s) before [relpos] (same as [i])
  [D] - use zero for timestamps and uids/gids (default)
  [i] - put file(s) before [relpos] (same as [b])
  [o] - preserve original dates
  [s] - create an archive index (cf. ranlib)
  [S] - do not build a symbol table
  [T] - create a thin archive
  [u] - update only files newer than archive contents
  [U] - use actual timestamps and uids/gids
MODIFIERS (generic):
  [c] - do not warn if the library had to be created
  [v] - be verbose about actions taken
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/metal/ios/bin/metal-ar: Unknown command: ??C.
LogZipArchiveWriter: Display: Closing zip file with 3830 entries.
LogCook: Error: Saving shared material shader code library failed for IOS.

```

---

<div class="post-metadata">

**Author:** ![toughcactus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/toughcactus/32/88706_2.png) [@toughcactus](https://forums.unrealengine.com/u/toughcactus)\
**Post date:** [April 23, 2023, 5:03pm UTC](https://forums.unrealengine.com/t/saving-shared-material-shader-code-library-failed-for-ios/511509/2 "2023-04-23T17:03:15Z")

</div>

It Occurred to me too.

There are Chinese characters in my project path, so I zip the project and change its path with no space and only English words, then problem solved.
