Xcode 14.3 error: can’t archive build but I can run on simulator and devices

I’ve updated Xcode to 14.3 and suddenly I can’t “archive” my build but I can run it on my real devices/simulator.

Do you have any idea about what is happening?

thank you

Answered by HalifaxNick in 749335022

Found this workaround on another thread that worked for me:

Solution by @vadimwe worked for me! 👍 in APPNAME/ios/App/Pods/Target Support Files/Pods-App/Pods-App-frameworks.sh replaced source="$(readlink "${source}")" with source="$(readlink -f "${source}")"

There were two instances of calls to readlink that I had to fix in the .sh file.

Running into the same problem, also using Angular + Ionic + Capacitor

Archive isn't working for me either since upgrading to Xcode 14.3.

Accepted Answer

Found this workaround on another thread that worked for me:

Solution by @vadimwe worked for me! 👍 in APPNAME/ios/App/Pods/Target Support Files/Pods-App/Pods-App-frameworks.sh replaced source="$(readlink "${source}")" with source="$(readlink -f "${source}")"

There were two instances of calls to readlink that I had to fix in the .sh file.

it actually works with your workaround. Waiting for an official solution,

thanks!

This fix worked for me. Thanks!

if you update your Cocoapods version to 1.12.1 it should be fixed https://github.com/CocoaPods/CocoaPods/releases/tag/1.12.1

Hold on, take a breath and do what I did after struggling all day with the problem open xcode -> Pods ->Target Support Files -> Pods-Runnder-frameworks. Open this file and search for "readlink"(cmd + f) . It should be like this

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

and replace it with

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

then in second place

 binary="${dirname}/$(readlink "${binary}")"

replace it with

binary="${dirname}/$(readlink -f "${binary}")"

Now you are good to go to archive, happy coding

Xcode 14.3 error: can’t archive build but I can run on simulator and devices
 
 
Q