Can't archive in xcode: "Error: read ECONNRESET" when archiving but not building (detached expo app)

I have a detached app and I’m on Expo SDK 30.0.0 and Xcode 10.1

I’m having issues Archiving the build in xcode.

I have published the app via expo publish, then build it in xcode without error, but everytime I attempt to archive it in xcode I get the following error during the ‘Bundle Expo Assets’ build phase:

Error: read ECONNRESET
    at _errnoException (util.js:1024:11)
    at TLSWrap.onread (net.js:615:25)
Command PhaseScriptExecution failed with a nonzero exit code

As far as I can tell it has something to do with the expo bundle-assets call in this bash script:

pushd "${SRCROOT}/.."
value="$(cat ~/.expo/PATH)"
dest="$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH"
PATH="$PATH:$value" expo bundle-assets --platform ios --dest "$dest"
popd

Everything runs until that line and then the error occurs.

I’ve seen some topics about this error happening during the prepare and bundling assets phases, but this only happens during the bundling assets phase. Any help on how to debug or what it could be would be really helpful as I’ve spent days trying everything I can think of.

Hey @georgetmayorga,

Can you try running rm -rf .expo and see if that solves the issue?

Cheers,

Adam

This did the trick! It did not work until I removed .expo, re-built, and restarted xcode then archived. Thanks!

George

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.