简体   繁体   中英

Unable to archive project

I am unable to archive my Swift project. When it's archiving, it fails at 90% of the progress. Showing the following error.

在此处输入图片说明

The project runs well in the simulator and on my device. But suddenly i am getting this error when archiving... It all worked well before.. Does anyone have any idea?

The path to the binary contains spaces ( [...]/ArchiveIntermediates/Trusti - Release/[...] ). This should be the problem. The error message displays the path cut before the first space.

I think you should use another product name, and adapt it in InfoPlist.strings if necessary.

I got this problem with cocoapods, you should edit the file "YourTarget-framework.sh" in Pods > Target Support Files > Pods-Your Target.

You need to locate this line: local code_sign_cmd="/usr/bin/codesign --force --sign {EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1""

Replace it by : local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '"$1"'"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM