gpt4 book ai didi

ios - 如何配置我的目标以在 Xcode 中使用特定的 Info.plist?

转载 作者:可可西里 更新时间:2023-11-01 05:46:11 26 4
gpt4 key购买 nike

我有一个包含很多很多目标(iPhone、iPad、OS X)的 Xcode 项目。

我的每个目标都需要不同的 Info.plist 文件。

对于 iOS,我没有遇到任何问题,一切正常。但是对于 OS X,我收到以下消息:

No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting

在我输入的 OS X 目标build设置中:

Info.plist File: /MyApp/Resources/Info-osx.plist

我该如何解决这个问题?有什么我忘记说明的吗?

谢谢。

最佳答案

Have you set NSPrincipalClass in the info.plist for the OS X target? The NSPrincipalClass is the main class used to start the OS X app.

在最后一条评论中由 rckoenes 提供

这就是解决方案。

关于ios - 如何配置我的目标以在 Xcode 中使用特定的 Info.plist?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12839941/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com