iOS真机测试

摘要:
今天,我用开发者帐户设置了真机测试环境,将iPhone添加到开发者设备管理表中,然后安装开发者证书和iPhone设备配置文件进行测试。设备无法识别,提示非法设备?

今天用开发者账号设置了真机测试环境,将iPhone添加到开发者设备管理表中,然后安装开发者证书和iPhone设备的配置文件就可以测试了。

 设备不识别,提示非法设备 ? 原因是程序的依赖版本太高

process launch failed:timed out waiting for app to launch

证书不对,比如,debug里面选了release证书 或者当前不是debug模式

Xcode打包生成ipa四个选项的具体区别 详细点 iOS 导出 ipa 包时 四个选项的意义

1.Save for iOS App Store Deployment

保存到本地 准备上传App Store 或者在越狱的iOS设备上使用

2.Save for Ad Hoc Deployment

保存到本地 准备在账号添加的可使用设备上使用(具体为在开发者账户下添加可用设备的udid),该app包是发布证书编译的(The app will be code signed with the distribution certificate.)

3.Save for Enterprise Deployment

这种主要针对企业级账户下 准备本地服务器分发的app

4.Save for Development Deployment

针对内部测试使用,主要给开发者的设备(具体也为在开发者账户下添加可用设备的udid)。该app包是开发证书编译的(The app will be code signed with your development certificate

iOS 9.0.2 - Can't Install Enterprise App -Unable to Download App (app name) could not be downloaded at this time“Unable to download application. <Appname> could not be installed at this time” 
5down voteaccepted

Finally i found a solution, when i tried to sign the App manually, the console threw an Error message that helped me to fix it again.

The Problem started when i upgraded to Mountain Lion and had to update xCode to 4.5.2

Maybe it helps others who still couldn't find a solution after several days of searching the internet

  1. Unzip the Ipa unzip Application.ipa

  2. delete _CodeSignature rm -r "Payload/Application.app/_CodeSignature" "Payload/Application.app/CodeResources" 2> /dev/null | true

  3. if there isn't the right provisioning profile, replace it cp "ProvisioningProfile.mobileprovision" "Payload/Application.app/embedded.mobileprovision"

  4. The problem for me was this error when i tried to resign the app manually: "object file format unrecognized, invalid, or unsuitable"

    fix it :

    export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/usr/bin/codesign_allocate"

  5. resign the app /usr/bin/codesign -f -s "iPhone Distribution: Company Name" --resource-rules "Payload/Application.app/ResourceRules.plist" "Payload/Application.app"

  6. Zip it zip -qr "Application.resigned.ipa" Payload

Thanks to

  1. This Question on how to sign an app manually,
  2. the console which got me the error
  3. This Post which helped me to fix the error
  4. Apple which makes our lives too hard
Unable to Download Application - “APP” could not be downloaded at this time

thanks for the tip on looking at the console. While it was installing I saw that the provisioning profile didn't agree with the iCloud ubiquitous key-value store entitlement. We're enabling iCloud with this release.

I went in and "edited" each provisioning profile (essentially doing nothing....) and re-downloaded them and it fixed the problem.

Kind of annoying that Apple doesn't invalidate your provisioning profile or let you know it needs updating at least... :-/

iOS App 安全小结App installation failed.could not write to the device. good

升级iOS11在真机上运行之前的app时,报错如下:

 App installation failed

could not write to the device.

解决办法:

1、删除真机上的app

2、clean一下Xcode,重新运行app

3、清理iPhone上的内存

4、修改app的bundleID,但是不建议采用(同一个app)

企业级证书

IOS企业版发布 HTTPS证书以及服务器设置

iOS 企业证书发布app 流程 good

苹果企业账号打包发布APP流程详解

 Xcode 7 iOS10.1 Developer Disk Image   2016-10-29上传大小:13.77MB 

 
这个文件可以让你在Xcode7版本调试iOS10.1版本的真机(Could not find Developer Disk Image)。将压缩包解压把文件夹放在 /Applications/Xcode.app/Contents/Developer/ 即可。
 

http://download.csdn.net/detail/q409195961/9667360

xcode 10.1 image

内容:

iOS真机测试第1张

cd /Users/tz/Library/Developer/Xcode/DerivedData/ModuleCache 

 

 

 

/Applications/Xcode.app/Contents/Developer 

 

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.3  下内容

 

iOS真机测试第2张

 

 

Xcode7 运行iOS10以上系统(10.1、10.2、10.3)解决Could not find Developer Disk Image
 

由于历史原因,需要在Xcode7上真机运行下app,无奈手机系统已是10.3了,一运行,

就提示:Could not find Developer Disk Image

iOS真机测试第3张

解决办法:

1、找到xcode7,右击显示包内容,一直找到DeviceSupport文件,添加10.3的文件

iOS真机测试第4张

2、在下图的路径内的SDKs文件夹里,将xode8下 同路径下的10.3sdk拷贝进来就可以了

iOS真机测试第5张

"Could not find Developer Disk Image"问题,为Xcode9.0之前版本配置iOS11、iOS10、iOS 10.1、iOS10.2、iOS 10.3配置包

相比大家已经看完WWDC2017,也有心急的小伙伴已经升级到iOS11了,体验一下细节上的一些改动,反正我是升了,个人感觉挺舒服,既然升了,那Xcode运行时候“Could not find Developer Disk Image”问题来了, 
不多说,直接上资源包: 
iOS 10.0 http://download.csdn.net/detail/u010731949/9633016 
iOS 10.1 http://download.csdn.net/detail/u010731949/9680445 
iOS 10.2 beta http://download.csdn.net/detail/u010731949/9680427 
iOS 10.3 beta http://download.csdn.net/detail/u010731949/9751582 
iOS 10.3 http://download.csdn.net/detail/u010731949/9812466 
iOS 11.0 beta http://download.csdn.net/detail/u010731949/9862481 
将文件解压(记得手动将 .zip_ 后缀 改为 .zip)^_^拖入目录 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 中,运行Xcode即可

如何在低版本的Xcode中使用高版本的SDK

免责声明:文章转载自《iOS真机测试》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇【大话存储】学习笔记(4,5章),RAID环境篇:VMware Workstation安装Centos7下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

百度大脑远场语音开发套件评测—快速上手,超赞语音交互体验

近年来,人工智能话题越来越热,受到了更多人的关注。百度从2010年开始人工智能技术开发,到现在已有8年多的时间,目前百度AI技术专利在中国甚至世界上都是名列前茅。 我大概在18年末开始接触到百度AI社区,通过使用文字识别、图像识别等百度AI技术,逐步感受到了AI技术的强大,同时也感觉到了百度AI技术的进步:AI技术领域范围越来越广泛,识别速度越来越快,识别...

关于菜鸟的圆通电子面单打印

1. https://open.taobao.com/docs/doc.htm?spm=a21da.7629140.0.0.97iBG8&docType=1&articleId=107052 电子面单接入文档(LINK接入)   2.  https://dayin.cainiao.com/miandan/subscription/bran...

极光推送 JPush 简介 集成 MD

Markdown版本笔记 我的GitHub首页 我的博客 我的微信 我的邮箱 MyAndroidBlogs baiqiantao baiqiantao bqt20094 baiqiantao@sina.com 目录 目录JPush产品简介消息形式推送目标集成步骤FAQ简洁版自定义消息推送DemoActivityReceiver消息处理类B...

xamarin跨平台iOS、Android 与Windows

http://xamarin.csdn.net/ Xamarin是一个行动App开发平台,提供跨平台开发能力,开发人员透过Xamarin开发工具与程序语言,即可开发出iOS、Android 与Windows 等平台的原生(Native) App 应用程序,不须个别使用各平台的开发工具与程序语言,不只是「write-once, run everywhere」...

[WCF安全系列]实例演示:TLS/SSL在WCF中的应用[SSL over TCP]

在接下来的系列文章中我们正是讨论关于身份认证的主题。在前面我们已经谈到了,WCF中的认证属于“双向认证”,既包括服务对客户端的认证(以下简称客户端认证),也包括客户端对服务的认证(以下简称服务认证)。客户端认证和服务认证从本质上并没有什么不同,无非都是被认证一方提供相应的用户凭证供对方对自己的身份进行验证。我们先来讨论服务认证,客户端认证放在后续的文章中。...

IOS 用keychain(钥匙串)保存用户名和密码

IOS系统中,获取设备唯一标识的方法有很多: 一.UDID(Unique Device Identifier) UDID的全称是Unique Device Identifier,顾名思义,它就是苹果IOS设备的唯一识别码,它由40个字符的字母和数字组成。 二.UUID(Universally Unique Identifier) UUID是Universa...