16

I am trying to make archive but xcode get stuck at time of compile bitcode. what i have to do? Enable bitcode or disable?

Community
  • 1
  • 1
Nand Parikh
  • 205
  • 1
  • 2
  • 9

2 Answers2

14

I was facing the same problem. What my suggestion is just enable this check mark when export for iOS App Store Deployment. If you are exporting an adhoc build then do uncheck it. It will work fast.

Bitcode refers to to the type of code: "LLVM Bitcode" that is sent to iTunes Connect. This allows Apple to use certain calculations to re-optimize apps further (e.g: possibly downsize executable sizes). If Apple needs to alter your executable then they can do this without a new build being uploaded

enter image description here

OurangZeb Khan
  • 1,114
  • 18
  • 20
  • 1
    Thank you for the explanation on bitcode. I was wondering if I should leave compileBitcode on when making a build for HockeyApp via xcodebuild. Definitely don't need bitcode for HockeyApp, and it builds much faster. – Mykaelos May 07 '18 at 18:09
13

I have a better solution for this problem. Don't go for the export option tomato iPA, try out as mentioned below:

  1. Right click your Archive and select "Show" in Finder
  2. Then again right click on the resulted file in Finder and select "Show Package Contents"
  3. Then from the result open the product folder --> Application folder --> and select the ".app" file
  4. Then simply add this .app file under apps of iTunes software on Mac
  5. After completing the adding process right click on the app icon in iTunes and show in Finder, which will give you the iPA file.
User42
  • 970
  • 1
  • 16
  • 27
Vinod Mahale
  • 374
  • 4
  • 14
  • Have you seen the size of IPA file after doing this? That is 3 times bigger than normal archiving. I don't know why? can you please tell me? – Arun Kumar Dec 08 '16 at 05:57
  • Yet I don't came across such increase in size. But you can try out copy png option in Xcode which will help to minimise IPA size. – Vinod Mahale Dec 09 '16 at 07:02
  • @iOSGeek It works for both development as well as for production. You can upload production build using application loader. Only swift code builds need to upload through Organiser as so it don't work for swim code production build – Vinod Mahale Apr 26 '17 at 06:05