微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

安装Xcode13.3后,xcodebuild报错

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

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报错

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)
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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐