LNK1181 Error: cannot open input file ... UE4-TargetPlatfrom.lib

在工程打包時出現:未打到 UE4-TargetPlatfrom.lib,查找相關模塊的 .cs後發現有一處引用"TargetPlatfrom"相關的地方,刪除後打包成功。spa

PublicDependencyModuleNames.AddRange(
            new string[]
            {
          // ... add other public dependencies that you statically link with here ...
                "Core",
                "RenderCore",
                "TargetPlatform",                
          }
);

緣由多是在打包時,UE4會遍歷全部須要加載的模塊並查找當前模塊所添加的(PublicDependencyModuleNames)依賴項,依賴項可能就是相關的code

*.lib或*.dll。在PublicDependencyModuleNames列表中存在但Binaries目錄下沒找到,就會提示錯誤。<以上目前只是猜想...>orm

相關文章
相關標籤/搜索