MacOS升级12.3后,Jenkins打包环境问题

打印 上一主题 下一主题

主题 636|帖子 636|积分 1908

安装Xcode13.3后,xcodebuild报错
  1. 2022-03-28 16:16:59.418 xcodebuild[65440:322377] 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
  2. 2022-03-28 16:16:59.418 xcodebuild[65440:322377] 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
复制代码
安装Xcode13.1 以及Command Line Tools Apple官网下载Xcode13.1,并安装。
安装Command Line Tools
//安装了13.3版本,先卸载
   $ rm -rf /Library/Developer/CommandLineTools
  //安装
   $ xcode-select --install
  没有PackageApplication报错
  1. xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk -find PackageApplication 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory)
  2. xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
复制代码
安装PackageApplication
下载旧版本PackageApplication

   下载到/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/
  //查看路径
   $ xcode-select -p
  //路径不是/Applications/Xcode.app/Contents/Developer 执行下面切换路径方法
   $ sudo xcode-select -switch
/Applications/Xcode.app/Contents/Developer/
  //使PackageApplication生效
   $ chmod +x
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

前进之路

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表