I Get This Error When Compiling In Xcode

Discussion in 'Technical Discussion' started by eyal, Jul 12, 2016.

  1. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    "
    linker command failed with exit code 1 (use -v to see invocation)
    "

    What can be done ?
     
  2. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    That's a very generic error, need more information. A screenshot of the entire Xcode window might help. Try cleaning the project or re-exporting into a fresh directory.
     
  3. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Do you use ads?
     
    eyal likes this.
  4. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    Here it is

    [​IMG]
     
  5. Aaron F

    Aaron F Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    146
    Likes Received:
    161
    You may have duplicate SDKs - did you add Heyzap after you exported or any other 3rd party SDKs
     
    eyal likes this.
  6. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    yes I do. why ?
    no. the only thing I did was changing the navigation from zig zag to switch
     
  7. bmsingha

    bmsingha Serious Boxer

    Joined:
    Feb 17, 2016
    Messages:
    517
    Likes Received:
    198
    @eyal Try and change the bitcode from "Yes" to "No". Might help not pretty sure if this related somewhere to your issue but linker command issue has been sorted for us in similar way in past
     
    eyal likes this.
  8. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    Well I took out heyzap from anywhere in the game and now I don't have this error but it's a stupid solution since

    1. The same game with zig zag and heyzap works great
    2. The same game with switch and heyzap doesn't work
    3. The same game with switch and without hey zap words

    ??????
     
  9. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    how ?
     
  10. bmsingha

    bmsingha Serious Boxer

    Joined:
    Feb 17, 2016
    Messages:
    517
    Likes Received:
    198
    In xcode, go to build settings section-> search for bitcode -> if it is yes, change it to no Screen Shot 2016-07-13 at 4.12.31 PM.png
     
  11. bmsingha

    bmsingha Serious Boxer

    Joined:
    Feb 17, 2016
    Messages:
    517
    Likes Received:
    198
    @eyal But I guess in your case, issue is something different, still just try
     
  12. Aaron F

    Aaron F Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    146
    Likes Received:
    161
    Doesn't have anything to do with zig zag or switch. I think its your 3rd party SDK

    Export a new Xcode project and don't add Heyzap again because it's already included if you are using rewarded video.

    Just add any other 3rd party SDK you need

    @bmsingha makes a good point also you can try bitcode

    ld: 1034 duplicate symbols for ....

    (this hints that the error is due to duplicate files you added)
     
  13. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    thank you - I don't even have that option [​IMG]
     
  14. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    Thank you for that, but I didn't add any code yet to the file.

    In BB I have rewarded videos but I also chose ad interstitials for example

    it's a new export without anything added to it
     
  15. Aaron F

    Aaron F Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    146
    Likes Received:
    161
    what version of Buildbox and what version of Xcode?
     
  16. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    What version of Xcode are you using (seems to be Xcode 6 most likely)? Should be Xcode 7 if you are on the latest versions of Buildbox.
     
  17. bmsingha

    bmsingha Serious Boxer

    Joined:
    Feb 17, 2016
    Messages:
    517
    Likes Received:
    198
    @Aaron F Yeah think so due to duplicate symbols. @eyal, You don't have option? It would be there in btwn info and build phases
     
  18. Aaron F

    Aaron F Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    146
    Likes Received:
    161
    @Andy is right if you don't have the option its Xcode 6 - thats your problem
     
    eyal likes this.
  19. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    Thank you - that was the problem - I was working with xcode 6+ - Solved
     
  20. Kadri246

    Kadri246 Avid Boxer

    Joined:
    Mar 1, 2016
    Messages:
    243
    Likes Received:
    77
    I'm having the same problem. I'm not using any ad networks, I'm using the latest version of Xcode but I do not see any option to change bit code

    Screen Shot 2016-07-30 at 6.21.41 PM.png Screen Shot 2016-07-30 at 6.21.53 PM.png
     
    Last edited: Jul 30, 2016

Share This Page