我使用的模式建立一个iPhone应用程序,在这里我想到的外部过程的信息plist文件中相同的方式为模式建立的步骤如下所示会

Processing /Users/kte/Projects/build/Debug-iphonesimulator/TestAppGen.app/Info.plist TestAppGen-Info.plist
mkdir /Users/kte/Projects/build/Debug-iphonesimulator/TestAppGen.app
cd /Users/kte/Projects/TestAppGen
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
<com.apple.tools.info-plist-utility> TestAppGen-Info.plist -genpkginfo /Users/kte/Projects/build/Debug-iphonesimulator/TestAppGen.app/PkgInfo -expandbuildsettings -format xml -o /Users/kte/Projects/build/Debug-iphonesimulator/TestAppGen.app/Info.plist

这摘自建立登录指com.苹果。工具。信息plist用,这是我收集来自各种来源的围网,是一个内部模式的效用。

是否可以运行。苹果。工具。信息plist用从命令行?

有帮助吗?

解决方案

您可以使用一个名为PlistBuddy,/usr/libexec/PlistBuddy工具,看看它的手册页。

但你还需要plist中转换回二进制plist文件。这可以这样来完成在一个构建脚本

plutil -convert binary1 "$TARGET_BUILD_DIR/$INFOPLIST_PATH"

其他提示

在"plutil"答案是一个很好的开始。不幸的模式建立过程做更多的信息。plist文件比将它转换为二进制的,例如在我的系统,它增加了在该领域:

-MinimumOSVersion
-PlatformName
-CFBundleExecutable
-SDKName
-CFBundleResourceSpecification
-CFBundleSupportedPlatforms

根据 苹果文件 你是不是应该设立这些价值观自己:

MinimumOSVersion

MinimumOSVersion(String)。当你 建立一个iPhone应用程序、模式 注意到目标操作系统(作为确定通过 基SDK选择)作为 MinimimOSVersion财产。不不 指定该财产在自己的 信息。plist文件;这是一个 系统编写的财产。当你 发布应用程序的应用程序 存储、储存表示的iPhone OS释上应用程序 可以运行基于这种财产。它是 相当于 LSMinimumSystemVersion财产上的Mac OS X.

我跑到各种各样的问题,试图重新签署我的应用程序的一部分作为我定制的建立过程。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top