Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 14.0.1 Creating symlink to Xcode templates failed #336

Open
zhangchark opened this issue Nov 3, 2022 · 7 comments
Open

Xcode 14.0.1 Creating symlink to Xcode templates failed #336

zhangchark opened this issue Nov 3, 2022 · 7 comments

Comments

@zhangchark
Copy link

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相关路径更新了?所以需要做相应兼容是吧?

@shadow-boy
Copy link

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

@JoshuaFeng5
Copy link

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

@action121
Copy link

先下载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

@Snailovet
Copy link

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

@KarlexYan
Copy link

先下载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

@AgoniNemo
Copy link

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

@ghost
Copy link

ghost commented Jul 24, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants