将 Python/Cocoa 项目恢复为使用默认的 OSX 10.5 Python (2.5)

发布于 2024-07-29 19:40:07 字数 275 浏览 3 评论 0原文

我已经在 Leopard OS X 上安装了最新的 MacPython (2.6.2) 并启动了 XCode PyObjC 项目。

当我最终确定该应用程序时,我构建了发布版本并将其发送给我的一个朋友,以尝试它是否可以开箱即用。 它没有,因为它需要最新的 Python,就像在我的计算机上一样。

无论我尝试什么,我都找不到任何配置文件等,我可以在其中更改此设置以期望 OS X 附带的默认 Python。

任何和所有帮助将不胜感激。

问候, 办公自动化

I have installed the latest MacPython (2.6.2) on my Leopard OS X and started an XCode PyObjC project.

When I finalized the app, I built the release version and sent it to a friend of mine to try if it runs with out of the box. It did not, because it expects the latest Python, as on my computer.

No matter what I tried, I could not find any config file, etc. where I could change this setting to expecting the default Python that came with OS X.

Any and all help will be much appreciated.

Regards,
OA

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落花随流水 2024-08-05 19:40:07

卸载 /Library/Frameworks 中现有的内容(以便 XCode 回退到 /System/Library/Frameworks 中的 Python)是可行的,但可能被认为有点激进。 这篇文章及其后续内容还有其他可能有用的建议,最好的一个在最后的后续部分中——您可以编辑 /Developer/Library/Xcode/Project Templates/Application/ 中的配置来确定 XCode 项目将使用哪个 Python 版本。

Uninstalling what you now have in /Library/Frameworks (so XCode falls back to the Python in /System/Library/Frameworks) would work but may be considered a bit drastic. This post and its followups have other potentially useful recommendations, the best one being in the followup at the very end -- you can edit the configurations in /Developer/Library/Xcode/Project Templates/Application/ to determine which Python version XCode projects will be using.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文