Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8.3 Archive error: Linker command failed with exit code 1

I started getting this error only after upgrading from Xcode 8.2 to Xcode 8.3, and only when making an archive build (debug builds work fine).

When I do the archive via Xcode, the only message I get is "Linker command failed with exit code 1 (use -v to see invocation).

I build with the command line xcodebuild -scheme MyProduct

When I built this way, I found a number of issues (again, only when doing Archive):

  • I had to add import UIKit to practically every swift file.
  • all the pods had issues
  • remove everything from app-Bridging-Header.h
  • add a few things back into app-Bridging-Header.h

My current issue is with the AWS pod, using version 2.5.3

So my app-Bridging-Header.h has #import <AWSS3/AWSS3.h>

Here is the error from the command line build:

error: 'AWSS3/AWSS3.h' file not found with <angled> include; use "quotes" instead
#import <AWSS3/AWSS3.h>
        ^

The error log continues after that. I also tried the crazy suggestion of switch in the import to "AWSS3/AWSS3.h"...that didn't work either.

What is going on?

More INFO

This really appears to be an issue with one of my pods. I built a new solution, imported a subset of my pods and everything built. Then when I updated with the full list of pods it broke.

like image 510
Chris Brandsma Avatar asked Dec 11 '22 12:12

Chris Brandsma


1 Answers

For me it is coming due to Bitcode enable in my project and i have used a custom framework with disabled bitcode.

Two things you can do :

  1. Either disable bitcode in your project

    OR

  2. Build framework with bitcode enable

NOTE: If you click on error and it doesn't show anything then right click on error and select Reveal in Log. You will get error for this issue

like image 128
Abhishek Thapliyal Avatar answered Feb 17 '23 06:02

Abhishek Thapliyal