简体   繁体   English

带有设备UDID的Iphone应用程序

[英]Iphone app with device UDID

I want to install my Iphone app to different iphones for testing. 我想将我的Iphone应用程序安装到不同的iphone上进行测试。 But every time I have do the provisioning profile thing. 但每次我都做配置文件的事情。 How can I use the device UDID in my application while compilation so that they (apps) can be installed on those Iphones..... Any idea? 如何在编译时在我的应用程序中使用设备UDID,以便它们(应用程序)可以安装在那些Iphone上.....任何想法?

Regards 问候

step :1 open your https://developer.apple.com/ 步骤:1打开您的https://developer.apple.com/

step :2 open IOS dev Center 步骤:2打开IOS开发中心

step :3 at the lest side menu bar click on "Devices". 步骤:3在最左侧菜单栏中单击“设备”。

step :4 then click on "Add New Device" fill your device UDID and Name. 步骤:4然后单击“添加新设备”填写您的设备UDID和名称。 and then submit. 然后提交。

step :5 Now click on "App Id" in left menu bar. 步骤:5现在点击左侧菜单栏中的“App Id”。 create your app id. 创建您的应用ID。

step :6 Now click on "Certificates" in left menu, choose the development field. 步骤:6现在单击左侧菜单中的“证书”,选择开发字段。 now you should have a certificate with valid authority to upload it. 现在你应该有一个有效权限的证书来上传它。 for getting a certificate open "keychain access" then upper left corner of your desktop (near the apple icon) click on "Keychain Access", now choose ...certificate Assistant > Request a certificate from a certificate authority. 要获得证书打开“钥匙串访问”,然后在桌面的左上角(靠近苹果图标)点击“钥匙串访问”,现在选择...证书助理>从证书颁发机构申请证书。 then enter your mail in first row, choose saved to disk and then continue. 然后在第一行输入您的邮件,选择保存到磁盘然后继续。 now come to on upload this certificate to apple account. 现在来上传此证书到苹果帐户。

step: 7 now click on "Provisioning" at left menu bar in apple site. 步骤:7现在点击苹果网站左侧菜单栏中的“配置”。 choose the "development" field then click on "New Profile" on right side. 选择“开发”字段,然后单击右侧的“新建配置文件”。 make your app profile, check the certificate, select an your app id, check the device. 制作您的应用配置文件,检查证书,选择您的应用ID,检查设备。 then submit. 然后提交。

step :8 now download your development certificate make sure the status should be "issued" and your provisioning profile name should be written there in "Provisioning Profile" fields. 步骤:8现在下载您的开发证书,确保状态应该“已发布”,并且您的配置文件名称应写在“配置文件”字段中。 Download your provisioning profile also and make sure that the status is "Active". 同时下载您的配置文件,并确保状态为“活动”。

step :9 double click on development certificate which you have downloaded and double click on your provisioning profile which you have downloaded. 步骤:9双击已下载的开发证书,然后双击已下载的配置文件。

step :10 now open your project and follow this.. Target > Info > Bundle Identifier. 步骤:10现在打开你的项目并按照这个...目标>信息>捆绑标识符。 then rename your bundle identifier to what is your "app id". 然后将您的包标识符重命名为您的“app id”。

step :11 Go to your Target > Build Setting > Code Signing > choose your signing identity. 步骤:11转到“目标”>“构建设置”>“代码签名”>选择您的签名身份。 same code signing choose in your Projects > Build Setting > Code Signing. 相同的代码签名在您的项目>构建设置>代码签名中选择。

step :12 now at upper left corner (near run button) set Scheme to "IOS Device". 步骤:12现在在左上角(靠近运行按钮)将Scheme设置为“IOS Device”。 press window + B and then right click on "yourapp.app" show in finder then compress it with its provisioning profile and this zip file send to your client for testing. 按下窗口+ B,然后右键单击查找器中的“yourapp.app”,然后使用其配置文件对其进行压缩,并将此zip文件发送给您的客户端进行测试。

for more detail see https://developer.apple.com/ios/manage/overview/index.action ..... 有关详细信息,请参阅https://developer.apple.com/ios/manage/overview/index.action .....

Thank You !! 谢谢 !!

Apple does not allow this, app build as Ad-Hoc will only run if and only if there is a UDID in the provisioning profile. Apple不允许这样的应用程序构建,因为只有在配置文件中存在UDID时才会运行Ad-Hoc。

You will need to add the UDID for every iOS device you want to test you app via the provisionings portal. 您需要通过配置门户为每个要测试应用程序的iOS设备添加UDID。

There a solution to use a single Ad-Hoc profile for most of your apps: use a wildcard bundle ID (*) to make one provisioning profile word with more then one app. 有一种解决方案可以为大多数应用程序使用单个Ad-Hoc配置文件:使用通配符包ID(*)来创建一个配置文件单词,其中包含多个应用程序。 But you can't do this for apps that have APNS or iAP. 但是,对于拥有APNS或iAP的应用,您无法执行此操作。

Below is the Apple guide for distributing your app for testing: 以下是分发您的应用以进行测试的Apple指南:

http://developer.apple.com/library/ios/#DOCUMENTATION/Xcode/Conceptual/ios_development_workflow/35-Distributing_Applications/distributing_applications.html http://developer.apple.com/library/ios/#DOCUMENTATION/Xcode/Conceptual/ios_development_workflow/35-Distributing_Applications/distributing_applications.html

Hope it helps! 希望能帮助到你!

NOTE: You should have access to iOS Provisioning Portal in order to add your tester's device UDID. 注意:您应该可以访问iOS Provisioning Portal以添加测试仪的设备UDID。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM