隨筆 - 35  文章 - 21  trackbacks - 0
          <2012年3月>
          26272829123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          常用鏈接

          留言簿

          隨筆分類

          隨筆檔案

          文章分類

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          1 Launch Keychain Access from your local Mac and from the login keychain, filter by the Certificates category. You will see an expandable option called “Apple Development Push Services”
          2 Right click on “Apple Development Push Services” > Export “Apple Development Push Services ID123″. Save this as apns-dev-cert.p12 file somewhere you can access it. There is no need to enter a password.
          3 The next command generates the cert in Mac’s Terminal for PEM format (Privacy Enhanced Mail Security Certificate):
          openssl pkcs12 -in apns-dev-cert.p12 -out apns-dev-cert.pem -nodes -clcerts
          posted @ 2012-05-29 11:07 lincode 閱讀(733) | 評論 (0)編輯 收藏

          這個 bug 在 xcode 4.3 以下會出現(xiàn),4.3 以后已經(jīng)修正了。
          解決方法為:找到 target 的圖標,更改其 Other Linker Flags 為: -all_load 或 -force_load
          -force_load,后跟隨一個文件位置,可以更精確地加載所需文件。
           
          蘋果的解釋為 : http://developer.apple.com/library/mac/#qa/qa1490/_index.html

          簡單點說就是,Objective-C 的動態(tài)特性使得需要,為鏈接器添加一個標簽(設置 Other Linker Flags 為 -ObjC)來解決通過 Category 向類添加方法的問題。
          但這個標簽 -ObjC 在 64 位 和 iOS 中有問題,需要使用 -all_load 或 -force_load。

          總結如下:
          如果,第三庫中沒有 category,Other Linker Flags 無需設置
          如果,第三方庫中有 category,需要設置為 -ObjC
          如果,某些 Xcode 版本中,出現(xiàn)問題,修改設置為 -all_load
          posted @ 2012-04-23 14:56 lincode 閱讀(1815) | 評論 (0)編輯 收藏
          獲得 Crash Report:
          1 itunesConnect 的后臺會提供一個 Crash report 表;
          2 把一臺打開了開發(fā)模式的機器接入 Mac,Xcode 的 Organizer 中能查看這臺設備的 Crash Report;
          3 若使用了 Umeng.com, Bugsense.com 之類的工具。

          閱讀 Crash Report:
          這之前需要一個名為 AppName.app.dSYM 的文件。Xcode 中,Archive 一個項目之后,可以在 Organizer 的 Archives 分頁中,找到所有項目的 Archvie 文件。
          右鍵點擊一個, Show Package Content,就能看到一個類似 AppName-3-19-12.app.PM.xcarchive  的文件,show in finder 這個文件,就能找到 .dSYM 文件。

          在 Ternimal 中執(zhí)行,若是 來自于 iphone 3G 的機器,就需要使用 armv6 代替 armv7.

           atos -o AppName.app.dSYM/Contents/Resources/DWARF/AppName  -arch armv7 0x0000b82

          這樣就能看到,地址對應的類,函數(shù),代碼行數(shù)。這個命令只能解析出客戶代碼的位置。若是錯誤堆棧中的系統(tǒng)調用,是無法翻譯出來的。
          posted @ 2012-03-18 13:56 lincode 閱讀(1002) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 乐都县| 前郭尔| 舒城县| 乌海市| 淮滨县| 廉江市| 黑水县| 开平市| 北碚区| 宁津县| 宁安市| 静安区| 托克逊县| 乌苏市| 平顶山市| 兰坪| 广东省| 静安区| 杂多县| 修水县| 安多县| 昔阳县| 当涂县| 习水县| 棋牌| 霍林郭勒市| 阿拉尔市| 临西县| 遂平县| 安阳市| 新津县| 陕西省| 锦屏县| 翁源县| 贵港市| 信阳市| 兴城市| 离岛区| 酒泉市| 犍为县| 丽水市|