顯示具有 mac 標籤的文章。 顯示所有文章
顯示具有 mac 標籤的文章。 顯示所有文章

2017年6月5日 星期一

[RobotFarmework][Mac] OS X 10.12使用RIDE

http://imsardine.simplbug.com/note/wxpython/install-osx.html#10.10-el-capitan

可能會遇到

https://forum.openframeworks.cc/t/quicktime-quicktime-h-file-not-found/24494/2

2014年11月25日 星期二

[Appium] 開啟appium server時創建log出現錯誤

開啟:

appium -a 127.0.0.1 -p 4723 --no-reset --session-override -lt 180000 --command-timeout 180000 --log /Users/jenkins/workspace/Orange/label/Mac_Mini_2014_1/junit/appium.log

出現錯誤:

uncaughtException: ENOENT, open '/Users/jenkins/workspace/Orange/label/Mac_Mini_2014_1/junit/appium.log'


原因:node沒有該資料夾讀寫的權限

解決辦法:

1.開放該位置讀寫的權限
2. $sudo chmod -R 1777 /Users/jenkins/workspace/Orange/label/Mac_Mini_2014_1/junit/

2014年11月24日 星期一

[Python] Python in Mac 一些快速筆記

IDE: Sublime Text 2

執行  Terminal-> $pyhton /Users/Downloads/test1.py

開啟檔案

f = open('helloworld.html','w')

message = """<html>
<head></head>
<body><p>Hello World!</p></body>
</html>"""

f.write(message)
f.close()

執行web server

$python -m SimpleHTTPServer 8080


pip

https://bootstrap.pypa.io/get-pip.py

將此檔案(get-pip.py)另存新檔下來,再用python執行



python + jenkins

http://pythonhosted.org//jenkinsapi/

2014年11月19日 星期三

[Mac] Mac執行檔案指令

執行.sh script

$cd /location/
$sh script

$cd /location/
$bash script

啟動執行檔

$cd /location/
$./script

sample:

cd /Downloads/adb/
./adb devices



[Appium] Appium跑iOS app的條件

大前提:台Mac的Xcode必須登入一個有iOS Development的帳號,不然連安裝app時都會失敗


1. 跑在simulator:
build app時必須額外加入simulator SDK

2.跑在device
必須有原始碼,開啟xcode -> Product -> Build For -> Testing
.app位置: /Users/Library/Developer/Xcode/DerivedData/workspace/Build/Products/Debug-iphones/

build app的電腦跟跑的電腦可以不一樣,只要apple id都有權限就可以

2014年11月16日 星期日

[Mac] Mac設定ANDROID_HOME

打開bash_profile


open ~/.bash_profile


輸入:

export PATH=${PATH}:/Users/zhangnaiyuan/Downloads/adt-bundle-mac-x86_64-20140702/sdk/
export ANDROID_HOME=/Users/zhangnaiyuan/Downloads/adt-bundle-mac-x86_64-20140702/sdk/
export PATH=$PATH:$ANDROID_HOME/bin

輸入echo $ANDROID_HOME測試結果 (terminal要重開)

chounomotos-MacBook-Air:~ zhangnaiyuan$ echo $ANDROID_HOME
/Users/zhangnaiyuan/Downloads/adt-bundle-mac-x86_64-20140702/sdk/

[Mac] Mac安裝adb

http://htc-one.wonderhowto.com/how-to/install-adb-fastboot-mac-os-x-send-commands-your-htc-one-0151178/

  1. Download this Android.zip file to your Mac.
  2. Extract the .zip and place the Android folder on your Desktop.
  3. Open Terminal and type: cd Desktop/Android
  4. Now install ADB and Fastboot: ./ADB-Install-Mac.sh
  5. Allow the script to run and you'll be all set. Now the ADB and Fastboot files will be placed in /usr/bin/ on your Mac.