“安装失败:无效的参数";移至Xcode 7后 [英] "Installation Failed: Invalid Argument" after moving to Xcode 7

查看:61
本文介绍了“安装失败:无效的参数";移至Xcode 7后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode 7中同意升级到推荐的设置"对话框后,我的应用程序构建了,但不再在模拟器上运行.模拟器可以正常启动,但只能位于主屏幕上.同时,Xcode显示错误:

After agreeing to the "Upgrade to recommended settings" dialog in Xcode 7, my app build but no longer runs on the simulator. The simulator launches properly, but just sits on the home screen. Meanwhile, Xcode displays the error:

安装失败
无效参数

Installation Failed
Invalid Argument

推荐答案

之所以会发生这种情况,是因为升级到推荐的设置"会将info.plist的CFBundleIdentifier更改为指向$(PRODUCT_BUNDLE_IDENTIFIER)而不是旧的$(BUNDLE_IDENTIFIER).

This happens because "Upgrade to recommended settings" will change the info.plist's CFBundleIdentifier to point to $(PRODUCT_BUNDLE_IDENTIFIER) instead of the old $(BUNDLE_IDENTIFIER).

Apple在Xcode 7发行说明中说,PRODUCT_BUNDLE_IDENTIFIER现在是为目标设置捆绑标识符的推荐位置".因此,如果您在项目中的其他任何地方都使用BUNDLE_IDENTIFIER,则必须将其更改为PRODUCT_BUNDLE_IDENTIFIER才能保持同步.

Apple says in the Xcode 7 release notes that PRODUCT_BUNDLE_IDENTIFIER is now "the recommended place to set the Bundle Identifier for a target." So if you're using BUNDLE_IDENTIFIER anyplace else in your project, you have to change it to PRODUCT_BUNDLE_IDENTIFIER to keep things in sync.

这篇关于“安装失败:无效的参数";移至Xcode 7后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆