# Xcode errors: fmod\_register\_static\_plugins.cpp and fmodplugins.cpp can't be found

**URL:** <https://qa.fmod.com/t/xcode-errors-fmod-register-static-plugins-cpp-and-fmodplugins-cpp-cant-be-found/21468>\
**Category:** Unity\
**Created:** [April 9, 2024, 1:19am UTC](https://qa.fmod.com/t/xcode-errors-fmod-register-static-plugins-cpp-and-fmodplugins-cpp-cant-be-found/21468 "2024-04-09T01:19:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![icockrum](https://avatars.discourse-cdn.com/v4/letter/i/2acd7d/32.png) [@icockrum](https://qa.fmod.com/u/icockrum)\
**Post date:** [April 9, 2024, 1:19am UTC](https://qa.fmod.com/t/xcode-errors-fmod-register-static-plugins-cpp-and-fmodplugins-cpp-cant-be-found/21468/1 "2024-04-09T01:19:31Z")

</div>

I have just upgraded FMOD to version 2.02.21 and I’m trying to build to iOS. Xcode generates these errors:

Build input file cannot be found: ‘/Users/[my-user]/www/[my-project]/\_builds/iOS/[my-app]/Libraries/Plugins/FMOD/Cache/fmod\_register\_static\_plugins.cpp’. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

Build input file cannot be found: ‘/Users/[my-user]/www/[my-project]/\_builds/iOS/[my-app]/Libraries/Plugins/FMOD/src/Runtime/fmodplugins.cpp’. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

With regards to the first item, the only reference I have found to fmod\_register\_static\_plugins is here in this legacy code block:  
/Assets/Plugins/FMID/src/Settings.cs

```auto
    internal static class Legacy
    {
#if UNITY_EDITOR
        private const string RegisterStaticPluginsAssetPathRelative =
            "/Plugins/FMOD/Cache/fmod_register_static_plugins.cpp";

```

With regards to the second item, I found only this reference:  
/Assets/Plugins/FMOD/src/Editor/FileReorganizer.cs

```auto
            private static readonly MoveRecord[] looseAssets = {
                // Release 1.10 layout
                new MoveRecord() { source = FMODRoot + "/fmodplugins.cpp", destination = "obsolete" },

```

It appears that both of these files are obsolete in this version of FMOD, but my Unity project appears to still have references to them. How can I remove these references?

---

<div class="post-metadata">

**Author:** ![icockrum](https://avatars.discourse-cdn.com/v4/letter/i/2acd7d/32.png) [@icockrum](https://qa.fmod.com/u/icockrum)\
**Post date:** [April 9, 2024, 1:31am UTC](https://qa.fmod.com/t/xcode-errors-fmod-register-static-plugins-cpp-and-fmodplugins-cpp-cant-be-found/21468/2 "2024-04-09T01:31:09Z")

</div>

> [@icockrum](#):
>
> fmod\_register\_static\_plugins.cpp

![Screenshot 2024-04-08 at 6.26.25 PM](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/3/3073b0b24b66e5123e97767f20a490dca26371e4.png)

Digging further into my xcode error, I found these files labeled in red. In addition to the two missing files that threw specific errors, I see also that xcode believes this file to be missing:

/Assets/Plugins/FMOD/lib/ios/libfmodstudiounityplugin.a

However, I moved that file because the File Reorganizer considered it to be missing when it was in that location. Its new location is here:

/Assets/Plugins/FMOD/platforms/ios/lib/libfmodstudiounityplugin.a

So it seems to me that my project still has some cached references to the prior version of FMOD. How can I update these?

---

<div class="post-metadata">

**Author:** ![icockrum](https://avatars.discourse-cdn.com/v4/letter/i/2acd7d/32.png) [@icockrum](https://qa.fmod.com/u/icockrum)\
**Post date:** [April 9, 2024, 4:34am UTC](https://qa.fmod.com/t/xcode-errors-fmod-register-static-plugins-cpp-and-fmodplugins-cpp-cant-be-found/21468/3 "2024-04-09T04:34:14Z")

</div>

Ah hah. I discovered what I was missing. I’d been appending my Unity-\>Xcode build rather than replacing, and so presumably leaving old references in place. Just needed to rebuild the xcode project from scratch.
