(hosts file)
最近在研究PHP
首先需調整host檔案來設定網址連到指定的測試主機的網頁
記錄一下,如何在mac中調整hosts檔案
(TestFlight, public link, app store connect)
App在上架前,可以透過Test flight且在名單內可以進行安裝測試
預設的所有測試人員必須要先加入app store connect使用者名單,且需要再次發test flight才能進行下載
從上面的描述覺得手續麻煩,且需要一個一個資料建立,等待對方收到確認信件後才能下一個流程
Apple提供透過“連結”分享的方式給開發者,輕鬆的增加外部測試人員
可以參考本文設定外部連結
(iOS Resolution, Simulator, Real Devices, UIScreen.main.nativeBounds, UIScreen.main.bounds)
在製作APP的時下圖的畫面是一個WKWebView
依據不同手機型號設定 x, y, width, height數值
卻意外發現同樣在8 Plus上在模擬器與實機上不同(如下圖左右顯示)

原因是因為依據UIScreen.main.nativeBounds判斷現在手機的型號
P.S 偷懶的做法透過螢幕的寬或高判斷型號,或許透過下篇文章的介紹,透過手機型號資訊更準確
找到一個網頁整理了iOS型號的Logical Width, Logical Height, Physical Width, Physical Height資訊
圖表中看出,雖然8 plus, 7 plus, 6s plus都是5.5寸
但是Logical Width, Logical Height, Physical Width, Physical Height不同
(GitHub, .git/index.lock, error handling)
推code至Git時,出現下圖的錯誤訊息,無法推上

fatal: Unable to create ‘/Users/peggytsai/Documents/Eyes/eyesmedia-afp-ios/.git/index.lock’: File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by ‘git commit’. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
Cannot save the current index state
參考下方文章
嘗試關掉後並無作用,因此嘗試刪除index.lock
cd <index.lock上層資料夾路徑>
rm -rf index.lock