Choose a destination with a supported architecture in order to run on this device.
摘要:最近遇到了这么一个问题,编译没有报错,但是偏偏无法刷到手机上。Choose a destination with a supported architecture in order to run on this device.以前碰到这样的问题的解决方法不外乎就是几种:1、删掉原有的程序,重刷。2、clean掉原有的工程,关闭Xcode重新编译运行3、把iPhone或者mac重启一次4、工程中名称含有特殊字符今天碰到这个问题怎么也解决不了,发现,如截图, Executable file我之前改动过,改成另一个名称了发现编译完成之后找不到这个文件,导致这样的问题,最好还是按照原样不要改变Exec
阅读全文
posted @
2013-01-25 22:25
easonoutlook
阅读(7756)
推荐(0)
Xcode4.5编译ffmpeg成功,过程说明
摘要:最近项目要用音视频的通话,需要用ffmpeg来实现,但是ffmpeg在iOS平台上的编译有些问题。1下载代码1.下载ffmpeg源代码git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg参考:http://ffmpeg.org/download.html2.下载ffmpeg-iphone-buildgit clone https://github.com/gabriel/ffmpeg-iphone-build.git参考:https://github.com/gabriel/ffmpeg-iphone-build1. 拷贝ffmpeg-ipho
阅读全文
posted @
2013-01-24 14:54
easonoutlook
阅读(4005)
推荐(0)
Missing Screenshot 的解决方案
摘要:在上传到App Store的时候,出现了Missing Screenshot的错误,搜索了相关信息,发现是因为我在资源文件加了一个Default-568h@2x.png文件,apple认为我的应用里面支持iPhone5,但是我没有添加iPhone5的screenshot.所以出现了此错误。1、删除工程中的iPhone5相关的资源文件,重新Archiver2、在iTunes Connect里面把之前上传的ipa文件 , Reject Binary,然后这个ipa就被忽略了,删除了3、重新上传ipa文件。参考链接:http://blog.csdn.net/lixing333/article/det
阅读全文
posted @
2013-01-24 11:18
easonoutlook
阅读(784)
推荐(0)
Applications must be ready for upload on iTunes Connect before they can be validated or submitted from within Xcode.
摘要:上传ipa文件到App Store的时候,出现了一些问题,Prepare for UploadWaiting for UploadReady for Upload在iTunes Connect里面填入信息,按照要求生成ipa包之后,还是有问题,报错Applications must be ready for upload on iTunes Connect before they can be validated or submitted from within Xcode.经过查找发现有一个问题没有处理。Theres something in there about 'Upload
阅读全文
posted @
2013-01-24 11:03
easonoutlook
阅读(3310)
推荐(0)
sip服务器和sip客户端之间是否传递RTP语音流以及解决办法
摘要:sip服务器和sip客户端之间是否传递RTP语音流?比如sip客户端c1和c2都注册到同一个sip服务器(c1,c2,sip服务器处于同一个局域网中)或者在其它不同的场景下(比如c1和c2分别处于不同的nat后, sip服务器位于公网上)当c1呼叫c2成功后,c1和c2之间开始互发RTP语音流,这样,双方就可以互相听见对方的声音了那么sip服务器和sip客户端之间是否传递RTP语音流?即服务器是否转发c1和c2之间通信的语音数据?------解决方案--------------------------------------------------------一般来说简单的两个人之间的通话不需
阅读全文
posted @
2013-01-23 09:24
easonoutlook
阅读(10853)
推荐(1)
Xcode archive skip install的问题
摘要:总结:在自身工程里面需要将skip install 设置为NO, 在引入其他静态库文件的工程中skip install 设置为YESEDIT (Incorporated all comments to a single answer)Try one of the following (or all)Instead of using Build For -> Archive, in the product menu just use archive. It will show up then.In the scheme editor, edit the scheme and go to t
阅读全文
posted @
2013-01-20 22:06
easonoutlook
阅读(3313)
推荐(0)
iOS打印Debug日志的方式(转)
摘要:http://www.linuxidc.com/Linux/2012-08/67623.htm简单介绍以下几个宏:1) __VA_ARGS__ 是一个可变参数的宏,这个可变参数的宏是新的C99规范中新增的,目前似乎只有gcc支持(VC6.0的编译器不支持)。宏前面加上##的作用在于,当可变参数的个数为0时,这里的##起到把前面多余的","去掉,否则会编译出错。2) __FILE__ 宏在预编译时会替换成当前的源文件名3) __LINE__宏在预编译时会替换成当前的行号4) __FUNCTION__宏在预编译时会替换成当前的函数名称1.重新定义系统的NSLog,__OPTIM
阅读全文
posted @
2013-01-19 14:04
easonoutlook
阅读(573)
推荐(0)
iPhone设备、型号、版本
摘要:NSString *modelname = [[UIDevice currentDevice]model];if ([modelname isEqualToString:@"iPhone"]) { // iPhone}if ([modelname isEqualToString:@"IPod Touch"]) { // iPod touch}if ([modelname isEqualToString:@"iPhone Simulator"]) { // iPhone Simulator} #import <TargetCond
阅读全文
posted @
2013-01-15 21:42
easonoutlook
阅读(532)
推荐(0)
如何在多台机器上共享IOS证书
摘要:如何在多台机器上共享IOS证书1. 下载.cer文件到别的机器。就是在IDP上的那个。2. 从发送申请文件(certificate Request,后缀名为certSigningRequest)的机器上把证书对应的private key(.p12文件)导出,密码自己定,要记住,后面导入的时候要用。3. 在你需要的机器上安装证书(.cer),导入私钥文件(.p12)。安装对应App的provisioning profile。4. Over,你可以用其他机器开发了。注:必须得从申请机器上导出private key.到其他机器上一、成员介绍1.Certification(证书)证书是对电脑开发资格的
阅读全文
posted @
2013-01-11 12:38
easonoutlook
阅读(3207)
推荐(0)
获取UITableViewCell中UITextField的值方法总结
摘要:UITableViewCell的contentView中的UITextField的值获取有几种方法,本人简单总结一下。1. 获取UITextField所以Cell的NSIndexPath,知道了NSIndexPath就知道了这个UITextField是干什么的了。可以在- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { //get cell UITableViewCell *cell = ...
阅读全文
posted @
2013-01-06 11:15
easonoutlook
阅读(9748)
推荐(0)
libsqlite3.dylib与libsqlite3.0.dylib区别
摘要:实际上libsqlite3.dylib本身是个链接,它指向libsqlite3.0.dylib。也就是说在项目里如果你添加libsqlite3.dylib和添加libsqlite3.0.dylib其实是添加了同一个文件,没有区别,那为什么要添加libsqlite3.dylib呢?原因在于libsqlite3.dylib总是指向最新的sqlite3动态库,也就是说如果出现了新的动态库(如:libsqlite3.1.dylib)那libsqlite3.dylib将指向这个新的动态库(libsqlite3.1.dylib)而不在是libsqlite3.0.dylib了!所以建议还是要添加libsql
阅读全文
posted @
2013-01-05 13:27
easonoutlook
阅读(2689)
推荐(3)
iphone 随机颜色生成
摘要:iphone 随机颜色生成使用类别来为UIColor添加方法:#import <UIKit/UIKit.h>@interface UIColor(Random)+(UIColor *)randomColor;@end实现文件:@implementation UIColor(Random)+(UIColor *)randomColor{ static BOOL seeded = NO; if (!seeded) { seeded = YES; srandom(time(NULL)); } CGFloat red = (CGFloat)random()/(CGFloat)RAN...
阅读全文
posted @
2013-01-04 17:18
easonoutlook
阅读(683)
推荐(0)