Fmod_register_static_plugins.cpp not found

MacOS: 11.2 (20D64)
Unity: 2020.2.3f1
Fmod plugin: 2.01.07
Target platform: iOS

Hi! I have exported a project to xcode and am trying to build an application.

No such file on this path.

Log:

CompileC /Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/Objects-normal/arm64/fmod_register_static_plugins.o /Users/borismazanov/Documents/projects/DestroyCar11/Assets/Plugins/FMOD/Cache/fmod_register_static_plugins.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'UnityFramework' from project 'Unity-iPhone')
    cd /Volumes/ESD-USB/DestroyiOS2
    export LANG\=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target arm64-apple-ios11.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=c++11 -stdlib\=libc++ -fmodules -gmodules -fmodules-cache-path\=/Users/borismazanov/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/borismazanov/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=UnityFramework -Wno-trigraphs -fno-rtti -fno-sanitize\=vptr -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCOCOAPODS\=1 -DPB_FIELD_32BIT\=1 -DPB_NO_PACKED_STRUCTS\=1 -DPB_ENABLE_MALLOC\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility\=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -fembed-bitcode -iquote /Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/UnityFramework-generated-files.hmap -I/Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/UnityFramework-own-target-headers.hmap -I/Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/UnityFramework-all-non-framework-target-headers.hmap -ivfsoverlay /Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/all-product-headers.yaml -iquote /Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/UnityFramework-project-headers.hmap -I/Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/include -I/Volumes/ESD-USB/DestroyiOS2/Pods/Headers/Public -I/Volumes/ESD-USB/DestroyiOS2/Pods/Headers/Public/GoogleUtilities -I/Volumes/ESD-USB/DestroyiOS2/Pods/Headers/Public/PromisesObjC -I/Volumes/ESD-USB/DestroyiOS2/Pods/Headers/Public/nanopb -I/Sources/FBLPromises/include -I/Volumes/ESD-USB/DestroyiOS2/Classes -I/Volumes/ESD-USB/DestroyiOS2 -I/Volumes/ESD-USB/DestroyiOS2/Classes/Native -I/Volumes/ESD-USB/DestroyiOS2/Libraries/bdwgc/include -I/Volumes/ESD-USB/DestroyiOS2/Libraries/libil2cpp/include -I/Volumes/ESD-USB/DestroyiOS2/Libraries/libil2cpp/include/pch -I/Volumes/ESD-USB/DestroyiOS2/Libraries/external/baselib/Include -I/Volumes/ESD-USB/DestroyiOS2/Libraries/external/baselib/Platforms/IOS/Include -I/Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/DerivedSources-normal/arm64 -I/Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/DerivedSources/arm64 -I/Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/DerivedSources -Wno-missing-declarations -F/Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -F/Volumes/ESD-USB/DestroyiOS2/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current -F/Volumes/ESD-USB/DestroyiOS2/Pods/GoogleAppMeasurement/Frameworks -F/Volumes/ESD-USB/DestroyiOS2/Pods/GoogleUserMessagingPlatform/Frameworks/Release -F/Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement -F/Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/GoogleMobileAds -F/Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/UserMessagingPlatform -F/Volumes/ESD-USB/DestroyiOS2/Frameworks/AppMetrica/Plugins/iOS -F/Volumes/ESD-USB/DestroyiOS2/Frameworks/com.unity.ads/Plugins/iOS -fno-strict-overflow -DNET_4_0 -DRUNTIME_IL2CPP\=1 -DBASELIB_INLINE_NAMESPACE\=il2cpp_baselib -DIL2CPP_ENABLE_WRITE_BARRIERS\=1 -DIL2CPP_INCREMENTAL_TIME_SLICE\=3 -DUNITY_VERSION_VER\=2020 -DUNITY_VERSION_MAJ\=2 -DUNITY_VERSION_MIN\=3 -include /Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/PrecompiledHeaders/SharedPrecompiledHeaders/11739824452162250794/Prefix.pch -MMD -MT dependencies -MF /Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/Objects-normal/arm64/fmod_register_static_plugins.d --serialize-diagnostics /Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/Objects-normal/arm64/fmod_register_static_plugins.dia -c /Users/borismazanov/Documents/projects/DestroyCar11/Assets/Plugins/FMOD/Cache/fmod_register_static_plugins.cpp -o /Users/borismazanov/Library/Developer/Xcode/DerivedData/Unity-iPhone-hcnuwulfldbcygbgpniybcnxkeoi/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/UnityFramework.build/Objects-normal/arm64/fmod_register_static_plugins.o

error: Build input file cannot be found: '/Users/borismazanov/Documents/projects/DestroyCar11/Assets/Plugins/FMOD/Cache/fmod_register_static_plugins.cpp' (in target 'UnityFramework' from project 'Unity-iPhone')
1 Like

Thanks for the report, we are investigating and will get back to you when we know more.

We have found the cause of this issue and it has been resolved.
The fix will be in our next release 2.01.09.

Not sure if this is related but I’m trying to build a Unity project originally created in Windows on a Mac and am getting a failed build for a similar reason.

Unity 2020.3.0f1 ILCPP (generate Xcode project) on MacOS 11.2 Xcode 12.4
FMOD 2.01.07

Build fails at

[1/3        0s] Copy Additional C++ File /Users/<path to my project on Mac>/Library/Il2cppBuildCache/macOS/XcodeProject/il2cppOutput/fmod_register_static_plugins.cpp" --additional-cpp
##### CommandLine
cp "C:/Users/<path to my project on windows>/Temp/fmod_register_static_plugins.cpp" --additional-cpp" "/Users/<path to my project on Mac>/Library/Il2cppBuildCache/macOS/XcodeProject/il2cppOutput/fmod_register_static_plugins.cpp" --additional-cpp" 
##### ExitCode
1
##### Output
cp: C:/Users/<path to my project on windows>/Temp/fmod_register_static_plugins.cpp: No such file or directory
*** Bee build failed (19.20 seconds), 2 items updated, 3 evaluated

It fails as the windows path is not found on mac. On mono it fails in Xcode at
PlugIns/fmodstudio.dll: No such file or directory

Seems unrelated but it is the same file. Maybe this should be a separate issue but I would appreciate some insight or a workaround.

This issue is also fixed pending our next release. To work around it first remove the additional CPP settings from the file ProjectSettings/ProjectSettings.asset, search for additionalIl2CppArgs: and remove the FMOD files.

To disable the cause of this edit Assets\Plugins\FMOD\src\Runtime\Settings.cs modify the function PreprocessBuild to remove the call to PreprocessStaticPlugins. This will disable any static plugins, but is necessary to work around the issue.

Everything will work correctly in the next release.

1 Like

Stumbled upon this issue today, I’m also working on a Windows box and doing builds on a Mac. The first part of the fix posted in Fmod_register_static_plugins.cpp not found - #5 by mathew seems to have worked for me, removing the PreprocessStaticPlugins call made my builds fail with:

❌  Undefined symbols for architecture arm64
Symbol: _FMOD_Unity_RegisterStaticPlugins
Referenced from: _Platform_LoadStaticPlugins_m4265C0F1EF38890E6BCD282D906664E9B531E4BB in FMODUnity.o

I’m not using any static plugins, but it seems that call was still needed for some reason. Anyway, removing that first bit got me back on track for now.

1 Like

@mathew do you already have a release date for 2.01.09?

It will depend largely on when QA give the all clear, but we are aiming for this week.

Looking forward to .09. This error is happening for me as well.

I have the same problem here. Can’t build via Xcode (project made with Mac).

Hi @mathew, do you have any update about the 2.01.09 release date? Our project is stuck without it :frowning:

QA found a last minute issue that we need to fix, so the release is still expected β€œany day now”.

1 Like