2012年8月28日 星期二

[IOS]在 Windows 將 Apple 開發人員憑證轉換成 P12 憑證

在 Windows 將 Apple 開發人員憑證轉換成 P12 憑證 若要使用 Flash CS5 開發 iPhone 應用程式,您必須使用 P12 憑證檔案。

您將根據從 Apple 收到的 Apple iPhone 開發人員憑證檔案來產生此憑證。

1. 將您從 Apple 收到的開發人員憑證檔案轉換成 PEM 憑證檔案。從 OpenSSL bin 目錄執行以下命令列陳述式: openssl x509 -in developer_identity.cer -inform DER -out

developer_identity.pem -outform PEM

2. 如果您使用的是 Mac 電腦上的鑰匙圈專用密鑰,請將它轉換成 PEM 密鑰: openssl pkcs12 -nocerts -in mykey.p12 -out mykey.pem

3. 現在您可以根據 iPhone 開發人員憑證的密鑰及 PEM 密鑰,產生有效的 P12 檔案: openssl pkcs12 -export -inkey mykey.key -in developer_identity.pem -out iphone_dev.p12 如果您使用的是 Mac OS 鑰匙圈的密鑰,請使用上一個步驟所產生的 PEM 密鑰。

否則,請使用先前產生的 OpenSSL 金鑰 (Windows)。

重點

如果不是管理者權限
請先執行 set RANDFILE=.rnd

發生錯誤解決: error:" WARNING: can't open config file: /usr/local/ssl/openssl.cnf"

重新指定路徑 "set OPENSSL_CONF=C:\OpenSSL-Win32\bin\openssl.cfg" before trying to generate the private key

2012年8月9日 星期四

[Android]AndroidManifest設定權限

(1) 加入允許使用網路權限。 (2) 加入允許使用GPS權限。 (3)加入允許使用網路定位權限。

[Android]Eclipse 記憶體不足

修改 Eclipse.ini -Xms40m -Xmx512m 換成 -Xms256m -Xmx1024m -XX:MaxPermSize=128m

[Android]ArcGis Android SDK v2 模擬器啟用

試了兩天一直無法開啟模擬器執行SampleProjcet HelloWorld

看了許多文章發現很多人都是使用手機測試居多..

後來有一篇提到官方有提到
<uses-feature android:glEsVersion="0x00020000" android:required="true" /> 我把他移除後竟然就可以使用了