發表文章

目前顯示的是有「XCode」標籤的文章

Mac OS Ventura XCode 無法使用 13.XXXX版

 Ventura 直接無法使用 XCode 13.X.X版 解決方式 直接從 Apple Developer 網站下載 Xcode 其實 Apple 官網一直有下載  .xip  壓縮檔版本 Xcode 的連結,但是藏得有點深。 下載頁面的首頁是  https://developer.apple.com/downloads 。 透過 xcode-install 套件管理 Xcode command line  xcode-install   Ruby 套件。 安裝 Xcode 11.0 : gem install xcode-install xcversion install 11.0 就會登入(使用跟 Fastlane 一樣的 Keychain 機制)、下載,並且解壓縮。 甚至可以列出所有可下載與已安裝的版本: xcversion update xcversion list 安裝或下載完成後, 不要直接點xcode.app 請用"顯示套件內容" 點選/Applications/Xcode_13.4.1.app/Contents/MacOS

[iOS,XCode,Pod] 當Pod instal 發生錯誤

圖片
開啟專案時,pod instal 發生錯誤 [!] Automatically assigning platform `iOS` with version `11.0` on target `M2Test` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`. 解決方法∶ 1 打開Podfile 2 移除第二行 #platform:ios, ‘9.0’ 中的# 3 打開終端機重新 pod install [!] Couldn't determine repo type for URL: `https://cdn.cocoapods.org/`: Permission bits for '/Users/D/.netrc' should be 0600, but are 644 解決方法∶ chmod 600 ~/.netrc