fastlane问题汇总


问题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    等加载完就好了