随笔分类 - iOS开发
呼呼
摘要:1.准备好aps_developer_identity.cer, push.p12这两个证书文件2. 生成证书如下:openssl x509 -in aps_developer_identity.cer -inform der -out PushChatCert.pemopenssl pkcs12 -nocerts -out PushChatKey.pem -in Push.p12Enter Import Password:MAC verified OKEnter PEM pass phrase:Verifying – Enter PEM pass phrase:把私钥和证书整合到一个.pem
阅读全文
摘要:转自:https://blog.serverdensity.com/how-to-renew-your-apple-push-notification-push-ssl-certificate/It’s coming up to a year since we launch ourserver monitoring iPhone applicationand so our Apple push notification SSL certificate is expiring in a few weeks. It is necessary to renew it and install the
阅读全文
摘要:转自:https://blog.serverdensity.com/how-to-build-an-apple-push-notification-provider-server-tutorial/One of the widely anticipated features of the newiPhone OS 3.0ispush notificationswhich allow messages to be sent directly to an individual device relevant to the application that has been installed. A
阅读全文
摘要:转自:http://cloudfields.net/blog/ios-push-notifications-encryption/The serious pains of setting up a Remote Push Notification in an iOS app come not from coding the app itself. They mostly relate in making the intermediate environment to connect with the Apple Push Notification Servers (APNS) and the
阅读全文
摘要:转自:http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2Update 4/12/2013: Fully updated for iOS 6 (original post byMatthijs Hollemans, update byAli Hafizji).This is the second part of a 2-part tutorial series on integrating Apple Push Notification Services (APN
阅读全文
摘要:转自:http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1Update 4/12/2013: Fully updated for iOS 6 (original post byMatthijs Hollemans, update byAli Hafizji).In iOS, apps can’t do a lot in the background. Apps are only allowed to do limited set of activities so
阅读全文
摘要:用途:pkcs12文件工具,能生成和分析pkcs12文件。PKCS#12文件可以被用于多个项目,例如包含Netscape、MSIE和MS Outlook。用法:openssl pkcs12 [-export] [-chain] [-inkey filename] [-certfile filename] [-CApath arg] [-CAfile arg] [-name name] [-caname name] [-in filename] [-out filename] [-noout] [-nomacver] [-nocerts] [-clcerts] [-cacerts] [-noke
阅读全文
摘要:转自:http://2015.iteye.com/blog/1567777以前写了一篇文章:iOS消息推送机制的实现,这篇文章中生成的是p12文件,但是php是用的pem文件,生成的方法和p12文件有些不同。一、CSR文件1、生成Certificate Signing Request(CSR)2、填写你的邮箱和常用名称,并选择保存到硬盘。点击继续:这样就在本地生成了一个Push.certSigningRequest文件。二、SSL certificate文件1、用你付过费的帐号登录到iOS Provisioning Portal,并新建一个App ID,这个过程可以参考:iOS应用的真机调试,
阅读全文
摘要:转自:http://2015.iteye.com/blog/1337599iOS消息推送的工作机制可以简单的用下图来概括:Provider是指某个iPhone软件的Push服务器,APNS是Apple Push Notification Service的缩写,是苹果的服务器。上图可以分为三个阶段:第一阶段:应用程序把要发送的消息、目的iPhone的标识打包,发给APNS。第二阶段:APNS在自身的已注册Push服务的iPhone列表中,查找有相应标识的iPhone,并把消息发送到iPhone。第三阶段:iPhone把发来的消息传递给相应的应用程序,并且按照设定弹出Push通知。从上图我们可以看
阅读全文
摘要:export [-k keychain] [-t type] [-f format] [-w] [-p format] [-P passphrase] [-o outfile] Export one or more items from a keychain to one of a number of external representations. If keychain isn't provided, items will be exported from the user's default keychain. import input...
阅读全文
摘要:在SAE使用Apple Push Notification Service服务开发iOS应用, 实现消息推送From:http://saeapns.sinaapp.com/doc.html1,在iOS开发者中心: iOS Provisioning Portal 创建一个AppID,如图:2,生成iOS Push Service证书,如图:按照上述提示操作:回到iOS Provisioning Portal:点击“Download”下载iOS Push Service证书文件,如图:3,导入证书文件到keychain:双击即可4,生成ck.pem导出cert.p12:导出key.p12:得到这样
阅读全文
摘要:一. Keychain APIKeyChain中item的结构为:1.增加keychain ItemOSStatus SecItemAdd (CFDictionaryRef attributes,CFTypeRef *result);attributes字典中包括增加items的类型键值对和对应类型的属性键值对。item类型键常量为kSecClass,可能的取值为通用密码(kSecClassGenericPassword),网络密码(kSecClassInternetPassword),证书(kSecClassCertificate),密匙(kSecClassKey),ID(带有密匙的证书kS
阅读全文
摘要:iOS证书、密钥及信任服务——翻译自Apple Reference《Certificate,Key,and Trust Services Programming Guide》本章描述并演示了如何使用证书、密钥和信任服务去导入一个indentity,评估证书是否可信,判断证书失效的原因,以及失效证书的恢复。本章按如下顺序分别演示了:导入一个identity.从导入的数据中获得证书.获得用于证书评估的策略.校验证书,根据指定策略评估证书是否可信.测试证书中的可恢复错误.判断证书是否过期.改变评估条件,忽略过期证书.重新评估证书.“第2章,Certificate,Key,and Trust Serv
阅读全文
摘要:IOS应用程序升级流程介绍:IOS手机端应用程序需要升级时,打开服务器端html文件(本文为ucab.html文件)-》点击在线安装-》打开plist文件(本文中为ucab.plist文件)-》plist文件中存储有应用程序升级包的地址。(本文为:http://192.168.1.126:8088/netcrm/ucab.ipa),这个地址是在打包时填写的Application URL值。通过升级包地址访问升级包,提示安装升级。分步介绍:一、准备工作1、打包用的企业级证书mobileprovision文件,证书制作在这里就不罗嗦了。2、应用升级所需要的服务器端html文件。 应用升级所需要的服
阅读全文
摘要:https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-DontLinkElementID_10Product Information Build SettingsThese build settings specify properties of the product the tar
阅读全文
摘要:https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.htmlThis manual page is part of Xcode Tools version 5.0To obtain these tools:Install the Xcode Tools fromdeveloper.apple.com.If you are running a version of Xcode Tools other than 5.0, view the document
阅读全文
摘要:以前的时候只知道做安卓开发的兄弟挺辛苦的,不但开发的时候要适配一堆的机型,好不容易开发完了还要打一堆不同的包给不同的市场。没想到现在这些市场都开辟iOS市场,于是需要打一堆的包给不同的市场,面对暂时给的十二个渠道,批量打包迫在眉睫。于是也便有了这篇小结。通过一翻搜索和学习,打包这事儿就是让xcrun来干,而xcodebuild只是xrun的一个软链接,但是这一链却有了不同的分工:xcodebuild负责将工程源文件编译成xxx.appxcrun负责给xxx.app(签名并)打包成xxx.ipa先说我是咋干的。第一步清理:/usr/bin/xcodebuild -target targetNam
阅读全文
摘要:转自:http://blog.csdn.net/totogo2010/article/details/8883100打包过程xcodebuild负责将工程源文件编译成xxx.appxcrun负责给xxx.app(签名并)打包成xxx.ipa第一步清理:xcodebuild clean第二步编译:xcodebuild第三步打包:xcrun -sdk iphoneos PackageApplication -v path/To/xxx.app -o xxx.ipabash shell入门:http://www.aka.org.cn/Lectures/002/Lecture-2.1.2/index.
阅读全文
摘要:转自:http://www.cocoachina.com/bbs/read.php?tid=103813*****boy】原创 2012年5月20日 在开发项目的过程,很多情况下我们需要利用互联网上的一些数据,在这种情况下,我们可能要写一个爬虫来爬我们所需要的数据。一般情况下都是利用正则表达式来匹配Html,获取我们所需要的数据。一般情况下分以下三步。1、获取网页的html2、利用正则表达式,获取我们所需要的数据3、分析,使用获取到的数据,(例如,保存到数据库)接下来我们分析代码:1、获取网页的html 对于一些网页,不需要提交Post提交数据时,我们可以简单的利用NSURL类来获取我们所..
阅读全文
摘要:准备工作:已经设置好,xcode中的证书,证书必须是企业级证书,才能通过 itms-services 协议安装Step 1: 把以下代码保存到一个web目录中,命名为 “auto.plist”,注意文件中的ipa路径和 “bundle-identifier” items assets kind software-package url http://127.0.0.1/auto.ipa metadata bu...
阅读全文