我曾经成功使用Xcode v4.6.3在OSX v10.8.5上安装fruitstrap。这意味着我可以通过cmd行在 iPad2 上运行应用程序。
现在我转向使用OSX v10.8.5, Xcode v5.0.1 和 iPad4(iOS 7)的另一台计算机。首先,我安装了provistion配置文件,我可以使用Xcode在iPad4(iOS 7)上运行项目。然后,我尝试在同一步骤中安装fruitstrap(在Makefile中使用不同的IOS_SDK)。但是我得到了这样的输出:
*------ Install phase ------
[....] Waiting for iOS device to be connected
[ 0%] Found device (c97b56bd2b84138a50a95ab3edb518eb79fff5b1), beginning install
[ 5%] Copying demo.app/ to device
[ 8%] Copying demo.app//_CodeSignature to device
[ 12%] Copying demo.app//_CodeSignature/CodeResources to device
[ 16%] Copying demo.app//demo to device
[ 42%] Copying demo.app//Info.plist to device
[ 46%] Copying demo.app//ResourceRules.plist to device
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
AMDeviceInstallApplication failed: -402653028*
同时,我可以看到iPad设备的Xcode控制台的输出:
*Nov 21 04:07:44 iPad mobile_installation_proxy[115] <Warning>: LaunchServices: Please include the kCFBundleIdentifierKey in the options dictionary when installing an app.
Nov 21 04:07:44 iPad mobile_installation_proxy[115] <Warning>: LaunchServices: installing app for existing placeholder (null)
Nov 21 04:07:44 iPad installd[62] <Notice>: 0x243000 handle_install_for_ls: Install of "/var/mobile/Media/PublicStaging/demo.app" requested by mobile_installation_proxy
Nov 21 04:07:44 iPad installd[62] <Notice>: 0x243000 MobileInstallationInstall_Server: Installing app demo
Nov 21 04:07:44 iPad installd[62] <Error>: 0x243000 check_can_install: Apps must have a CFBundleVersion declared as a string in their Info.plist, but demo does not. Failing installation.
Nov 21 04:07:44 iPad installd[62] <Error>: 0x243000 install_application: Could not preflight application install
Nov 21 04:07:44 iPad mobile_installation_proxy[115] <Error>: 0x305000 MobileInstallationInstallForLaunchServices: failed with -1
Nov 21 04:07:44 iPad mobile_installation_proxy[115] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Nov 21 04:07:44 iPad mobile_installation_proxy[115] <Error>: 0x305000 handle_install: Installation failed: Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x14d14f30 {Error=MissingBundleVersion}
Nov 21 04:07:44 iPad installd[62] <Error>: 0x243000 handle_install_for_ls: API failed*
我想知道这三个工具/设备是否存在兼容性问题?
答案 0 :(得分:4)
Fruitstrap本身未被维护,不适用于Xcode 5或iOS 7.您可能想要查看其中一种替代方案。特别是ios-deploy是一个增加基本支持的水果包: