問題1 : mac電腦 fastlane 打包app的時候 報錯:
Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension
應該是xcode插件相關導致的,最近升級了mac電腦的系統到monterey12.3.1系統。xcode升級到13.3版本。 估計是這里某個原因導致,百度出來資料比較少。找到個類似的資料網址:
參考資料網址:https://www.jianshu.com/p/d936b525b83f
2022-04-07 10:34:47.832 xcodebuild[32177:129763] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
[10:34:47]: ▸ 2022-04-07 10:34:47.832 xcodebuild[32177:129763] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
參照這個網址,
1.去下載xcode13.1版本進行安裝。
2.安裝Command Line Tools
//安裝了13.3版本,先卸載 $ rm -rf /Library/Developer/CommandLineTools //安裝 $ xcode-select --install
//查看路徑. -- 這一步我這邊倒是沒用到,fastlane打包恢復正常了。 $ xcode-select -p //路徑不是/Applications/Xcode.app/Contents/Developer 執行下面切換路徑方法 $ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
問題2 :Fastlane iOS打包 的時候 報錯 fastlane sh: xcpretty: command not found
重新打開個命令行 輸入 sudo gem install -n /usr/local/bin xcpretty 等加載完就好了