在 Xcode 4 中创建了一个 .pkg 文件,但无法在我的计算机上运行它
我使用 XCode 4 创建了 Mac 应用程序的 .pkg 文件。我使用终端成功安装了它,但是当我双击 .pkg 文件时,我收到一条消息:“...无法安装在这台电脑”。
有什么建议吗?
谢谢。
编辑:这是我收到的错误消息。我通过转到产品->存档创建了包。然后在管理器中单击共享->Mac OSX App Store Package(.pkg),然后将包保存到桌面。
这是包内的内容。
此外,我检查了 XCode 3 和 4 之间的构建设置如下
XCode 3
Path to Link Map File
Debug build/Alarm Pro.build/Debug/Alarm Pro.build/Alarm Pro-LinkMap--x86_64.txt
Release build/Alarm Pro.build/Release/Alarm Pro.build/Alarm Pro-LinkMap--i386.txt
XCode 4
Path to Link Map File
Debug build/Alarm Pro.build/Debug/Alarm Pro.build/Alarm Pro-LinkMap--x86_64.txt
Release build/Alarm Pro.build/Release/Alarm Pro.build/Alarm Pro-LinkMap--x86_64.txt
I created a .pkg file of my Mac app using XCode 4. I installed it using the terminal successfully, however when I double click on the .pkg file, I get a message that says, "... can't be installed on this computer".
Any suggestions?
Thanks.
EDIT: This is the error message that I get. I created package by going to Product->Archive. Then in the Organizer I clicked Share->Mac OSX App Store Package(.pkg) and then save the package to the desktop.
This is what's inside the package.
Furthermore, I've inspected the build settings between XCode 3 and 4 is the following
XCode 3
Path to Link Map File
Debug build/Alarm Pro.build/Debug/Alarm Pro.build/Alarm Pro-LinkMap--x86_64.txt
Release build/Alarm Pro.build/Release/Alarm Pro.build/Alarm Pro-LinkMap--i386.txt
XCode 4
Path to Link Map File
Debug build/Alarm Pro.build/Debug/Alarm Pro.build/Alarm Pro-LinkMap--x86_64.txt
Release build/Alarm Pro.build/Release/Alarm Pro.build/Alarm Pro-LinkMap--x86_64.txt
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试将文件扩展名从 .pkg 更改为 dmg 因为据我所知所有安装文件都是 .dmg 而不是 .pkg
仍然无法工作...
好吧,只有一件事需要改变
右键单击该文件并选择
在打开的情况下获取信息...选择 DiskImageMounter.app 就可以了...希望这有帮助...
try changing the file extension from .pkg to dmg cause as far as i know all installation files are .dmg and not .pkg
still not working...
well only one thing to change
right click the file and select get info
in the open with open....select DiskImageMounter.app and ur good to go... hope this helps...
您无法在 64 位系统上安装 32 位软件包,反之亦然。进入Xcode 检查器并将基本 SDK 更改为目标系统或您的系统。
将您的 SDK 和 Xcode 升级到最新版本。这已经解决了我过去的问题。
清理您的项目,然后在更改设置时构建/存档它。
You can't install 32bit packages on 64bit systems, and vice versa. Go into the Xcode inspector and change the base SDK to the target system or your system.
Upgrade your SDK's and Xcode to the latest version. This has resolved problems for me in the past.
Clean your project, then build/archive it when you change the settings.
这可能是 Xcode4 中的一个令人讨厌的错误... xcode 和 packagemaker 之间的接口无法正常工作...话虽如此,如果您独立使用 Packagemaker,您将能够创建一个工作包...瞧! :-)))
It is probably a nasty bug in Xcode4 ... the interface between xcode and packagemaker is not working correctly ... having said that, if u use Packagemaker stand-alone, u will be able to create a working package ... voila! :-)))