onmyway133 / XcodeWay

:sailboat: An Xcode Source Editor Extension that helps navigating to many places easier
https://onmyway133.com/
MIT License
556 stars 37 forks source link

Showing All Messages :-1: cp: /Users/khoa/Library/Application Scripts/com.fantageek.XcodeWayApp.XcodeWayExtensions: No such file or directory #24

Open Signify opened 5 years ago

Signify commented 5 years ago

Hello,

I am getting the following error when trying to archive your Mac application target:

:-1: cp: /Users/khoa/Library/Application Scripts/com.fantageek.XcodeWayApp.XcodeWayExtensions: No such file or directory

Command PhaseScriptExecution failed with a nonzero exit code

Any ideas on how to fix?

SyamalaHari commented 5 years ago

Hi @Signify did you find any solution for this, even I am facing the same issue . Just above this error message I see below line

/bin/sh -c /Users/syamala/Library/Developer/Xcode/DerivedData/XcodeWay-abkryidabvzfpraclujcofmgspwr/Build/Intermediates.noindex/XcodeWay.build/Debug/XcodeWayExtensions.build/Script-D2B221991F976DF500C45949.sh

When I open this it is

cp "${SRCROOT}/XcodeWayExtensions/Script/XcodeWayScript.scpt" "/Users/khoa/Library/Application Scripts/com.fantageek.XcodeWayApp.XcodeWayExtensions"

Issue here is that destination is hardcoded "/Users/khoa/Library/Application Scripts/com.fantageek.XcodeWayApp.XcodeWayExtensions"

Even I change it , it is being getting overridden.

If you find any solution please share it with me , Thanks

SyamalaHari commented 5 years ago

Open this file XcodeWay-master/./XcodeWay.xcodeproj/project.pbxproj Search for "khoa" and replace with your home folder name

Issue resolved for me @Signify

sendtobo commented 5 years ago

This is what the script really needs to be:

cp "${SRCROOT}/XcodeWayExtensions/Script/XcodeWayScript.scpt" "${USER_LIBRARY_DIR}/Application Scripts/com.fantageek.XcodeWayApp.XcodeWayExtensions"