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

Fixes the source path of frameworks #11833

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

olliwang
Copy link

@olliwang olliwang commented Mar 27, 2023

This commit fixes an issue where Pods-TARGET_NAME-frameworks.sh could give a source: unbound variable error as follow.

Showing All Messages
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/USERNAME/Developer/PROJECT_PATH/build/TARGET_NAME.build/Debug-iphoneos/Script-6D601675FA2FB56714C154A0.sh (in target 'TARGET_NAME' from project 'TARGET_NAME')
    cd /Users/USERNAME/Developer/fogofworld3/src/ios
    /bin/sh -c /Users/USERNAME/Developer/PROJECT_PATH/build/TARGET_NAME.build/Debug-iphoneos/Script-6D601675FA2FB56714C154A0.sh

mkdir -p /Users/USERNAME/Developer/PROJECT_PATH/Debug-iphoneos/TARGET_NAME.app/Frameworks
/Users/USERNAME/Developer/fogofworld3/src/ios/Pods/Target Support Files/Pods-TARGET_NAME/Pods-TARGET_NAME-frameworks.sh: line 42: source: unbound variable
Command PhaseScriptExecution failed with a nonzero exit code

This error occurs in Xcode 14.3 (14E222a) on a MacBook Pro M2 Max.

PS. #11828 should also be accepted to make archiving work.

This commit fixes an issue where `Pods-TARGET_NAME-frameworks.sh` could give a `source: unbound variable` error.
@CocoaPodsBarista
Copy link

1 Warning
⚠️ Please include a CHANGELOG entry to credit yourself!
You can find it at CHANGELOG.md.

Here's an example of your CHANGELOG entry:

* Fixes the source path of frameworks  
  [olliwang](https://github.com/olliwang)
  [#issue_number](https://github.com/CocoaPods/CocoaPods/issues/issue_number)

note: There are two invisible spaces after the entry's text.

Generated by 🚫 Danger

@usmanabid94
Copy link

For the people facing error in Xcode after update to 14.3.

In your xcode, Go to PODS folder :
Target Support Files => Pods-{Your Project} => Pods-{Your Project}-frameworks

Change

source="$(readlink "${source}")"
this :

source="$(readlink -f "${source}")"

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

Successfully merging this pull request may close these issues.

None yet

3 participants