unity -xcode build因nsuserdefaults.mm文件未找到消息而失败,这可能是因为com.unity.services.core文件夹不在项目文件夹中
building an XCode project with an .xcodeproj file generated by unity 2021.3.3f1 fails with the message "Build input file cannot be found: 'users/---/ --project name--/Libraries/com.unity.services.core /runtime/device/useridproviders/nsuserdefinitions.mm'“
当我查看Finder时,我注意到com.unity.services.core.core在库文件夹下不存在。
一些背景。我最近搬到了垃圾中,以释放磁盘空间。我还进行了新的删除和安装Xcode,以防万一我意外删除任何重要的内容。非统一文件在XCode中正常工作。
这可能是我使用2021.3.3f1的第一个项目。我以前在没有遇到此问题的情况下使用了2019.4.14F1。
我应该在Unity BuildSetts的iOS播放器设置中设置某些内容以避免此问题吗? (还是将迫使com.unity.services.core文件夹在输出项目中生成的东西)?
我在Mac和基础架构中没有经验,因此,如果我缺少非常基本的东西,我会提前道歉。
谢谢
building an XCode project with an .xcodeproj file generated by unity 2021.3.3f1 fails with the message "Build input file cannot be found: 'users/---/ --project name--/Libraries/com.unity.services.core/Runtime/Device/UserIdProviders/NSUserDefinitions.mm' "
When I look in Finder, I notice that the com.unity.services.core does not exist under the Libraries folder.
Some background. I recently moved to trash many Xcode files to free up disk space. I also did a new remove and Install of XCode, in case I deleted anything important accidentally. Non unity files work fine in XCode.
This might be the first project I used 2021.3.3f1 for. I previously used 2019.4.14f1 without encountering this problem.
Is there something I should set in the IOS Player settings of Unity BuildSettings to avoid this problem? (or something that would force the com.unity.services.core folder to be generated in the output project)?
I am very inexperienced in Mac and infrastructure so I apologize in advance if I am missing something very basic.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该清洁构建文件夹并重新构建,应该有效。
在XCode中,您可以通过
product>清洁构建文件夹
,在Unity中,您只需手动删除整个构建输出文件夹(我希望您创建一个专门用于构建输出的单独文件夹,而不仅仅是导出到项目目录中,请不要删除您的Project Directory只是设置一个新的构建输出文件夹;)。You should clean your build folders and build anew, should work.
In Xcode you can do this by going to
Product > Clean Build Folder
, in Unity you just manually delete the whole Build output folder (I hope you created a seperate folder specifically for the Build output and didn't just export to the project directory in that case don't delete your project directory just set a new Build output folder ;).