xcode iPhone 6 上的 IOS 应用程序“无法验证该应用程序”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28824422/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
IOS app 'The application could not be verified' on IPhone 6
提问by swathy krishnan
The app which i created worked well in all devices other than IPhone6 . I got the following error message in XCODE 'The application could not be verified.' . I deleted the app and then reinstalled it as per the suggestion given in the link:
我创建的应用程序在 iPhone6 以外的所有设备上运行良好。我在 XCODE 中收到以下错误消息“无法验证应用程序”。. 我删除了该应用程序,然后按照链接中给出的建议重新安装了它:
iOS app 'The application could not be verified' only on one device
I want to know that what might be the actual cause of this error message. !!
我想知道此错误消息的实际原因可能是什么。!!
回答by Natasha
I don't think, this is an xCode issue. This can happen under many conditions. Like-
我不认为,这是一个 xCode 问题。这可能在许多条件下发生。喜欢-
Provisioning Profile mismatch:
Scenario 1:
When first time, you had built or installed the app in your device, you may have used a different certificate(paired with a different provisioning profile) than now. So, when you try to re-run the app, the device got confused. The ways to fix it-
Delete the existing app and re-build. That way, you don't have to figure out which certificate, you used the first time.
However, if you know which certificate and provisioning profile you used earlier, then just switch to those.
Scenario 2:
May be you are trying to use distribution profile where you supposed to use development profile.Fix-
Assign any valid development provisioning profile under the code signing.
配置文件不匹配:
场景一:
当您第一次在设备中构建或安装应用程序时,您可能使用了与现在不同的证书(与不同的配置文件配对)。因此,当您尝试重新运行该应用程序时,设备会感到困惑。修复方法——
删除现有的应用程序并重新构建。这样,您就不必弄清楚第一次使用的是哪个证书。
但是,如果您知道之前使用的是哪个证书和配置文件,那么只需切换到那些。
场景2:
可能是您尝试在应该使用开发配置文件的地方使用分发配置文件。修复-
在代码签名下分配任何有效的开发配置文件。
Device not added:
May be the device is not added in your developer account under Devices or
May be the device is added under Devices, but when you created the provisioning profile, you forgot to select the device on which you are trying to run your app.
未添加设备:
可能是设备未添加到您的开发者帐户下的设备或
可能是在设备下添加了设备,但是当您创建配置文件时,您忘记选择要尝试运行应用程序的设备。
回答by Taranjit
Please make sure that your are using the latest version of XCode i.e 6 for creating the build, and then tell us what is the exact error you are getting.
请确保您使用最新版本的 XCode ie 6 来创建构建,然后告诉我们您遇到的确切错误是什么。