简体   繁体   中英

Xcode archive Stuck compiling Swift source files

I am using XCode Version 8.2.1 (8C1002) product. I archive to upload my app to the iTunes Store, which has been stopped for several hours in the 'Compiling Swift source files' section. The actions I have taken to solve this problem are as follows, but have not been resolved.

  1. Product> Clean
  2. Product> Clean Build Folder
  3. OS reboot
  4. Sign out and sign in
  5. Even up to hardware memory upgrades

The biggest question is that the test runs well on all devices. However, when I try to archive, it stops at that section without any error message.

Miraculously I solved this problem. 1. Reduced image file size. I upgraded the memory of the hardware from 4GB to 10GB. 3. Press and hold the archive button to sleep. 4. When I woke up, it was miraculously complete.

The image file was 40MB, but it was reduced to 20MB. And I upgraded my MacBook memory in the hardware from 4GB to 10GB, but I do not know which one helped me solve the problem. Anyway, I have solved this problem and hope you can help if you have difficulties with the same problem.

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