Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Archiving project stuck for hours

Hello My App is already on app store uploaded with same method archive project and upload it , now i have done some little bit changes, so when ever now i archive project it got stuck on some points for hours but not complete

what i have Done

  1. Deleted all derived data
  2. Deleted Archive Projects
  3. Tried with bitcode NO

Xcode 10 not being able to archive project

you can see image that archive stuck here Stuck Image

it was working before and on some other projects also properly no issue, but on this project after updating xcode to 10.2 facing this issue

like image 525
John Li Avatar asked Apr 09 '19 06:04

John Li


2 Answers

A bit late to provide an answer but I ran to the same problem today.

Building and installing my app on my device works like a charm, but archiving was a different story. Every time, I was stuck to step 1225 of 1235.

Clean all cash, removing all derived data, even restarting my Mac didn't change a thing.

I finally found the solution that worked for me.

Using CocoaPod, I could solve this issue by moving the Upload DSYM build script phase to the en of the list

"${PODS_ROOT}/FirebaseCrashlytics/upload-symbols" -gsp "${PROJECT_DIR}/HyTune/Beta/GoogleService-Info.plist" -p ios "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
# /!\ this script should always be the last one of the list /!\
like image 111
DDelforge Avatar answered Sep 20 '22 01:09

DDelforge


Changing optimization level to "no optimization" for all pods solved it for me.

Select your Pods project and highlight all Targets, go to build settings and search for "optimization level" and set it to "No optimization"

optimization level

Source: Xcode 11 stuck on archiving

like image 44
stackoverflowlivesmatter Avatar answered Sep 23 '22 01:09

stackoverflowlivesmatter