简体   繁体   English

找不到此可执行文件的有效配置文件:仅用于分发

[英]A valid provisioning profile for this executable was not found: only with distribution

I'm releasing a new version of my iphone app and everything was going great until I changed the settings to "distribution" and "device", and then got the error: 我正在发布我的iphone应用程序的新版本,一切都很顺利,直到我将设置更改为“发布”和“设备”,然后出现错误:

A valid provisioning profile for this executable was not found. 找不到此可执行文件的有效配置文件。

This doesn't make sense as I am able to install the app onto my phone in debug or release mode, but not in distribution mode. 这没有意义,因为我能够在调试或发布模式下将应用程序安装到我的手机上,但不能在分发模式下安装。 Is this error because the provisioning profile and distribution profile are not compatible? 此错误是因为配置文件和分发配置文件不兼容吗? Or what could be a solution? 或者什么是解决方案?

Back history... I DID just get a new iPhone 4 a month ago and this is the first distribution I have done with this device. 返回历史记录...我刚刚在一个月前获得了一部新的iPhone 4,这是我用这个设备完成的第一个发行版。 Xcode is also telling me: Xcode也告诉我:

The iPhone “X” doesn't have the provisioning profile with which the application was signed. iPhone“X”没有用于签署应用程序的配置文件。 Click “Install and Run” to install the provisioning profile “Y Distribution Profile” on “X iPhone” and continue running “Z.app”. 单击“安装并运行”以在“X iPhone”上安装配置文件“Y Distribution Profile”并继续运行“Z.app”。

Can anyone help? 有人可以帮忙吗? I'm going nuts and tired of running into a wall. 我疯了,厌倦了撞墙。 Thanks in advance!!!! 提前致谢!!!!

我需要做的是“构建”而不是“构建和运行”

我使用分发配置文件,发现应用程序没有放在带有分发配置文件的设备上。

1-Xcode->Click your app -> TARGETS -> click the app-> Build Setting-> Code Signing : Make sure that both "Debug" and "Any iOS SDK" are set to "iPhone Development" 1-Xcode->单击您的应用程序 - >目标 - >单击应用程序 - >构建设置 - >代码签名:确保“调试”和“任何iOS SDK”都设置为“iPhone开发”

2- Xcode -> Product -> Scheme -> Edit Scheme: Make sure "Build Configuration" is set to “Debug". 2- Xcode - > Product - > Scheme - > Edit Scheme:确保“Build Configuration”设置为“Debug”。

You cannot run your app on a device using the distribution profile, which is really used for uploading the app to App Store [for distribution]. 您无法使用分发配置文件在设备上运行您的应用程序,该分发配置文件实际上用于将应用程序上载到App Store [用于分发]。 However, if you want to "simulate" how the app would behave in a production environment, what you need is a so-called "Ad-Hoc Provisioning Profile", which is really a lot like a distribution profile, but will allow the app to run only on designated devices without the need for XCode. 但是,如果您想“模拟”应用程序在生产环境中的行为方式,您需要的是所谓的“Ad-Hoc Provisioning Profile”,它实际上很像分发配置文件,但会允许应用程序仅在指定设备上运行而无需XCode。

Check this link out for more detailed info. 请查看此链接以获取更多详细信息。

Exporting Your App for Testing (iOS, tvOS, watchOS) 导出您的应用程序以进行测试(iOS,tvOS,watchOS)

Distribution profiles aren't used to put on devices i believe? 分配配置文件不用于我认为的设备上? I've only ever used the distribution to build to upload to the app store. 我只使用分发构建来上传到应用商店。 When you get a new device you also need to remember to add it to the profile and then redownload it. 当您获得新设备时,您还需要记住将其添加到配置文件中,然后重新下载。

That's the expected behavior. 这是预期的行为。 When building for Distribution, make sure you select "Build", not "Build & Go". 构建Distribution时,请确保选择“Build”,而不是“Build&Go”。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ios分发证书:找不到此可执行文件的有效配置文件 - ios distribution certificate: A valid provisioning profile for this executable was not found 找不到此可执行文件的有效配置文件 - A valid provisioning profile for this executable was not found 在调试模式下找不到此可执行文件的有效配置文件 - A valid provisioning profile for this executable was not found for debug mode Xcode 4.3.1“找不到此可执行文件的有效配置文件” - Xcode 4.3.1 “A valid provisioning profile for this executable was not found” 找不到此可执行文件的有效配置文件错误Xcode 9 - A valid provisioning profile for this executable was not found error Xcode 9 “未找到此可执行文件的有效配置文件。”此消息是什么意思? - “A valid provisioning profile for this executable was not found.” What does this message mean? 使用工具时未找到此可执行文件的有效配置文件错误 - A valid provisioning profile for this executable was not found error while using instruments 尝试在设备上运行我的应用时,找不到此可执行文件的有效配置文件 - A valid provisioning profile for this executable was not found when trying to run my app on device 找不到此可执行文件的有效临时配置文件 - A valid provisional profile for this executable was not found “在XCode中找不到此可执行文件的有效配置文件” - “a valid provisioning file for this executable was not found” in XCode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM