5

When I run my application on a device, it works perfect, but when I am trying to Archive it to upload to iTunes Connect, i get this error:

Error 1:

ld: can't open output file for writing: /Users/xxxx/Library/Developer/Xcode/DerivedData/Drikkespillet-bmengfxihzksonhdoqpbllpzpagg/Build/Intermediates/ArchiveIntermediates/Drikkespillet/IntermediateBuildFilesPath/Drikkespillet.build/Release-iphoneos/Drikkespillet.build/Objects-normal/arm64/Drikkespillet, errno=21 for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Error 2:

ld: can't open output file for writing: /Users/xxxx/Library/Developer/Xcode/DerivedData/Drikkespillet-bmengfxihzksonhdoqpbllpzpagg/Build/Intermediates/ArchiveIntermediates/Drikkespillet/IntermediateBuildFilesPath/Drikkespillet.build/Release-iphoneos/Drikkespillet.build/Objects-normal/armv7/Drikkespillet, errno=21 for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have tried to remove both of the "Framework Search Paths" and "Library Search Paths". But it still does not work to Archive the project. Any suggestions here?

3
  • I get a similar error; I can build to devices, but can't Archive; error: unable to open '[paths/paths]/myapp.app.dSYM': No such file or directory. They're a little similar in that Xcode can't seem to write required output. Commented Oct 9, 2015 at 4:10
  • I am also getting this same issue when i upgraded to latest xcode version.. Commented Mar 4, 2016 at 4:54
  • Has anyone got a solution to this problem yet? Commented Mar 7, 2016 at 7:37

1 Answer 1

2

In Project file go to build setting -->Architectures section --> valid Architectures -- >Delete arm64.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.