AloneMonkey / MonkeyDev

CaptainHook Tweak、Logos Tweak and Command-line Tool、Patch iOS Apps, Without Jailbreak.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xcode 14.0.1 Creating symlink to Xcode templates failed

zhangchark opened this issue · comments

Creating symlink to Xcode templates...
Modifying Bash personal initialization file...
File /Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec not found

尝试过创建软链,但发现The file /Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources does not exist. 是Xcode相关路径更新了?所以需要做相应兼容是吧?

udo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/shadow-boy/MonkeyDev/master/bin/md-install)"
用我的这个脚本安装 就可以了

udo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/shadow-boy/MonkeyDev/master/bin/md-install)" 用我的这个脚本安装 就可以了
你这个脚本也不行啊, 路径也是不对的

先下载md-install,修改脚本里面的文件路径
然后终端运行,举例: sudo /bin/sh -c /Users/你的电脑名字/Desktop/md-install

基于Xcode 14.3,脚本里修改的路径
1、
specificationFile=$(cd $iosSdkPlatformPath/../../.. && pwd)/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec

修改为

specificationFile="/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources/Embedded-Device.xcspec"

2、
packageTypesForMacOSXPath="$macosxSDKSpecificationsPath/MacOSX Package Types.xcspec"

修改为

packageTypesForMacOSXPath="/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources/MacOSX Package Types.xcspec"

3、
productTypesForMacOSXPath="$macosxSDKSpecificationsPath/IDEOSXSupportCore.ideplugin/Contents/Resources/MacOSX Product Types.xcspec"

修改为

productTypesForMacOSXPath="/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources/MacOSX Product Types.xcspec"

修改点示意:

image

Xcode版本不同,路径可能会有变化,如果找不到文件去/Applications/Xcode.app/Contents目录里搜一下就好,下图示意:

image

Xcode14.2自己寻找了路径,按照这个方式后,xcode直接打不开啦

先下载md-install,修改脚本里面的文件路径 然后终端运行,举例: sudo /bin/sh -c /Users/你的电脑名字/Desktop/md-install

基于Xcode 14.3,脚本里修改的路径 1、 specificationFile=$(cd $iosSdkPlatformPath/../../.. && pwd)/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec

修改为

specificationFile="/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources/Embedded-Device.xcspec"

2、 packageTypesForMacOSXPath="$macosxSDKSpecificationsPath/MacOSX Package Types.xcspec"

修改为

packageTypesForMacOSXPath="/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources/MacOSX Package Types.xcspec"

3、 productTypesForMacOSXPath="$macosxSDKSpecificationsPath/IDEOSXSupportCore.ideplugin/Contents/Resources/MacOSX Product Types.xcspec"

修改为

productTypesForMacOSXPath="/Applications/Xcode.app/Contents/Developer/Library/Xcode/Plug-ins/XCBSpecifications.ideplugin/Contents/Resources/MacOSX Product Types.xcspec"

修改点示意:

image Xcode版本不同,路径可能会有变化,如果找不到文件去/Applications/Xcode.app/Contents目录里搜一下就好,下图示意:

image

用了你的方法,安装时又报了新的错误
Failed to get iphoneos SDK property PlatformPath�
且XCode打不开了 版本为14.3

commented

我直接去旧的Xcode 13里拿到IDEiOSSupportCore.ideplugin文件并放在报错的位置,完美解决

#339 (comment) 看我这个,绝对解决