xcode 未找到此可执行文件的有效配置文件:仅限分发
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4695820/
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
A valid provisioning profile for this executable was not found: only with distribution
提问by Benjamin
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. Xcode is also telling me:
回顾历史......一个月前我刚买了一部新的 iPhone 4,这是我第一次用这个设备完成的发行。Xcode 还告诉我:
The iPhone “X” doesn't have the provisioning profile with which the application was signed. Click “Install and Run” to install the provisioning profile “Y Distribution Profile” on “X iPhone” and continue running “Z.app”.
iPhone“X”没有用于签署应用程序的配置文件。单击“安装并运行”在“X iPhone”上安装配置文件“Y Distribution Profile”并继续运行“Z.app”。
Can anyone help? I'm going nuts and tired of running into a wall. Thanks in advance!!!!
任何人都可以帮忙吗?我快要疯了,厌倦了撞墙。提前致谢!!!!
回答by Benjamin
What I needed to do was "build" instead of "build and run"
我需要做的是“构建”而不是“构建并运行”
回答by aarti Garg
I use the distribution provisioning profile and found that the apps are not put on device with the distribution profile.
我使用分发配置文件,发现应用程序没有放在带有分发配置文件的设备上。
回答by Jesse Naugher
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.
我相信分发配置文件不用于放置在设备上?我只使用发行版来构建上传到应用程序商店。当您获得新设备时,您还需要记住将其添加到配置文件中,然后重新下载。
回答by Xotic1
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]. 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.
您不能使用分发配置文件在设备上运行您的应用程序,该配置文件实际上用于将应用程序上传到 App Store [进行分发]。但是,如果您想“模拟”应用程序在生产环境中的行为方式,您需要的是所谓的“Ad-Hoc Provisioning Profile”,它实际上很像分发配置文件,但将允许应用程序只在指定的设备上运行而不需要 XCode。
Check this link out for more detailed info.
查看此链接以获取更多详细信息。
回答by Badr
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”。
回答by user2279146
That's the expected behavior. When building for Distribution, make sure you select "Build", not "Build & Go".
这是预期的行为。为分发而构建时,请确保选择“构建”,而不是“构建并开始”。